gurke 3.3.2 → 3.3.3

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
  SHA256:
3
- metadata.gz: 0397cd73d54c76350b72961da6af3a7735b4bfc134e2c4ec85d1aa0698d83fef
4
- data.tar.gz: ba610c4ef198dc90e5962386a410fc886ec8eebad749dfba177ca0011da61308
3
+ metadata.gz: 0f0e20c2294765e444f6d57c93c0f396aacca045a6e68d38913841d9c10ac455
4
+ data.tar.gz: f691ffa3fe1ee9675db5e030b30cab01d0e79444d4865eb42e101278115b7017
5
5
  SHA512:
6
- metadata.gz: f62c44c16c881ed3ceac307cf380fd1c7a07a92f0cd499a016d494acb7cc1e0939641f9a6e3153b6d553f2fc409ed22a4ae24d889e195123e76cdae06fce0791
7
- data.tar.gz: e476dc728f92ebd45dcb594a9a7a60914b580c4e4c346533bfa1d6640724dc645791e3bd985760d7e286ae00f309238fc4235d2e44e2286e0a8f1bd95180d130
6
+ metadata.gz: e5acfcc8dc29a615b5d522ad375d13aa782663c8a1f5e5ccb7385e0416a617afab642911726a8ea4dbe6234a14b15d0dceecfc45e8a527e4537ac06b45570c7f
7
+ data.tar.gz: 7b236cecf9842f9905b9160d65ee7641ecdb88004700de5766f88de1ac9c6b63e0e7cbecfef14153b80c8ef6a5add5c144cf47e6d4a41cfe6bdce0ca1e3a7401
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.3
4
+
5
+ * Fix a TC reporter issues reporting all scenarios as aborted
6
+
3
7
  ## 3.3.2
4
8
 
5
9
  * Fix teamcity and compact reporter
@@ -28,7 +28,7 @@ module Gurke::Reporters
28
28
  publish :testIgnored,
29
29
  name: scenario.name,
30
30
  message: 'Step definition missing'
31
- else
31
+ elsif scenario.aborted?
32
32
  publish :testIgnored,
33
33
  name: scenario.name,
34
34
  message: 'Aborted.'
@@ -4,7 +4,7 @@ module Gurke
4
4
  module VERSION
5
5
  MAJOR = 3
6
6
  MINOR = 3
7
- PATCH = 2
7
+ PATCH = 3
8
8
  STAGE = nil
9
9
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.').freeze
10
10
 
@@ -8,7 +8,8 @@ require 'spec_helper'
8
8
  RSpec.describe Gurke::Reporters::TeamCityReporter do
9
9
  let(:output) { StringIO.new }
10
10
  let(:reporter) { described_class.new(output) }
11
- subject { output.string }
11
+
12
+ subject { output.string.scan(/##teamcity\[.*\]/) }
12
13
 
13
14
  describe '#before_feature' do
14
15
  let(:feature) { double('feature') }
@@ -25,9 +26,9 @@ RSpec.describe Gurke::Reporters::TeamCityReporter do
25
26
  subject { reporter.before_feature(feature); super() }
26
27
 
27
28
  it 'include a testSuiteStarted command' do
28
- is_expected.to include <<~TXT
29
- ##teamcity[testSuiteStarted name='Demo feature']
30
- TXT
29
+ is_expected.to eq [
30
+ "##teamcity[testSuiteStarted name='Demo feature']"
31
+ ]
31
32
  end
32
33
  end
33
34
 
@@ -44,9 +45,9 @@ RSpec.describe Gurke::Reporters::TeamCityReporter do
44
45
  subject { reporter.before_scenario(scenario); super() }
45
46
 
46
47
  it do
47
- is_expected.to include <<~TXT
48
- ##teamcity[testStarted name='Running the scenario']
49
- TXT
48
+ is_expected.to eq [
49
+ "##teamcity[testStarted name='Running the scenario']"
50
+ ]
50
51
  end
51
52
  end
52
53
 
@@ -64,9 +65,31 @@ RSpec.describe Gurke::Reporters::TeamCityReporter do
64
65
  subject { reporter.after_scenario(scenario); super() }
65
66
 
66
67
  it do
67
- is_expected.to include <<~TXT
68
- ##teamcity[testFinished name='Running the scenario']
69
- TXT
68
+ is_expected.to eq [
69
+ "##teamcity[testFinished name='Running the scenario']"
70
+ ]
71
+ end
72
+
73
+ context '<failed>' do
74
+ let(:exception) do
75
+ begin
76
+ raise RuntimeError.new
77
+ rescue RuntimeError => e
78
+ e
79
+ end
80
+ end
81
+
82
+ before do
83
+ allow(scenario).to receive(:failed?).and_return(true)
84
+ allow(scenario).to receive(:exception).and_return(exception)
85
+ end
86
+
87
+ it do
88
+ is_expected.to match [
89
+ match(/##teamcity\[testFailed name='.*' message='.*' backtrace='.*'\]/),
90
+ "##teamcity[testFinished name='Running the scenario']"
91
+ ]
92
+ end
70
93
  end
71
94
  end
72
95
 
@@ -80,9 +103,9 @@ RSpec.describe Gurke::Reporters::TeamCityReporter do
80
103
  subject { reporter.after_feature(feature); super() }
81
104
 
82
105
  it do
83
- is_expected.to include <<~TXT
84
- ##teamcity[testSuiteFinished name='Demo feature']
85
- TXT
106
+ is_expected.to eq [
107
+ "##teamcity[testSuiteFinished name='Demo feature']"
108
+ ]
86
109
  end
87
110
  end
88
111
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gurke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen