This project utilizes the junit2html plugin to convert test result files from *.xml format to *.html. Additionally, in the case of multiple test reports, the plugin is used to merge them into a single *.html report file.
$ behave **/*.feature --junit
$ python -m unittest tests.test_your_module1
- Install plugin junit2html
$ behave **/*.feature --junit//Run tests$ junit2html reports/*.xml --merge=merged_results.xml// Merge all *.xml files in one$ junit2html merged_results.xml --report-matrix=summary_report.html// Generate HTML report
- Can be found in GitHub Actions -> Summary Report
- Report looks like this:
python-cucumber/
|
|-- .github/
| |-- workflows/
| |-- cucumber-test.yml
|
|-- src/
| |-- your_python_module1.py
|
|-- tests/
| |-- e2e/
| | |-- features/
| | | |-- steps/
| | | |-- steps.py
| | | |-- test-01.feature
| | | |-- test-02.feature
| | |-- steps/
| | |-- steps.py
| |
| |-- unit/
| |-- test_your_module1.py

