Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enable mocha-junit-reporter in a custom runner #3781

Unanswered
Todaichi asked this question in Q&A
Discussion options

So, when running commands with codeceptjs you can pass the --reporter flag and then the type:
codeceptjs run --reporter mocha-junit-reporter --steps

I have had to make a custom runner for some out of the box thinking, which works great. The last thing I need is to be able to tell the script that it is to use the reporter. The config file is setup with the reporter info I want, but that doesn't actually say use it in the execution. I am assuming that it is going to be in this line, in the options.
const codecept = new Codecept(codeceptConf.config, options);
But, I don't know the format needed or what its actually looking at. for example the flag --steps is changed to step:true in the options.

Thank you,

 --Daniel
You must be logged in to vote

Replies: 1 comment

Comment options

Kinda strange that you ask for format required for your own custom runner.
Here is a sample, how report is executed in GitHub Actions:
33 run: npx codeceptjs run --reporter mochawesome
https://github.com/drozdik29/drozdovsky-js/blob/main/github/workflows/drozd_codeceptjs.yml

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /