Fix/issue 418 windows pytest bdd path#419
Conversation
Item.location[0] uses backslashes on Windows, so the suffix check for pytest_bdd/scenario.py never matched and RP received duplicate items. Normalize path separators before comparing the suffix. Closes #418 Made-with: Cursor
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAdded a portable helper Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #419 +/- ##
===========================================
- Coverage 69.73% 69.66% -0.08%
===========================================
Files 6 6
Lines 1411 1411
===========================================
- Hits 984 983 -1
- Misses 427 428 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Problem
On Windows,
Item.location[0]uses backslashes, so the check forpytest_bdd/scenario.pynever matched. ReportPortal then got both the generic pytest item and the BDD scenario/steps (duplicate executions).Change
_is_pytest_bdd_scenario_location()with path separator normalization.start_pytest_item,process_results, andfinish_pytest_item.Tests
Fixes #418
Summary by CodeRabbit
Bug Fixes
Tests