Преглед на файлове

Update the suites used in the tests, run the bidi and server tests as their own suites in the default target

Tim Emiola преди 11 години
родител
ревизия
397fda0b0c
променени са 1 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 12 4
      src/ruby/Rakefile

+ 12 - 4
src/ruby/Rakefile

@@ -13,9 +13,11 @@ end
 SPEC_SUITES = [
 SPEC_SUITES = [
   { id: :wrapper, title: 'wrapper layer', files: %w(spec/*.rb) },
   { id: :wrapper, title: 'wrapper layer', files: %w(spec/*.rb) },
   { id: :idiomatic, title: 'idiomatic layer', dir: %w(spec/generic),
   { id: :idiomatic, title: 'idiomatic layer', dir: %w(spec/generic),
-    tag: '~bidi' },
+    tags: ['~bidi', '~server'] },
   { id: :bidi, title: 'bidi tests', dir: %w(spec/generic),
   { id: :bidi, title: 'bidi tests', dir: %w(spec/generic),
-    tag: 'bidi' }
+    tag: 'bidi' },
+  { id: :server, title: 'rpc server thread tests', dir: %w(spec/generic),
+    tag: 'server' }
 ]
 ]
 
 
 desc 'Run all RSpec tests'
 desc 'Run all RSpec tests'
@@ -33,12 +35,18 @@ namespace :spec do
 
 
         t.pattern = spec_files
         t.pattern = spec_files
         t.rspec_opts = "--tag #{suite[:tag]}" if suite[:tag]
         t.rspec_opts = "--tag #{suite[:tag]}" if suite[:tag]
+        t.rspec_opts = suite[:tags].map{ |t| "--tag #{t}" }.join(' ') if suite[:tags]
       end
       end
     end
     end
   end
   end
 end
 end
 
 
-task default: 'spec:suite:idiomatic'  # this should be spec:suite:bidi
+desc 'Run compiles the extension, runs all the tests'
+task :all
+
+task default: :all
 task 'spec:suite:wrapper' => :compile
 task 'spec:suite:wrapper' => :compile
 task 'spec:suite:idiomatic' => 'spec:suite:wrapper'
 task 'spec:suite:idiomatic' => 'spec:suite:wrapper'
-task 'spec:suite:bidi' => 'spec:suite:idiomatic'
+task 'spec:suite:bidi' => 'spec:suite:wrapper'
+task 'spec:suite:server' => 'spec:suite:wrapper'
+task :all => ['spec:suite:idiomatic', 'spec:suite:bidi', 'spec:suite:server']