Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix test execution issues when running cargo tests passing non-SWS arguments#466

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
joseluisq merged 1 commit intomasterfromfix-config-for-tests
Jul 22, 2024

Conversation

joseluisq
Copy link
Collaborator

@joseluisqjoseluisq commentedJul 22, 2024
edited
Loading

Description

This PR fixes an issue when running tests via Cargo with additional non-SWS arguments.
This was because SWS tried to parse CLI arguments in a test context.

Now, SWS won't parse arguments by default when running tests. So the following command will work as expected (run all tests):

cargotest -- --test-threads 1 --nocapture

Related Issue

Itfixes#465

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

When running tests with additional non-sws arguments, tests executionfails because sws is trying to parse cli arguments anyways.Now, sws won't parse arguments by default when running tests.For example, the following command will work as expected:cargo test -- --test-threads 1 --nocapture
@joseluisqjoseluisq added v2v2 release bugfixThis is PR fixes a bug testing labelsJul 22, 2024
@joseluisqjoseluisq self-assigned thisJul 22, 2024
@semanticdiff-comSemanticDiff.com
Copy link

semanticdiff-combot commentedJul 22, 2024
edited
Loading

Review changes withSemanticDiff.

Analyzed 6 of 6 files.

Overall, the semantic diff is17% smaller than the GitHub diff.

FilenameStatus
✔️tests/compression.rsAnalyzed
✔️tests/handler.rsAnalyzed
✔️tests/redirects.rsAnalyzed
✔️tests/rewrites.rsAnalyzed
✔️src/testing.rsAnalyzed
✔️src/settings/mod.rs23.05% smaller

@joseluisqjoseluisq linked an issueJul 22, 2024 that may beclosed by this pull request
2 tasks
@joseluisqjoseluisq merged commit915d040 intomasterJul 22, 2024
39 checks passed
@joseluisqjoseluisq deleted the fix-config-for-tests branchJuly 22, 2024 19:32
@joseluisqjoseluisq added this to thev2.33.0 milestoneJul 24, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees

@joseluisqjoseluisq

Labels
bugfixThis is PR fixes a bugtestingv2v2 release
Projects
None yet
Milestone
v2.32.2
Development

Successfully merging this pull request may close these issues.

Tests fail because CLI options are parsed
1 participant
@joseluisq

[8]ページ先頭

©2009-2025 Movatter.jp