Skip to content

Commit

Permalink
Merge pull request #232 from lonnblad/bugfix/junit-time-format
Browse files Browse the repository at this point in the history
Fixed a bug regarding JUnit time field
  • Loading branch information
lonnblad authored Feb 27, 2020
2 parents 4267df0 + 7565a32 commit b87fa07
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 148 deletions.
60 changes: 30 additions & 30 deletions features/formatter/junit.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testcase name="simple scenario" status="" time="0s"></testcase>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="simple scenario" status="" time="0"></testcase>
</testsuite>
</testsuites>
"""
Expand All @@ -35,9 +35,9 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testcase name="simple scenario" status="" time="0s"></testcase>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="simple scenario" status="" time="0"></testcase>
</testsuite>
</testsuites>
"""
Expand All @@ -59,10 +59,10 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="2" skipped="0" failures="0" errors="0" time="0s">
<testsuite name="simple feature" tests="2" skipped="0" failures="0" errors="0" time="0s">
<testcase name="simple scenario #1" status="" time="0s"></testcase>
<testcase name="simple scenario #2" status="" time="0s"></testcase>
<testsuites name="godog" tests="2" skipped="0" failures="0" errors="0" time="0">
<testsuite name="simple feature" tests="2" skipped="0" failures="0" errors="0" time="0">
<testcase name="simple scenario #1" status="" time="0"></testcase>
<testcase name="simple scenario #2" status="" time="0"></testcase>
</testsuite>
</testsuites>
"""
Expand All @@ -88,10 +88,10 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="2" skipped="0" failures="0" errors="0" time="0s">
<testsuite name="simple feature" tests="2" skipped="0" failures="0" errors="0" time="0s">
<testcase name="simple scenario #1" status="" time="0s"></testcase>
<testcase name="simple scenario #2" status="" time="0s"></testcase>
<testsuites name="godog" tests="2" skipped="0" failures="0" errors="0" time="0">
<testsuite name="simple feature" tests="2" skipped="0" failures="0" errors="0" time="0">
<testcase name="simple scenario #1" status="" time="0"></testcase>
<testcase name="simple scenario #2" status="" time="0"></testcase>
</testsuite>
</testsuites>
"""
Expand All @@ -112,9 +112,9 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="1" skipped="0" failures="1" errors="0" time="0s">
<testsuite name="simple feature" tests="1" skipped="0" failures="1" errors="0" time="0s">
<testcase name="simple scenario" status="failed" time="0s">
<testsuites name="godog" tests="1" skipped="0" failures="1" errors="0" time="0">
<testsuite name="simple feature" tests="1" skipped="0" failures="1" errors="0" time="0">
<testcase name="simple scenario" status="failed" time="0">
<failure message="Step a failing step: intentional failure"></failure>
</testcase>
</testsuite>
Expand All @@ -141,10 +141,10 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="2" skipped="0" failures="1" errors="0" time="0s">
<testsuite name="simple feature" tests="2" skipped="0" failures="1" errors="0" time="0s">
<testcase name="simple scenario #1" status="passed" time="0s"></testcase>
<testcase name="simple scenario #2" status="failed" time="0s">
<testsuites name="godog" tests="2" skipped="0" failures="1" errors="0" time="0">
<testsuite name="simple feature" tests="2" skipped="0" failures="1" errors="0" time="0">
<testcase name="simple scenario #1" status="passed" time="0"></testcase>
<testcase name="simple scenario #2" status="failed" time="0">
<failure message="Step failing step: intentional failure"></failure>
</testcase>
</testsuite>
Expand All @@ -167,9 +167,9 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testcase name="simple scenario" status="" time="0s"></testcase>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="simple scenario" status="" time="0"></testcase>
</testsuite>
</testsuites>
"""
Expand All @@ -191,9 +191,9 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0s">
<testcase name="simple scenario" status="passed" time="0s"></testcase>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="simple scenario" status="passed" time="0"></testcase>
</testsuite>
</testsuites>
"""
Expand All @@ -216,9 +216,9 @@ Feature: JUnit XML formatter
Then the rendered xml will be as follows:
""" application/xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="1" time="0s">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="1" time="0s">
<testcase name="simple scenario" status="undefined" time="0s">
<testsuites name="godog" tests="1" skipped="0" failures="0" errors="1" time="0">
<testsuite name="simple feature" tests="1" skipped="0" failures="0" errors="1" time="0">
<testcase name="simple scenario" status="undefined" time="0">
<error message="Step pending step: TODO: write pending definition" type="pending"></error>
<error message="Step undefined" type="undefined"></error>
<error message="Step passing step" type="skipped"></error>
Expand Down
Loading

0 comments on commit b87fa07

Please sign in to comment.