Skip to content

Commit 2bb986b

Browse files
committed
make rspec test unit-test-build and unit-test-run as separate actions
1 parent e6675fc commit 2bb986b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spec/testsomething_unittests_spec.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@
4141
# @todo smooth this out for external purposes
4242
test_files = config.allowable_unittest_files(cpp_library.test_files)
4343
test_files.each do |path|
44-
it "tests #{File.basename(path)} successfully" do
45-
exe = cpp_library.build_for_test_with_configuration(path, [], config.gcc_config("uno"))
44+
exe = cpp_library.build_for_test_with_configuration(path, [], config.gcc_config("uno"))
45+
it "builds #{File.basename(path)} successfully" do
4646
expect(exe).not_to be nil
47-
expect(cpp_library.run_test_file(exe)).to_not be_falsey
47+
end
48+
unless exe.nil?
49+
it "tests #{File.basename(path)} successfully" do
50+
expect(cpp_library.run_test_file(exe)).to_not be_falsey
51+
end
4852
end
4953
end
5054
end

0 commit comments

Comments
 (0)