You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't find the schema for the unittests.json at https://github.com/microsoft/NLU.DevOps, what I was hoping to find was if there was the ability to name a unit test - this is best practice to help both understand what the unit test is doing, the expected outcome, and as a handler to discuss any problematic results.
Having a play around with the file - it looks like the dotnet nlu test tool will ignore the "name" attribute and still run the tests successfully. Therefore, we can deduce that we can name each test :)
Depending on whatever naming convention is decided, here is an example:
{
"name": "VacationRequest_RequestVacationIntent_StartDate_July23_EndDate_August13",
"text": "i want paid time off from july 23 to august 13",
"intent": "RequestVacation",
"entities": [
{
"entityType": "vacation-request",
"entityValue": {
"leave-type": [
[
"paid"
]
],
"date-range": [
{
"type": "daterange",
"values": [
{
"timex": "(XXXX-07-23,XXXX-08-13,P21D)",
"start": "2019-07-23",
"end": "2019-08-13"
},
{
"timex": "(XXXX-07-23,XXXX-08-13,P21D)",
"start": "2020-07-23",
"end": "2020-08-13"
}
]
}
]
},
"matchText": "paid time off from july 23 to august 13"
}
],
"intents": [
{
"intent": "RequestVacation"
}
]
}
The text was updated successfully, but these errors were encountered:
I can't find the schema for the unittests.json at https://github.com/microsoft/NLU.DevOps, what I was hoping to find was if there was the ability to name a unit test - this is best practice to help both understand what the unit test is doing, the expected outcome, and as a handler to discuss any problematic results.
Having a play around with the file - it looks like the
dotnet nlu test
tool will ignore the "name" attribute and still run the tests successfully. Therefore, we can deduce that we can name each test :)Depending on whatever naming convention is decided, here is an example:
The text was updated successfully, but these errors were encountered: