Closed IZaiarnyi closed 1 year ago
Hi @IZaiarnyi, Thank you for reporting the issue. Could you please try again after adding test runner: type:'mocha'
to the your desired environments section or outside of the test settings
in the nightwatch configuration file. A test-results.xml
file must be generated in the output folder. Thanks.
@prudhvi22 Thank you for the reply but it was my misconfiguration. I simplified my package json and it has started to work properly with
test_runner: {
type: 'mocha',
options: {
reporter: 'mocha-junit-reporter-gitlab',
reporterOptions: {
mochaFile: './output/test.xml'
}
}
}
}
Description of the bug/issue
I execute npx nightwatch tests/* --reporter mocha-junit-reporter
Expected result: JUnit report is created
Actual result: "Error: An error occurred while trying to save the report file The custom reporter "mocha-junit-reporter" must have a public ".write(results, options, [callback])" method defined which should return a Promise."
My package json
my nightwach config
Command to run
Verbose Output
No response
Nightwatch Configuration
Nightwatch.js Version
2.2.2
Node Version
6.9.0
Browser
Chrome 105
Operating System
No response
Additional Information
No response