Comments (29)
I believe this has been fixed. I haven't run into this error in my many runs. If i run into issues i'll file another issue.
The issue can be closed.
from turnip_formatter.
Hi @onthespotqa
Thanks for report. I'll try to check this issue.
from turnip_formatter.
@gongo thanks.
from turnip_formatter.
i was looking into this myself and i don't know enough about how the formatter works to fix. But it looks like the difference between this and other failures is that it doesn't know how to handle RSpec's MultipleExceptionError.
from turnip_formatter.
Hi @onthespotqa
My reply was very very late ๐ .
I will fix this bug in version 0.6.0. Please wait until release.
from turnip_formatter.
@gongo great thanks.
from turnip_formatter.
Hi @onthespotqa
Very*5 late ๐
I've released 0.6.0.pre.beta.5 that corrected this problem.
Please try this .
from turnip_formatter.
@gongo i still get an error.
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.5/lib/turnip_formatter/renderer/html/index.rb:44:in rescue in block in scenarios_html': undefined method
render' for #RuntimeError:0x0000000fec1e68 (NoMethodError)
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.5/lib/turnip_formatter/renderer/html/index.rb:41:in `block in scenarios_html'
latest version of this gem.
turnip (3.0.0.pre.beta.5)
from turnip_formatter.
Hi @onthespotqa
Sorry ๐ GH-86
I fixed this error and released 0.6.0.pre.beta.6. Please try ๐
from turnip_formatter.
This error has been fixed.
However it does not look like the formatter supports rspec's Failure Aggregation functionality (https://www.relishapp.com/rspec/rspec-core/docs/expectation-framework-integration/aggregating-failures). I'm not sure if this functionality is supposed to be supported. If i have this flag set i get the following exception
Runtime Error
undefined method map' for nil:NilClass Runtime Error Backtrace C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/turnip_formatter/renderer/html/scenario.rb:13:in
steps_html'
(erb):20:in render' C:/Ruby22-x64/lib/ruby/2.2.0/erb.rb:863:in
eval'
C:/Ruby22-x64/lib/ruby/2.2.0/erb.rb:863:in result' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/turnip_formatter/renderer/html/base.rb:42:in
render'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/turnip_formatter/renderer/html/index.rb:43:in block in scenarios_html' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/turnip_formatter/renderer/html/index.rb:41:in
map'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/turnip_formatter/renderer/html/index.rb:41:in scenarios_html' (erb):68:in
render'
C:/Ruby22-x64/lib/ruby/2.2.0/erb.rb:863:in eval' C:/Ruby22-x64/lib/ruby/2.2.0/erb.rb:863:in
result'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/turnip_formatter/renderer/html/base.rb:42:in render' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/rspec/core/formatters/turnip_formatter.rb:57:in
output_html'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/turnip_formatter-0.6.0.pre.beta.6/lib/rspec/core/formatters/turnip_formatter.rb:36:in dump_summary' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:189:in
block in notify'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:188:in each' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:188:in
notify'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:167:in block in finish' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:175:in
close_after'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:156:in finish' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:79:in
report'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:117:in run_specs' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:93:in
run'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in run' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45:in
invoke'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.4/exe/rspec:4:in `
from turnip_formatter.
@onthespotqa Thanks to stacktrace report.
Hmm.. there is no error with failure aggregation in my environment ๐ค
I will investigate it ๐ช
from turnip_formatter.
@gongo do you want the output that i have for this from the rspec documentation format?
from turnip_formatter.
I appreciate it ๐
from turnip_formatter.
here's an example
-
[Is_TransactionID_Used_As_UserID = True] Do Not Use TransactionID as a User Identifier [Cause Merge] New TrackingID, Transaction_ID Already Associated with a Subject_Lookup Given The ReplaceTransactionID is not Set -> Given The Account Setting "Is_TransactionID_Used_As_UserID" is Set to "True" -> And I Poke the Session Manager Component Caches -> Given The Following Users: -> Given Tracking_ID "TK1" -> When I Send a Target Event Call with a Transaction_ID in Subject_Lookup -> Then The Subject_ID Associated with "TN1" is Used to Identify My Session in Session Manager -> Then My Session Times Out -> Then My Tracking ID is assigned to The Subject_ID for "TN1"
Got 2 failures:2.1) Failure/Error: expect(@info.subject_id.downcase).to eq @subject_id.downcase
expected: "07f18024-f420-4a14-b8f0-dc2378d6593f" got: "8e9e2bf8-867b-4e5c-8e91-14432b20000f" (compared using ==) # ./spec/support/steps/session_info/subject_id_steps.rb:51:in `block in <top (required)>' # ./spec/transaction_id/use_transaction_id_true.feature:23:in `run_step' # ./spec/transaction_id/use_transaction_id_true.feature:17:in `block (4 levels) in run_feature' # ./spec/transaction_id/use_transaction_id_true.feature:16:in `each' # ./spec/transaction_id/use_transaction_id_true.feature:16:in `block (3 levels) in run_feature'
2.2) Failure/Error: expect(subject_id.downcase).to eq transaction_subject_id.downcase
expected: "07f18024-f420-4a14-b8f0-dc2378d6593f" got: "8e9e2bf8-867b-4e5c-8e91-14432b20000f" (compared using ==) # ./spec/support/steps/subjects/subject_lookup_steps.rb:59:in `block in <top (required)>' # ./spec/transaction_id/use_transaction_id_true.feature:25:in `run_step' # ./spec/transaction_id/use_transaction_id_true.feature:17:in `block (4 levels) in run_feature' # ./spec/transaction_id/use_transaction_id_true.feature:16:in `each' # ./spec/transaction_id/use_transaction_id_true.feature:16:in `block (3 levels) in run_feature'
from turnip_formatter.
Thanks for example!
from turnip_formatter.
Could you tell me for ruby and gems version?
- Ruby (maybe 2.2.x ?)
- RSpec (maybe 3.4.4 ?)
$ ruby -v
(output)
$ bundle list | grep rspec | sort
(output)
from turnip_formatter.
ruby 2.2.6p396 (2016-11-15 revision 56800) [x64-mingw32]
rspec (3.4.0)
from turnip_formatter.
rspec (3.4.0)
Please other (rspec-*
) gems (rspec-core
, rspec-expectations
, ...)
from turnip_formatter.
rspec (3.4.0)
rspec-core (> 3.4.0)> 3.4.0)
rspec-expectations (
rspec-mocks (> 3.4.0)> 3.4.0)
rspec-core (3.4.4)
rspec-support (
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (> 3.4.0)> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (
rspec-retry (0.5.3)
rspec-core (> 3.3, < 3.6)
rspec-support (3.4.1)
from turnip_formatter.
Sorry, I want to see bundle list
output:
example:
$ bundle list | grep rspec | sort
* rspec (3.4.0)
* rspec-core (3.4.4)
* rspec-expectations (3.4.0)
* rspec-mocks (3.4.1)
* rspec-support (3.4.1)
from turnip_formatter.
- rspec (3.4.0)
- rspec-core (3.4.4)
- rspec-expectations (3.4.0)
- rspec-mocks (3.4.1)
- rspec-retry (0.5.3)
- rspec-support (3.4.1)
from turnip_formatter.
Thanks !
from turnip_formatter.
Umm.. There is no error with failure aggregation in my environment yet (macOS, Windows 7)
Would you please let me know the definition of following line and surroundings? (pseudo code OK)
spec/support/steps/session_info/subject_id_steps.rb:51
spec/support/steps/subjects/subject_lookup_steps.rb:59
step 'xxx' do
# ...
aggregate_failures "yyy" do
# ...
expect(@info.subject_id.downcase).to eq @subject_id.downcase
end
end
from turnip_formatter.
spec/support/steps/subjects/subject_lookup_steps.rb:59
step "My Tracking ID is assigned to The Subject_ID for :identifier" do |identifier|
sleep 5
transaction_subject_id = find_subject_id(identifier)
subject_id = INSIGHT[:subject_lookup].where(:user_id => @visitor_id).get(:subject_id)
expect(subject_id.downcase).to eq transaction_subject_id.downcase
end
spec/support/steps/session_info/subject_id_steps.rb:51
step "The Subject_ID Associated with :identifier is Used to Identify My Session in Session Manager" do |identifier|
@info = call_session_info(@application_id, @visitor_id)
@subject_id = find_subject_id(identifier)
expect(@info.subject_id.downcase).to eq @subject_id.downcase
end
from turnip_formatter.
@onthespotqa Thanks!!
Just to confirm. Do you write code like the following in spec_helper.rb
?
config.define_derived_metadata do |meta|
meta[:aggregate_failures] = true
end
from turnip_formatter.
yes.
from turnip_formatter.
OK !
I understood the cause of the error. I will start to fix it. ๐ช
from turnip_formatter.
Hi @onthespotqa
I fixed this error and released 0.6.0.pre.beta.7 (maybe..). Please try ๐
from turnip_formatter.
Thanks !!
from turnip_formatter.
Related Issues (20)
- add_template ไฝฟใใใใใใใ HOT 1
- ๅใทใใชใชใๆใใใใใใใใซ HOT 1
- Tag Statistics
- Feature Statistics HOT 2
- Speed ranking HOT 1
- ในใใใใฏๅๆ่กจ็คบใง้ๅฑ้ใซใใฆใใ
- ใฟใใฎๅฎ่ฃ HOT 1
- scss ่ฆ็ดใใ
- execjs ใฎ runtime ใใชใ่จใใใ
- Add plain text format HOT 1
- JRuby support, undefined method `[]' in turnip_formatter/scenario.rb HOT 3
- Change flow that create report (test -> json -> html) HOT 1
- Support for new Formatter API since RSpec 3.0 HOT 1
- cucumber compatible json output HOT 3
- Encoding::CompatibilityError on language:ja feature file HOT 9
- compat with turnip-2.1.0 HOT 4
- Add support for RSpec::Core::MultipleExceptionError HOT 5
- Background ใใใๅ ดๅใฎใทใใชใชใงใจใฉใผในใใใใฎ็ชๅทใใใใ HOT 1
- support for rspec >= 3.5.x HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turnip_formatter.