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

Allow specifying individual specific tests to run with flow test #1273

Closed
jribbink opened this issue Nov 20, 2023 · 0 comments · Fixed by #1285
Closed

Allow specifying individual specific tests to run with flow test #1273

jribbink opened this issue Nov 20, 2023 · 0 comments · Fixed by #1285
Assignees
Labels
Feature A new user feature or a new package API Feedback

Comments

@jribbink
Copy link
Contributor

Issue To Be Solved

It would be useful to have the ability to specify an individual test to run when using the flow test command.

I.e. for

access(all) fun testFoobar() {
...
}

access(all) fun testBarFoo() {
...
}

It would be nice to be able to just run one of these tests instead of all of them.

(Optional): Suggest A Solution

Add a flag like --run to flow test. From here a user could specify a regular expression to match against test functions & filter the tests which they wish to run.

(Optional): Context

This is important for any IDE/external tooling supporting of the Cadence test framework. Specifically, to integrate with the VSCode Testing API, it's important to have the ability to target individual test runs beyond a file/folder level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new user feature or a new package API Feedback
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants