new_project_template/vendor/ceedling/plugins/bullseye/bullseye.rake in ceedling-0.0.12 vs new_project_template/vendor/ceedling/plugins/bullseye/bullseye.rake in ceedling-0.0.13
- old
+ new
@@ -67,11 +67,11 @@
task :source_coverage => COLLECTION_ALL_SOURCE.pathmap("#{BULLSEYE_BUILD_OUTPUT_PATH}/%n#{@ceedling[:configurator].extension_object}")
desc "Run code coverage for all tests"
task :all => [:directories] do
@ceedling[:configurator].replace_flattened_config(@ceedling[BULLSEYE_SYM].config)
- @ceedling[:test_invoker].setup_and_invoke(COLLECTION_ALL_TESTS)
+ @ceedling[:test_invoker].setup_and_invoke(COLLECTION_ALL_TESTS, BULLSEYE_SYM)
@ceedling[:configurator].restore_config
end
desc "Run single test w/ coverage ([*] real test or source file name, no path)."
task :* do
@@ -90,11 +90,11 @@
matches << test if test =~ /#{args.regex}/
end
if (matches.size > 0)
@ceedling[:configurator].replace_flattened_config(@ceedling[BULLSEYE_SYM].config)
- @ceedling[:test_invoker].setup_and_invoke(matches, {:force_run => false})
+ @ceedling[:test_invoker].setup_and_invoke(matches, BULLSEYE_SYM, {:force_run => false})
@ceedling[:configurator].restore_config
else
@ceedling[:streaminator].stdout_puts("\nFound no tests matching pattern /#{args.regex}/.")
end
end
@@ -107,21 +107,21 @@
matches << test if File.dirname(test).include?(args.dir.gsub(/\\/, '/'))
end
if (matches.size > 0)
@ceedling[:configurator].replace_flattened_config(@ceedling[BULLSEYE_SYM].config)
- @ceedling[:test_invoker].setup_and_invoke(matches, {:force_run => false})
+ @ceedling[:test_invoker].setup_and_invoke(matches, BULLSEYE_SYM, {:force_run => false})
@ceedling[:configurator].restore_config
else
@ceedling[:streaminator].stdout_puts("\nFound no tests including the given path or path component.")
end
end
desc "Run code coverage for changed files"
task :delta => [:directories] do
@ceedling[:configurator].replace_flattened_config(@ceedling[BULLSEYE_SYM].config)
- @ceedling[:test_invoker].setup_and_invoke(COLLECTION_ALL_TESTS, {:force_run => false})
+ @ceedling[:test_invoker].setup_and_invoke(COLLECTION_ALL_TESTS, BULLSEYE_SYM, {:force_run => false})
@ceedling[:configurator].restore_config
end
# use a rule to increase efficiency for large projects
# bullseye test tasks by regex
@@ -132,13 +132,23 @@
@ceedling[:file_finder].find_test_from_file_path(test)
end
]) do |test|
@ceedling[:rake_wrapper][:directories].invoke
@ceedling[:configurator].replace_flattened_config(@ceedling[BULLSEYE_SYM].config)
- @ceedling[:test_invoker].setup_and_invoke([test.source])
+ @ceedling[:test_invoker].setup_and_invoke([test.source], BULLSEYE_SYM)
@ceedling[:configurator].restore_config
end
-
+
+end
+
+if PROJECT_USE_AUXILIARY_DEPENDENCIES
+namespace REFRESH_SYM do
+ task BULLSEYE_SYM do
+ @ceedling[:configurator].replace_flattened_config(@ceedling[BULLSEYE_SYM].config)
+ @ceedling[:test_invoker].refresh_auxiliary_dependencies
+ @ceedling[:configurator].restore_config
+ end
+end
end
namespace UTILS_SYM do
desc "Open Bullseye code coverage browser"