Skip to content

Add marker for tests to the onboard cmd#70

Merged
amrit110 merged 1 commit intomainfrom
add_marker_test
Feb 20, 2026
Merged

Add marker for tests to the onboard cmd#70
amrit110 merged 1 commit intomainfrom
add_marker_test

Conversation

@amrit110
Copy link
Member

This pull request introduces support for filtering integration tests by pytest markers in the onboarding CLI, allowing users to run only tests matching a specific marker via a new --test-marker command-line argument. The implementation ensures marker values are correctly passed to the test runner, and comprehensive unit tests verify the new functionality and its integration with the CLI workflow.

Enhancements to integration test filtering:

  • Added an optional marker parameter to the run_integration_test function, which forwards the marker as a -m <marker> argument to pytest, enabling selective test execution.
  • Extended the _run_tests_and_finalize function to accept and forward a test_marker argument, ensuring marker-based filtering is applied during onboarding. [1] [2] [3]

CLI interface improvements:

  • Introduced the --test-marker command-line argument in the CLI, allowing users to specify a pytest marker expression when running integration tests.
  • Updated the CLI workflow to pass the test_marker argument through to integration test execution, ensuring marker filtering is consistently applied.

Testing and validation:

  • Added unit tests to verify marker forwarding, command structure, and CLI integration, including checks for correct handling of marker presence and absence, and for bypassing tests when skip_test is set. [1] [2]

@amrit110 amrit110 self-assigned this Feb 20, 2026
@amrit110 amrit110 added the enhancement New feature or request label Feb 20, 2026
@amrit110 amrit110 merged commit 112acd6 into main Feb 20, 2026
5 checks passed
@amrit110 amrit110 deleted the add_marker_test branch February 20, 2026 01:21
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.87%. Comparing base (9b629bd) to head (35cba36).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   89.84%   89.87%   +0.02%     
==========================================
  Files          10       10              
  Lines        1438     1442       +4     
==========================================
+ Hits         1292     1296       +4     
  Misses        146      146              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant