File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,26 @@ jobs:
4646 run : |
4747 pytest --junitxml="test-results/test-performance.xml" tests/performance
4848
49- - name : Report
49+ - name : Report measurements
5050 uses : mikepenz/action-junit-report@v5
5151 if : always()
5252 with :
53- check_name : ' Performance tests report '
53+ check_name : ' Performance measurements '
5454 report_paths : " ./test-results/test-performance.xml"
5555 detailed_summary : true
5656 verbose_summary : true
5757 include_passed : true
58+ include_time_in_summary : false
59+ resolve_ignore_classname : true
60+
61+ - name : Report performance tests validation
62+ uses : mikepenz/action-junit-report@v5
63+ if : always()
64+ with :
65+ check_name : ' Performance tests report'
66+ report_paths : " ./test-results/test-performance__validation.xml"
67+ detailed_summary : true
68+ verbose_summary : false
69+ include_passed : true
5870 include_time_in_summary : true
5971 resolve_ignore_classname : true
Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ def pytest_configure(config):
2222 config .option .benchmark_time_unit = "ms"
2323 config .option .benchmark_sort = "name"
2424 config .option .benchmark_json = BytesIO ()
25- config .option .junit_prefix = "measurement "
25+ config .option .junitxml = "benchmark_measurement.xml "
2626 else :
27- config .option .junit_prefix = "validation"
27+ if config .option .xmlpath :
28+ # For --junitxml = /path/abc.xml, create /path/abc__validation.xml
29+ path = Path (config .option .xmlpath )
30+ config .option .xmlpath = str (path .with_stem (path .stem + "__validation" ))
2831
2932
3033def pytest_benchmark_update_json (config , benchmarks , output_json ):
You can’t perform that action at this time.
0 commit comments