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
If the test configuration file is empty, the following content is written into the file. Otherwise, a test case is added into the array of **TestCases**. Necessary input configurations are automatically filled according to the input configuration files, if they exist. Otherwise, default values are configured. **FilePath** of each input and expected output must be specified before running the test. You can modify the configuration manually.
138
138
139
-
If you want the test validation to ignore a certain output, set the **Required** field of that expected output to **false**.
140
-
141
139
```json
142
140
{
143
141
"Script": "",
@@ -165,6 +163,78 @@ If you want the test validation to ignore a certain output, set the **Required**
165
163
}
166
164
```
167
165
166
+
The following example shows two test cases, on a query using two inputs. If you want the test validation to ignore a certain output, set the **Required** field of that expected output to **false**. In this case, the FilePath property must not be empty, but doesn't need to be valid.
> Currently, the only allowed value for the `ScriptType` element is `InputMock`, which is also the default value. If you set it to any other value, it's ignored and the default value (`InputMock`) is used.
170
240
@@ -183,6 +253,17 @@ azure-streamanalytics-cicd test -project <projectFullPath> [-testConfigPath <tes
183
253
|`-outputPath`| The path of the test result output folder. If it is not specified, the output result files will be placed in the current directory. |
184
254
|`-customCodeZipFilePath`| The path of the zip file for custom code such as a UDF or deserializer, if they are used. |
185
255
256
+
As an example, in a PowerShell enabled terminal, if all test assets are located in a `test` subfolder of the project folder. With each test run output stored in a new timestamped subfolder of a `testResults` subfolder:
When all tests are finished, a summary of the test results in JSON format is generated in the output folder. The summary file is named **testResultSummary.json**.
0 commit comments