Skip to content

Is it possible to have hardhat test results output in a parse-able format? #3206

Discussion options

You must be logged in to vote

Yes, add this to your hardhat config:

module.exports = {
  // rest of your config
  mocha: {
    reporter: "json"
  }
}

You can use any mocha reporter. I think xunit is the one you want.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@billtorla-scopely
Comment options

Answer selected by billtorla-scopely
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants