Skip to content

Commit

Permalink
System test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed Feb 23, 2024
1 parent c6be4c0 commit 0241cd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions spec/gcov/gcov_test_cases_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def can_create_html_report
FileUtils.cp test_asset_path("test_example_file_success.c"), 'test/'

output = `bundle exec ruby -S ceedling gcov:all`
expect(output).to match(/Creating HTML coverage report\(s\) with gcovr in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(output).to match(/Creating HTML coverage report in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(File.exist?('build/artifacts/gcov/gcovr/GcovCoverageResults.html')).to eq true
end
end
Expand Down Expand Up @@ -216,7 +216,7 @@ def can_create_gcov_html_report_from_crashing_test_runner_with_enabled_debug_and
expect(output).to match(/IGNORED:\s+0/)
expect(output).to match(/example_file.c \| Lines executed:50.00% of 4/)

expect(output).to match(/Creating HTML coverage report\(s\) with gcovr in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(output).to match(/Creating HTML coverage report in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(output).to match(/Done/)
expect(File.exist?('build/artifacts/gcov/gcovr/GcovCoverageResults.html')).to eq true
end
Expand Down Expand Up @@ -247,7 +247,7 @@ def can_create_gcov_html_report_from_crashing_test_runner_with_enabled_debug_and
expect(output).to match(/IGNORED:\s+0/)
expect(output).to match(/example_file.c \| Lines executed:0.00% of 4/)

expect(output).to match(/Creating HTML coverage report\(s\) with gcovr in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(output).to match(/Creating HTML coverage report in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(output).to match(/Done/)
expect(File.exist?('build/artifacts/gcov/gcovr/GcovCoverageResults.html')).to eq true
end
Expand Down Expand Up @@ -282,7 +282,7 @@ def can_create_gcov_html_report_from_test_runner_with_enabled_debug_and_cmd_args
expect(output).to match(/IGNORED:\s+0/)
expect(output).to match(/example_file.c \| Lines executed:100.00% of 4/)

expect(output).to match(/Creating HTML coverage report\(s\) with gcovr in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(output).to match(/Creating HTML coverage report in 'build\/artifacts\/gcov\/gcovr'\.\.\./)
expect(output).to match(/Done/)
expect(File.exist?('build/artifacts/gcov/gcovr/GcovCoverageResults.html')).to eq true
end
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_system_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def can_test_projects_with_both_mock_and_real_header
end
end

def uses_raw_output_report_plugin
def uses_raw_tests_output_report_plugin
@c.with_context do
Dir.chdir @proj_name do
FileUtils.cp test_asset_path("example_file.h"), 'src/'
Expand All @@ -487,7 +487,7 @@ def uses_raw_output_report_plugin
expect(output).to match(/PASSED:\s+\d/)
expect(output).to match(/FAILED:\s+\d/)
expect(output).to match(/IGNORED:\s+\d/)
expect(File.exist?("build/artifacts/test/test_example_file_verbose.log")).to eq true
expect(File.exist?("build/artifacts/test/test_example_file_verbose.raw.log")).to eq true
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/system/deployment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
it { can_test_projects_with_compile_error }
it { can_test_projects_with_both_mock_and_real_header }
it { can_test_projects_with_success_when_space_appears_between_hash_and_include }
it { uses_raw_output_report_plugin }
it { uses_raw_tests_output_report_plugin }
it { test_run_of_projects_fail_because_of_sigsegv_without_report }
it { test_run_of_projects_fail_because_of_sigsegv_with_report }
it { execute_all_test_cases_from_crashing_test_runner_and_return_test_report_with_failue_when_cmd_args_set_to_true }
Expand Down

0 comments on commit 0241cd5

Please sign in to comment.