Skip to content

Conversation

@priyacshah
Copy link
Contributor

FIX #487
In the case of early exit, the features that dont' run after first failure do not have starttime or endtime. Fixed it to skip those after early exit.

@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.41%. Comparing base (df5e5cb) to head (becca9c).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #488      +/-   ##
==========================================
+ Coverage   87.13%   87.41%   +0.27%     
==========================================
  Files          38       38              
  Lines        2325     2329       +4     
==========================================
+ Hits         2026     2036      +10     
+ Misses        299      293       -6     
Flag Coverage Δ
unittests 87.41% <100.00%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fliiiix
Copy link
Member

fliiiix commented Oct 20, 2025

thanks for the detailed issue and mr looks good, i will review it in the next 3 weeks, if that doesn't happen feel free to ping me again

@priyacshah
Copy link
Contributor Author

priyacshah commented Oct 27, 2025

Hi @fliiiix, just FYI, code coverage is not reaching the target and so failing.

@fliiiix
Copy link
Member

fliiiix commented Oct 28, 2025

The coverage target thing can be ignored, this is a bit of a left over from the past, which is a bit to sensitive and fails even though things are still more than ok, but i haven't got around to figure out to make the job succeed on small negative coverage changes or to find a better coverage tool

Copy link
Member

@fliiiix fliiiix left a comment

Choose a reason for hiding this comment

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

looks good overall ✨

alexandrehassan and others added 3 commits October 31, 2025 18:45
Run with: radish -b radish features --junit-xml=result.xml

Produces junit xml:
```
<?xml version='1.0' encoding='utf-8'?>
<testsuites time="0.000">
  <testsuite name="Test summing numbers" failures="0" errors="0" skipped="1" tests="2" time="0.000">
    <testcase classname="Test summing numbers" name="Sum two numbers" time="0.000"/>
    <testcase classname="Test summing numbers" name="Sum three numbers" time="0.000">
      <skipped/>
    </testcase>
  </testsuite>
  <testsuite name="Test summing numbers" failures="0" errors="0" skipped="2" tests="2" time="0.000">
    <testcase classname="Test summing numbers" name="Sum two numbers" time="0.000">
      <skipped/>
    </testcase>
    <testcase classname="Test summing numbers" name="Sum three numbers" time="0.000">
      <skipped/>
    </testcase>
  </testsuite>
</testsuites>
```
@fliiiix fliiiix force-pushed the early_exit_junit_xml_feature branch from 828ee2c to becca9c Compare November 1, 2025 07:42
# IDE configuration
.idea/
.venv/
.vscode/
Copy link
Member

Choose a reason for hiding this comment

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

@alexandrehassan you might want to look into your editor config and enable new line at the end of a file, https://stackoverflow.com/a/729795/1279355

@fliiiix
Copy link
Member

fliiiix commented Nov 1, 2025

Added a exploratory test, thanks @priyacshah for the MR and @alexandrehassan for adding a test ✨

@fliiiix fliiiix merged commit 3e58ca9 into radish-bdd:main Nov 1, 2025
8 checks passed
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.

Radish --early-exit and --junit-xml flags Causes Error: Cannot get duration of Feature

3 participants