Browse Source

trying rspec-retry

darkbushido 2 years ago
parent
commit
e873c87f0b
No account linked to committer's email address
5 changed files with 12 additions and 2 deletions
  1. 1
    0
      .gitignore
  2. 2
    2
      .travis.yml
  3. 1
    0
      Gemfile
  4. 7
    0
      Gemfile.lock
  5. 1
    0
      Rakefile

+ 1
- 0
.gitignore View File

@@ -91,3 +91,4 @@ docker-compose.local*
91 91
 
92 92
 # Ignore python bytecode
93 93
 *.pyc
94
+rspec.failures

+ 2
- 2
.travis.yml View File

@@ -18,8 +18,8 @@ rvm:
18 18
 env:
19 19
 # TODO: restore these tests when the code passes them!
20 20
 #  - CMD='bundle exec rake cucumber cucumber:boot CREATE_BINSTUBS=true'
21
-  - CMD='bundle exec rake spec SPEC_OPTS="--tag content"'
22
-  - CMD='bundle exec rake spec SPEC_OPTS="--tag ~content"'
21
+  - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
22
+  - CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
23 23
 
24 24
 matrix:
25 25
   fast_finish: true

+ 1
- 0
Gemfile View File

@@ -33,6 +33,7 @@ group :development, :test do
33 33
   # Define `rake spec`.  Must be in development AND test so that its available by default as a rake test when the
34 34
   # environment is development
35 35
   gem 'rspec-rails'
36
+  gem 'rspec-rerun'
36 37
 end
37 38
 
38 39
 group :test do

+ 7
- 0
Gemfile.lock View File

@@ -312,6 +312,10 @@ GEM
312 312
       rex-text
313 313
     rkelly-remix (0.0.7)
314 314
     robots (0.10.1)
315
+    rspec (3.6.0)
316
+      rspec-core (~> 3.6.0)
317
+      rspec-expectations (~> 3.6.0)
318
+      rspec-mocks (~> 3.6.0)
315 319
     rspec-core (3.6.0)
316 320
       rspec-support (~> 3.6.0)
317 321
     rspec-expectations (3.6.0)
@@ -328,6 +332,8 @@ GEM
328 332
       rspec-expectations (~> 3.6.0)
329 333
       rspec-mocks (~> 3.6.0)
330 334
       rspec-support (~> 3.6.0)
335
+    rspec-rerun (1.1.0)
336
+      rspec (~> 3.0)
331 337
     rspec-support (3.6.0)
332 338
     ruby_smb (0.0.18)
333 339
       bindata
@@ -381,6 +387,7 @@ DEPENDENCIES
381 387
   rake
382 388
   redcarpet
383 389
   rspec-rails
390
+  rspec-rerun
384 391
   shoulda-matchers
385 392
   simplecov
386 393
   timecop

+ 1
- 0
Rakefile View File

@@ -11,6 +11,7 @@ Metasploit::Framework::Require.optionally_active_record_railtie
11 11
 
12 12
 begin
13 13
   require 'rspec/core'
14
+  require 'rspec-rerun/tasks'
14 15
 rescue LoadError
15 16
   puts "rspec not in bundle, so can't set up spec tasks.  " \
16 17
        "To run specs ensure to install the development and test groups."

Loading…
Cancel
Save