The target generation was wrong, as it created some
strange target for isolated test files.
It now creates two types of targets:

* directory targets, like:
rake integration/network/server
or
rake unit/network

Those run all tests in a specific directory

* spec targets like:
rake unit:indirector:catalog:yaml
or
rake unit:parser:ast:definition

Signed-off-by: Brice Figureau <[email protected]>
---
 spec/Rakefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/Rakefile b/spec/Rakefile
index 19ef278..28e1d8e 100644
--- a/spec/Rakefile
+++ b/spec/Rakefile
@@ -67,8 +67,8 @@ filemap.each do |dir, files|
     # First create a separate task for each file in the namespace.
     namespace ns do
         files.each do |file|
-            Spec::Rake::SpecTask.new(file) do |t|
-                t.spec_files = File.basename(file, '.rb')
+            Spec::Rake::SpecTask.new(File.basename(file, '.rb').to_sym) do |t|
+                t.spec_files = [ file ]
                 t.libs = libs
                 t.spec_opts = ['--options', 'spec.opts']
             end
-- 
1.6.0.2


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to