You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2011/11/18 14:32:30 UTC
[PATCH core 1/4] CIMI: Added possibility to run single spec for specified model in Rakefile
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/Rakefile | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/server/Rakefile b/server/Rakefile
index 9436518..53fb7bf 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -95,6 +95,15 @@ RSpec::Core::RakeTask.new do |t|
t.rspec_opts = [ "--format", "nested", "--color", "-r ./spec/spec_helper.rb"]
end
+Dir['spec/**/*_spec.rb'].each do |file|
+ RSpec::Core::RakeTask.new("spec:#{File.basename(file).gsub(/_spec\.rb$/, '')}") do |t|
+ t.pattern = FileList[file]
+ t.rspec_opts = [ "--format", "nested", "--color", "-r ./spec/spec_helper.rb"]
+ end
+end
+
+
+
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
--
1.7.4.4
Re: [PATCH core 1/4] CIMI: Added possibility to run single spec for
specified model in Rakefile
Posted by Tong Li <li...@us.ibm.com>.
OK.
Tong Li
Emerging Technologies & Standards
Building 501/B205
litong01@us.ibm.com
From: mfojtik@redhat.com
To: deltacloud-dev@incubator.apache.org
Date: 11/18/2011 08:32 AM
Subject: [PATCH core 1/4] CIMI: Added possibility to run single spec for
specified model in Rakefile
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/Rakefile | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/server/Rakefile b/server/Rakefile
index 9436518..53fb7bf 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -95,6 +95,15 @@ RSpec::Core::RakeTask.new do |t|
t.rspec_opts = [ "--format", "nested", "--color",
"-r ./spec/spec_helper.rb"]
end
+Dir['spec/**/*_spec.rb'].each do |file|
+ RSpec::Core::RakeTask.new("spec:#{File.basename(file).gsub(/_spec\.rb$/,
'')}") do |t|
+ t.pattern = FileList[file]
+ t.rspec_opts = [ "--format", "nested", "--color",
"-r ./spec/spec_helper.rb"]
+ end
+end
+
+
+
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
--
1.7.4.4