:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
Config output file mocha not working in Truffle Config
I followed this post (https://trufflesuite.com/guides/ethereum-devops-truffle-testrpc-vsts/#prepare-trufflejs) to set config mocha that log output testing to file. However, this post is archived.
I tried it but it not working, it still logs to stdout, and no file is generated. How i should set config mocha to log output testing to file?
I need the file to generate the report then.
Ah yes that looks like a very old tutorial. Currently I don't believe Truffle supports this but I will leave this issue here as a feature request. Thanks for submitting this issue!
Issue
Config output file mocha not working in Truffle Config I followed this post (https://trufflesuite.com/guides/ethereum-devops-truffle-testrpc-vsts/#prepare-trufflejs) to set config mocha that log output testing to file. However, this post is archived. I tried it but it not working, it still logs to stdout, and no file is generated. How i should set config mocha to log output testing to file? I need the file to generate the report then.
Steps to Reproduce
Setting truffle-config.js
Expected Behavior
The result of testing is logged to file junitresults.json
Actual Results
The log format is changed to JSON format. However, The result of testing is still logged to stdout
Environment
truffle version
): v5.5.7node --version
): v16.15.0npm --version
): 8.5.5