Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.

Commit ddc6f7f

Browse files
committed
Support for missing labels (#60)
1 parent d3d53b3 commit ddc6f7f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
allure-rspec (0.7.4)
4+
allure-rspec (0.7.6)
55
allure-ruby-adaptor-api (= 0.6.9)
66
rspec (~> 3.2)
77

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ describe MySpec, :feature => "Some feature", :severity => :normal do
5050
puts "Before step #{s.current_step}"
5151
end
5252

53-
it "should be critical", :story => "First story", :severity => :critical do
53+
it "should be critical", :story => "First story", :severity => :critical, :testId => 99 do
5454
"string".should == "string"
5555
end
5656

57-
it "should be steps enabled", :story => ["First story", "Second story"] do |e|
57+
it "should be steps enabled", :story => ["First story", "Second story"], :testId => 31 do |e|
5858

5959
e.step "step1" do |s|
6060
s.attach_file "screenshot1", take_screenshot_as_file

lib/allure-rspec/formatter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Formatter < RSpec::Core::Formatters::BaseFormatter
88

99
NOTIFICATIONS = [:example_group_started, :example_group_finished, :example_started,
1010
:example_failed, :example_passed, :example_pending, :start, :stop]
11-
ALLOWED_LABELS = [:feature, :story, :severity, :language, :framework]
11+
ALLOWED_LABELS = [:feature, :story, :severity, :language, :framework, :issue, :testId, :host, :thread]
1212

1313
def example_failed(notification)
1414
res = notification.example.execution_result

lib/allure-rspec/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module AllureRSpec # :nodoc:
22
module Version # :nodoc:
3-
STRING = '0.7.5'
3+
STRING = '0.7.6'
44
end
55
end

spec/another_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
puts "after suite"
1212
end
1313

14-
it "10 cannot be greater than 19", :story => ["Some story"] do
14+
it "10 cannot be greater than 19", :story => ["Some story"], :testId => 10 do
1515
expect(10).to be > 19
1616
end
1717

18-
it "4 must not be equal to 5" do
18+
it "4 must not be equal to 5", :testId => 20 do
1919
expect(5).to be eql(4)
2020
end
2121
end

0 commit comments

Comments
 (0)