rspec_n 1.1.0 → 1.2.0

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: 02e086ee01e65f0ac9e1352f77e8ed372a999284
4
- data.tar.gz: 9a2b8f3caaf24bb2812dd8f90520df1edf5ab6e3
3
+ metadata.gz: cd9139bd338b7e4fe2ed983d0201d37160733550
4
+ data.tar.gz: 1a4b4c06eb9c2c5346b7226a1afc89d075d16941
5
5
  SHA512:
6
- metadata.gz: 7f896ea775b492f458322bbffc031346e2cb5406e47d6d46103b1ddc251e9b632b4b733ba4ed8d44501da9501834869c7929fc1dccb9a230c1321d2dc2d501a5
7
- data.tar.gz: eb1ecd8d5a36d39572fec169a4997e347f3328496aab16960b3db7aab41f472d26ee7c02c91ecf8e7432b0effcb1b27c75276b89b24f4ab2728fd64a0efa404a
6
+ metadata.gz: bdbe60af92d7dd0ceeacdc1c82b39ccad92b79ad3d5923aedef67b01b1cd7068be571082855d4d1f077bf72db1621f9ebbf4ddcd431849e79adaba1aea2d28c1
7
+ data.tar.gz: 684b3b9222560d657de3e84294f6820cefe9f53599fe8df5ebb411fd96c096fb369b5a175d492175899b5a284ed53fa480648b750bf16e72825aa5af10124e93
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.0 (Mar 03, 2019)
4
+
5
+ 1. (New) Write the command that was used to run rspec_n to the output files. ([Issue #26](https://github.com/roberts1000/rspec_n/issues/26))
6
+
3
7
  ## 1.1.0 (Mar 03, 2019)
4
8
 
5
9
  1. (New) Add **Result Counts** column which shows the result counts for each run (e.g. "400 examples, 2 failures, 3 pending" ). ([Issue #19](https://github.com/roberts1000/rspec_n/issues/19))
@@ -15,7 +15,7 @@ module RspecN
15
15
  Dir.glob("#{BASE_FILE_NAME}.**").each { |file| File.delete(file) }
16
16
  end
17
17
 
18
- def write(run)
18
+ def write(run, command)
19
19
  return if run.skipped?
20
20
  return unless @runner.input.write_files?
21
21
 
@@ -25,7 +25,8 @@ module RspecN
25
25
  f.write("Iteration: #{run.iteration}\n")
26
26
  f.write("Start Time: #{run.formatted_start_time(@format)}\n")
27
27
  f.write("Finish Time: #{run.formatted_finish_time(@format)}\n")
28
- f.write("Duration: #{convert_seconds_to_hms(run.duration_seconds)}\n\n")
28
+ f.write("Duration: #{convert_seconds_to_hms(run.duration_seconds)}\n")
29
+ f.write("Command: #{command}\n\n")
29
30
  f.write(run.rspec_stdout)
30
31
  f.write(run.rspec_stderr)
31
32
  end
@@ -55,7 +55,7 @@ module RspecN
55
55
  run.stop_clock
56
56
  @display_formatter.show_post_run_info(run)
57
57
  found_failure ||= run.failed?
58
- @file_formatter.write(run)
58
+ @file_formatter.write(run, @command)
59
59
  end
60
60
  end
61
61
 
@@ -1,3 +1,3 @@
1
1
  module RspecN
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - roberts1000