8000 Filter out specified test names by joelrosario · Pull Request #643 · specmatic/specmatic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Filter out specified test names #643

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

Merged
merged 2 commits into from
Apr 24, 2023
Merged

Filter out specified test names #643

merged 2 commits into from
Apr 24, 2023

Conversation

joelrosario
Copy link
Contributor

What:

Omit tests containing the specified name

Why:

You might need to run all except a few tests that require for example a dependency to be down, which at the moment needs to be simulated in Java using a separate property file, loaded by Spring at application start. This necessitates another class, that need not run all the contract tests. But this test would fail if the application is up, so it should be omitted from the main test class.

How:

We've added a filterNotName property, as well as a --filter-not-name command-line parameter.

Checklist:

Issue ID:
Closes: #123

@joelrosario joelrosario merged commit 7be206d into main Apr 24, 2023
@joelrosario joelrosario deleted the filterNotName branch April 24, 2023 15:12
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.

2 participants
0