Skip to content
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

[nextest-runner] add a way to pass extra args at runtime #1968

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

sunshowers
Copy link
Member

@sunshowers sunshowers commented Dec 10, 2024

Add a way to do this:

[[profile.default.overrides]]
filter = "test(some_filter)"
phase.run.extra-args = ["--test-threads", "1"]

See #1959 for why this is required. This is an advanced option that should be used with care, but it's worth implementing.

The phase.run is because (a) we may want phase.list in the future as well, and (b) in the future, we'll want to support setting the environment here as well.

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 93.75000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 80.39%. Comparing base (337840e) to head (547b2e7).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
nextest-runner/src/config/overrides.rs 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1968      +/-   ##
==========================================
+ Coverage   80.37%   80.39%   +0.01%     
==========================================
  Files          92       93       +1     
  Lines       22673    22701      +28     
==========================================
+ Hits        18223    18250      +27     
- Misses       4450     4451       +1     

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

Add a way to do this:

```toml
[[profile.default.overrides]]
filter = ...
phase.run.extra-args = 
```

See #1959 for why this is
required. This is an advanced option that should be used with care, but it's
worth implementing.

The `phase.run` is because (a) we may want `phase.list` in the future as well,
and (b) in the future, we'll want to support setting the environment here as
well.
Copy link

trunk-io bot commented Dec 10, 2024

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@sunshowers sunshowers merged commit a39ca1b into main Dec 10, 2024
19 checks passed
@sunshowers sunshowers deleted the extra-args branch December 10, 2024 01:47
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.

1 participant