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

Add --match-tests to 'check' cmd #170

Merged
merged 2 commits into from
Dec 13, 2022
Merged

Add --match-tests to 'check' cmd #170

merged 2 commits into from
Dec 13, 2022

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Dec 13, 2022

For running only tests matching a certain pattern. Useful when doing TDD.

For example:

aiken check --match-tests list

  For running only tests matching a certain pattern. Useful when doing TDD.
continue;
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be an if let

if let Some(search_str) = match_tests {
    if !path.to_string().contains(&search_str) {
        continue;
    }
}

or even

if matches!(match_tests, Some(search_str) if !path.to_string().contains(search_str) ) {
    continue;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff. Thanks :)

@rvcas rvcas merged commit 4dfb454 into main Dec 13, 2022
@rvcas rvcas deleted the check-match-tests branch December 13, 2022 15:34
@rvcas rvcas added the test framework All things regarding the aiken test framework label Dec 15, 2022
@rvcas rvcas added this to the v0.3.0 Testing Framework milestone Dec 15, 2022
@KtorZ KtorZ mentioned this pull request Dec 20, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test framework All things regarding the aiken test framework
Projects
Status: 🚀 Released
Development

Successfully merging this pull request may close these issues.

2 participants