Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for skipped scenarios appearing as failures in cucumber junit report #496

Merged
merged 5 commits into from
Jul 12, 2013

Conversation

ambirag
Copy link
Contributor

@ambirag ambirag commented Jul 2, 2013

i raised this issue here - cucumber/common#495
all details are available in the issue ticket 495

@os97673
Copy link
Member

os97673 commented Jul 2, 2013

Could you please provide test for the problem you are fixing.

@@ -127,21 +127,21 @@ def after_table_row(table_row)
private

def build_testcase(duration, status, exception = nil, suffix = "")
@time += duration
@time += duration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like some indentation problem :( Could you please fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure will fix this indentation issue, but just one question.
when i look at the whole file here https://github.com/ambirag/cucumber/blob/ab00d824bd4a29b81b53f24e882ba659cc3c2840/lib/cucumber/formatter/junit.rb , it looks fine without any indentation issue, also when i open my local copy in vi, i dont see any indentation issue. Only the above diff is showing it, can you help me here ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely you use tabs. Please replace them with spaces.

passed = (status == :passed || pending)
@builder.testcase(:classname => classname, :name => name, :time => "%.6f" % duration) do
if( passed == false && status != :skipped)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation/tabs again :(

@os97673
Copy link
Member

os97673 commented Jul 4, 2013

@ambirag it looks like I'm not receiving notification when new commits are added to PR, could you please add comment here when you think PR is ready for review. Thanks in advance.

@os97673
Copy link
Member

os97673 commented Jul 4, 2013

@ambirag it looks like you have added test to our "legacy" suite (which we try to replace by specs and feaures). Could you please either create spec for the problem or feature under "features" directory instead.

@ambirag
Copy link
Contributor Author

ambirag commented Jul 5, 2013

@os97673 i have fixed the indentation issues, working on the test now

@ghost ghost assigned os97673 Jul 6, 2013
@os97673
Copy link
Member

os97673 commented Jul 6, 2013

i have fixed the indentation issues, working on the test now

@ambirag the code looks fine for me as soon as you will add test I'll merge the PR

@ambirag
Copy link
Contributor Author

ambirag commented Jul 12, 2013

@os97673 i've added a test in spec as of now

@os97673 os97673 merged commit bd85fad into cucumber:master Jul 12, 2013
@os97673
Copy link
Member

os97673 commented Jul 12, 2013

I've merged changes to both trunk and 1.3.x, as soon as Travis completes verification will release 1.3.4

@ambirag
Copy link
Contributor Author

ambirag commented Jul 13, 2013

@os97673 thanks

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants