Is it possible to have hardhat test results output in a parse-able format? #3206
Answered
by
fvictorio
billtorla-scopely
asked this question in
Troubleshooting
-
I'd like to get hardhat test results as a file I could publish as test results to a continuous integration system. Ideally, a pseudo-standard format like junit xml would be great, but anything parse-able would do (e.g. json, yaml, csv). Is this currently possible? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
fvictorio
Sep 27, 2022
Replies: 1 comment 1 reply
-
Yes, add this to your hardhat config: module.exports = {
// rest of your config
mocha: {
reporter: "json"
}
} You can use any mocha reporter. I think |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
billtorla-scopely
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, add this to your hardhat config:
You can use any mocha reporter. I think
xunit
is the one you want.