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

Updated xUnit test reporter #809

Merged
merged 3 commits into from
Oct 8, 2015

Conversation

sixsixtrample
Copy link

Added check if test.err exists and changed test for whether a test has
passed or failed. Tested both a test that should pass and a test that
should fail. Both printed correctly.

Added check if test.err exists and changed test for whether a test has
passed or failed. Tested both a test that should pass and a test that
should fail. Both printed correctly.
@@ -98,7 +98,7 @@ function XUnit(options) {
parentSuite.pending++;
test.id = ++id;
test.time = new Date() - tests[test.pid][0].end,
Copy link
Member

Choose a reason for hiding this comment

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

could you replace the , with an ; and remove the indentation below?

Copy link
Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Member

Choose a reason for hiding this comment

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

@sixsixtrample I still see

test.time = new Date() - tests[test.pid][0].end,

but it should be

test.time = new Date() - tests[test.pid][0].end;

@christian-bromann
Copy link
Member

@sixsixtrample One comment on something that is not related to this but would be great if we can fix this as well. After that it is good to go

removed indent and changed , to ;
@@ -108,7 +108,7 @@ function XUnit(options) {
parentSuite.passes++;
test.id = ++id;
test.time = new Date() - tests[test.pid][0].end,
test.timestamp = tests[test.pid][0].end = new Date();
test.timestamp = tests[test.pid][0].end = new Date();
test.runnerData = runnerData[test.pid];
Copy link
Member

Choose a reason for hiding this comment

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

please also change it here

Corrected , and ;
@sixsixtrample
Copy link
Author

Ok, I believe they are all fixed.

@christian-bromann
Copy link
Member

@sixsixtrample please have a look at the Files Change tab. Have you missed to push to Github?

@sixsixtrample
Copy link
Author

It says I have no uncommitted changes. And I pushed it to my fork. Is there something else I need to do?

christian-bromann added a commit that referenced this pull request Oct 8, 2015
@christian-bromann christian-bromann merged commit ad39a74 into webdriverio:master Oct 8, 2015
@christian-bromann
Copy link
Member

Thanks!

@christian-bromann
Copy link
Member

Published with v3.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants