mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-21 09:37:26 +00:00
- Added rake targets for running unit tests on individual C modules
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@44 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
+13
-1
@@ -19,7 +19,7 @@ task :app do
|
||||
build_application('Main')
|
||||
end
|
||||
|
||||
namespace :tests do
|
||||
namespace :test do
|
||||
|
||||
desc "Run unit and system tests"
|
||||
task :all => [:clean, :units, :system, :app]
|
||||
@@ -36,4 +36,16 @@ namespace :tests do
|
||||
report_summary
|
||||
end
|
||||
|
||||
get_unit_test_files.each do |test_file|
|
||||
file_name = File.basename(test_file)
|
||||
module_name = file_name.sub(/Test/,'')
|
||||
task file_name do
|
||||
run_systests(test_file)
|
||||
end
|
||||
desc "Test #{module_name}"
|
||||
task module_name do
|
||||
run_systests(test_file)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user