learn-test 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1c80af8232efc6d6b9aed3abbf28f4f59343fe4
4
- data.tar.gz: 142403a9fdd9edd76d7fbbb32223e09c691eb12e
3
+ metadata.gz: aba116ce5e44e3b001f7b7106d2067a98fed0fd1
4
+ data.tar.gz: 695faf3399146508234b87325214c5496d98d991
5
5
  SHA512:
6
- metadata.gz: 8982bf36d3b41783fa78217e45fd5edac1d7b2c487b8567823b99fad1c7a281346a5bdbeec54b675be61be71fb5b7b7f06d0f2c95255e68a0bf910135b39c357
7
- data.tar.gz: 60497e620f6ad9f3621a7ccd742cda34dbf623292a57fb56307467753bbd0715687c12cc31ecc817f3247aa78dc73539b9ed35aa788d223fb524de232b7e6bb4
6
+ metadata.gz: e30e18c054767b5e996bf964e060d4b24008c144a70c6e90a47b1871c2cadfd89d986510a1b9310307b2b6b43cb2d7ef12f0b367490dc409a2dba2a58419a65d
7
+ data.tar.gz: ad2e0ae39c1d522fed0c8a0c82c5834a144068c837c6e2020f78699014cde660d0b1cca5c37f50552d23c8e0d874025594c1689a9d036b668d0c44ed9c7ee38a
data/bin/learn-test CHANGED
@@ -45,6 +45,10 @@ OptionParser.new do |opts|
45
45
  options[:keep] = true
46
46
  end
47
47
 
48
+ opts.on('--fail-fast', 'Stop running test suite on first failed test') do |f|
49
+ options[:fail_fast] = f
50
+ end
51
+
48
52
  if ARGV.any? { |arg| arg == "init" }
49
53
  options[:init] = true
50
54
  end
@@ -21,6 +21,10 @@ module LearnTest
21
21
  argv.unshift('--format documentation')
22
22
  end
23
23
 
24
+ if fail_fast_option_present?
25
+ argv << '--fail-fast'
26
+ end
27
+
24
28
  # Don't pass the test/local flag from learn binary to rspec runner.
25
29
  argv.delete("--test")
26
30
  argv.delete("-t")
@@ -74,6 +78,10 @@ module LearnTest
74
78
  options[:format]
75
79
  end
76
80
 
81
+ def fail_fast_option_present?
82
+ options[:fail_fast]
83
+ end
84
+
77
85
  def dot_rspec
78
86
  @dot_rspec ||= File.readlines('.rspec').map(&:strip) if File.exist?('.rspec')
79
87
  end
@@ -1,3 +1,3 @@
1
1
  module LearnTest
2
- VERSION = '2.3.1'
2
+ VERSION = '2.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler