Skip to content

Commit

Permalink
Add logging and attempt to include publish test results
Browse files Browse the repository at this point in the history
  • Loading branch information
carlowahlstedt committed Jan 31, 2019
1 parent 36e74ac commit 1625c45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/TestSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('Normal behavior', function () {
let testPath = path.join(__dirname, 'noEnvironment.js');
let runner: mocktest.MockTestRunner = new mocktest.MockTestRunner(testPath);
runner.run();
// console.error(runner.stdout);
console.log(runner.stdout);
assert(runner.succeeded, 'Should in success');
assert(runner.stdOutContained('No environment set, no need to add it in argument'), 'No error if no envt is set');
done();
Expand Down
11 changes: 11 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ steps:
verbose: false
customCommand: 'run test'

- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
testResultsFiles: '**/TEST-*.xml'
#searchFolder: '$(System.DefaultWorkingDirectory)' # Optional
#mergeTestResults: false # Optional
#failTaskOnFailedTests: false # Optional
#testRunTitle: # Optional
#buildPlatform: # Optional
#buildConfiguration: # Optional
#publishRunAttachments: true # Optional

- task: Npm@1
displayName: 'npm compile'
Expand Down

0 comments on commit 1625c45

Please sign in to comment.