Commit e48b2301 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "Tools/collect_line_and_branch_coverage.py", print analyzed modules.

.gitlab-ci.yml:
- Use "mvn <options> <phase>" syntax consequently like mentioned in "mvn --help".
parent dac9c25c
Pipeline #63174 failed with stages
in 2 minutes and 55 seconds
......@@ -19,16 +19,16 @@ unit_tests_with_coverage:
# Following syntaxes allow you to skip whole classes and single methods:
#
# #Exclude one test class
# mvn test -Dtest=!LegacyTest
# mvn -Dtest=!LegacyTest test
# # Exclude one test method
# mvn verify -Dtest=!LegacyTest#testFoo
# mvn -Dtest=!LegacyTest#testFoo verify
# # Exclude two test methods
# mvn verify -Dtest=!LegacyTest#testFoo+testBar
# mvn -Dtest=!LegacyTest#testFoo+testBar verify
# # Exclude a package with a wildcard (*)
# mvn test -Dtest=!com.mycompany.app.Legacy*
# mvn -Dtest=!com.mycompany.app.Legacy* test
script:
- mvn clean
- mvn test -Dtest=!TestConvolution,!TestBitonicSort,!TestCLLinkedList
- mvn -Dtest=!TestConvolution,!TestBitonicSort,!TestCLLinkedList test
- python3 Tools/collect_line_and_branch_coverage.py
run_scenario_files:
......@@ -36,6 +36,6 @@ run_scenario_files:
script:
- mvn clean
- mvn package -Dmaven.test.skip=true
- mvn -Dmaven.test.skip=true package
- python3 Tools/run_vadere_console_with_all_scenario_files.py
......@@ -67,8 +67,9 @@ def print_averaged_line_coverage(coverage_data):
averaged_line_coverage = int(round(summed_line_coverage_data / total_modules, 0))
averaged_branch_coverage = int(round(summed_branch_coverage_data / total_modules, 0))
print("Analyzed modules: {}".format(sorted(coverage_data.keys())))
print("Line Coverage: Total {}%".format(averaged_line_coverage))
print("Branch Coverage: {}%".format(averaged_branch_coverage))
print("Branch Coverage: Total {}%".format(averaged_branch_coverage))
if __name__ == "__main__":
module_names = get_modules_from_pom_file()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment