-
-
Notifications
You must be signed in to change notification settings - Fork 28
Added alias command test-behat for test-bdd.
#1760
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
Conversation
WalkthroughA new alias Changes
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
.vortex/installer/tests/Fixtures/install/_baseline/.ahoy.ymlis excluded by!.vortex/installer/tests/Fixtures/**
📒 Files selected for processing (2)
.ahoy.yml(1 hunks).vortex/tests/bats/_helper.workflow.bash(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (13)
- GitHub Check: build (1)
- GitHub Check: build (0)
- GitHub Check: vortex-test-installer (8.2)
- GitHub Check: vortex-test-installer (8.3)
- GitHub Check: vortex-test-installer (8.4)
- GitHub Check: vortex-test-deployment (1)
- GitHub Check: vortex-test-workflow (3)
- GitHub Check: vortex-test-workflow (2)
- GitHub Check: vortex-test-workflow (1)
- GitHub Check: vortex-test-workflow (0)
- GitHub Check: vortex-test-common
- GitHub Check: vortex-test-deployment (0)
- GitHub Check: vortex-test-docs
🔇 Additional comments (1)
.ahoy.yml (1)
244-244: Correct alias addition
Thealiases: ['test-behat']entry is properly formatted and aligned under thetest-bddcommand. This will allowahoy test-behatto invoke the same BDD suite.
| substep "Run all BDD tests via an alias" | ||
| run ahoy test-behat | ||
| assert_success |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Extend alias test to verify artifacts
The new alias invocation only asserts a successful exit. To ensure parity with test-bdd, consider syncing logs and checking that .logs/test_results/behat/default.xml (and screenshots if applicable) are generated by ahoy test-behat as well.
Example diff:
substep "Run all BDD tests via an alias"
run ahoy test-behat
assert_success
+ sync_to_host
+ assert_dir_not_empty .logs/test_results
+ assert_file_exists .logs/test_results/behat/default.xml📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| substep "Run all BDD tests via an alias" | |
| run ahoy test-behat | |
| assert_success | |
| substep "Run all BDD tests via an alias" | |
| run ahoy test-behat | |
| assert_success | |
| sync_to_host | |
| assert_dir_not_empty .logs/test_results | |
| assert_file_exists .logs/test_results/behat/default.xml |
🤖 Prompt for AI Agents
In .vortex/tests/bats/_helper.workflow.bash around lines 606 to 608, the alias
test for `ahoy test-behat` only checks for a successful exit but does not verify
that expected artifacts like logs and screenshots are created. Extend the test
by adding assertions to check that the `.logs/test_results/behat/default.xml`
file exists after running the alias, and if applicable, verify that screenshots
are also generated, ensuring the alias produces the same outputs as the original
`test-bdd` command.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1760 +/- ##
===========================================
+ Coverage 72.94% 72.96% +0.01%
===========================================
Files 83 83
Lines 4587 4590 +3
Branches 35 35
===========================================
+ Hits 3346 3349 +3
Misses 1241 1241 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Chores
test-behat, for running BDD tests, making it interchangeable with the existingtest-bddcommand.Tests
test-behatalias runs BDD tests successfully.