Skip to content

Commit

Permalink
remove tests for some features that have been refactored away.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Dec 1, 2023
1 parent 4bdce09 commit e82172a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions spec/gcov/gcov_deployment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@
expect(@output).to match(/Model\.c Lines executed:/i)
# there are more, but this is a good place to stop.

@output = `bundle exec ruby -S ceedling utils:gcov`
expect(@output).to match(/For now, creating only an HtmlBasic report\./)
expect(@output).to match(/Creating (?:a )?gcov (?:results)?(?:HTML)? report(?:\(s\))? in 'build\/artifacts\/gcov'\.\.\. Done/)
expect(File.exist?('build/artifacts/gcov/GcovCoverageResults.html')).to eq true

end
end
end
Expand Down
8 changes: 0 additions & 8 deletions spec/gcov/gcov_test_cases_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def can_fetch_project_help_for_gcov
expect(output).to match(/ceedling gcov:\*/i)
expect(output).to match(/ceedling gcov:all/i)
expect(output).to match(/ceedling gcov:delta/i)
expect(output).to match(/ceedling utils:gcov/i)
end
end
end
Expand All @@ -188,7 +187,6 @@ def can_create_html_report
FileUtils.cp test_asset_path("test_example_file_success.c"), 'test/'

output = `bundle exec ruby -S ceedling gcov:all`
output = `bundle exec ruby -S ceedling utils:gcov`
expect(output).to match(/Creating gcov results report\(s\) in 'build\/artifacts\/gcov'\.\.\. Done/)
expect(File.exist?('build/artifacts/gcov/GcovCoverageResults.html')).to eq true
end
Expand All @@ -208,8 +206,6 @@ def can_create_gcov_html_report_from_crashing_test_runner_with_enabled_debug_and

output = `bundle exec ruby -S ceedling gcov:all 2>&1`
expect($?.exitstatus).to match(1) # Test should fail as sigsegv is called
gcov_html_report = `bundle exec ruby -S ceedling utils:gcov 2>&1`
expect($?.exitstatus).to match(0)
expect(output).to match(/Segmentation fault/i)
expect(output).to match(/Unit test failures./)
expect(File.exist?('./build/gcov/results/test_example_file_sigsegv.fail'))
Expand Down Expand Up @@ -240,8 +236,6 @@ def can_create_gcov_html_report_from_crashing_test_runner_with_enabled_debug_and

output = `bundle exec ruby -S ceedling gcov:all --exclude_test_case=test_add_numbers_adds_numbers 2>&1`
expect($?.exitstatus).to match(1) # Test should fail as sigsegv is called
gcov_html_report = `bundle exec ruby -S ceedling utils:gcov 2>&1`
expect($?.exitstatus).to match(0)
expect(output).to match(/Segmentation fault/i)
expect(output).to match(/Unit test failures./)
expect(File.exist?('./build/gcov/results/test_example_file_sigsegv.fail'))
Expand Down Expand Up @@ -280,8 +274,6 @@ def can_create_gcov_html_report_from_test_runner_with_enabled_debug_and_cmd_args

output = `bundle exec ruby -S ceedling gcov:all --exclude_test_case=test_add_numbers_will_fail 2>&1`
expect($?.exitstatus).to match(0)
gcov_html_report = `bundle exec ruby -S ceedling utils:gcov 2>&1`
expect($?.exitstatus).to match(0)
expect(File.exist?('./build/gcov/results/test_example_file_sigsegv.pass'))
expect(output).to match(/TESTED:\s+2/)
expect(output).to match(/PASSED:\s+2/)
Expand Down

0 comments on commit e82172a

Please sign in to comment.