Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding custom reporter #29
Why this feature is required (specific use-cases will be appreciated)?
I would like to generate a pdf report based on the test results, other test tools have multiple reporters and I would like to be able to add my own.
Have you tried any other work arounds?
I have cloned and edited both the JAPA and adonis-vow repository and tried to copy and edit the list reporter that is currently the only option and I tried to activate it using the REPORTER env variable but I cannot get it to output any report (not even the default list report)
Are you willing to work on it with little guidance?
I am willing to work on this
Yes, it should be 100% possible, since the underlying test runner
We just need a way to use a dynamic reporter here https://github.com/adonisjs/adonis-vow/blob/develop/src/Runner/index.js#L31
Here's the code for the existing reporter https://github.com/thetutlage/japa/blob/v1.0.6/src/Reporters/list.js, just make sure you are always referencing the
How to approach?
I can give you some insights on same to help you create a reporter.
Lemme know if you need more help
Thank you for your swift answer and great framework!
I then get the following error:
The same happens if I yarn add the directory or if I use npm for linking
Ahh yes, since
Can you change this line https://github.com/adonisjs/adonis-vow/blob/develop/providers/VowProvider.js#L12
I am not 100% sure this will work, but if you want to try