...
Code Block | ||
---|---|---|
| ||
Unix: ./node_modules/.bin/npx slnodejs mocha --tokenfile /path/to/sltoken.txt --buildsessionidfile buildSessionId --teststage "Unit Tests" --useslnode2 -- --recursive test Windows: call .\node_modules\.bin\ npx slnodejs mocha --tokenfile \path\to\sltoken.txt --buildsessionidfile buildSessionId --teststage "Unit Tests" --useslnode2 -- --recursive test |
...
Create a file
config.json
:Code Block { "reporterEnabled": "slnodejs/tsOutputs/mocha-reporter/index, mocha-allure-reporter", "SeaLightsReporterReporterOptions": {}, "mochaAllureReporterOptions": { "targetDir": "allure-results" }, "mochaJunitReporterReporterOptions": {} }
When you run slnodejs mocha run it with the following additional parameters:
Code Block npx slnodejs mocha --tokenfile /path/to/sltoken.txt --buildsessionidfile buildSessionId ... -- --reporter-options configFile=config.json