简体   繁体   中英

How to generate test report into file

I am currently running few terratests. On console I can see the log when add -v option but How do I generate test report of pass/failed tests? maybe in html or pdf format

go test -timeout 30m | tee test_output.log terratest_log_parser -testlog test_output.log -outputdir test_output

This will:

  • Create a file TEST_NAME.log for each test it finds from the test output containing the logs corresponding to that test.

  • Create avsummary.log file containing the test result lines for each test.

  • Create a report.xml file containing a Junit XML file of the test summary (so it can be integrated in your CI).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM