mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-14 23:27:51 +00:00
Let's enable validation of examples. failures should trip errors.
Also make them verbose so we can see what is going on.
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ namespace :test do
|
||||
|
||||
desc "Test cmock examples"
|
||||
task :examples => [:prep_system_tests] do
|
||||
run_examples()
|
||||
run_examples(true)
|
||||
end
|
||||
|
||||
#individual system tests
|
||||
|
||||
@@ -395,7 +395,7 @@ module RakefileHelpers
|
||||
end
|
||||
end
|
||||
|
||||
def run_examples()
|
||||
def run_examples(verbose=false, raise_on_failure=true)
|
||||
report "\n"
|
||||
report "-----------------\n"
|
||||
report "VALIDATE EXAMPLES\n"
|
||||
@@ -404,7 +404,7 @@ module RakefileHelpers
|
||||
"cd #{File.join("..","examples","temp_sensor")} && rake ci"
|
||||
].each do |cmd|
|
||||
report "Testing '#{cmd}'"
|
||||
execute(cmd, false)
|
||||
execute(cmd, verbose, raise_on_failure)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user