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 support for dynamic tests #365

Merged
merged 4 commits into from
Jan 17, 2025

Conversation

jean-andre-gauthier
Copy link
Member

@jean-andre-gauthier jean-andre-gauthier commented Jan 17, 2025

Updates PARAMETERIZED_SUFFIX_PATTERN in BaseJunitTestFrameworkStrategy to support dynamic tests, by allowing an arbitrary number of trailing [...]

@jean-andre-gauthier jean-andre-gauthier linked an issue Jan 17, 2025 that may be closed by this pull request
@jean-andre-gauthier jean-andre-gauthier force-pushed the jgauthier/364/add-support-dynamic-tests branch from 1ca5b4e to daef9b4 Compare January 17, 2025 12:30
Signed-off-by: Jean Gauthier <[email protected]>
@jean-andre-gauthier jean-andre-gauthier marked this pull request as ready for review January 17, 2025 12:37
@@ -35,7 +35,7 @@
abstract class BaseJunitTestFrameworkStrategy implements TestFrameworkStrategy {

public static final Logger LOGGER = LoggerFactory.getLogger(JunitTestFrameworkStrategy.class);
private static final Pattern PARAMETERIZED_SUFFIX_PATTERN = Pattern.compile("(?:\\([^)]*?\\))?(?:\\[[^]]*?])?$");
private static final Pattern PARAMETERIZED_SUFFIX_PATTERN = Pattern.compile("(?:\\([^)]*?\\))?(?:\\[[^]]*?])*$");
Copy link
Member

Choose a reason for hiding this comment

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

💭 Sometimes I have a feeling that the entire plugin relies on this one regex :D

Signed-off-by: Jean Gauthier <[email protected]>
@jean-andre-gauthier jean-andre-gauthier merged commit 9c4edca into main Jan 17, 2025
6 checks passed
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.

Tests in DynamicContainer cannot be retried
2 participants