-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FP on S2187 in Cucumber tests with JUnit5.
- Loading branch information
1 parent
71f25f0
commit 15d752b
Showing
4 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...s-test-sources/default/src/test/java/checks/tests/NoTestInTestClassCheckCucumberTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package checks.tests; | ||
|
||
import static io.cucumber.junit.platform.engine.Constants.*; | ||
|
||
import org.junit.platform.suite.api.*; | ||
|
||
@Suite | ||
@IncludeEngines("cucumber") | ||
@SelectClasspathResource("com.project.class.path") | ||
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value="com.project.class.path") | ||
public class NoTestInTestClassCheckCucumberTest {} | ||
|
||
@Suite | ||
@org.junit.platform.suite.api.IncludeEngines("cucumber") | ||
@SelectClasspathResource("com.project.class.path") | ||
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value="com.project.class.path") | ||
class NoTestInTestClassCheckCucumberFQTest {} | ||
|
||
@Suite | ||
@IncludeEngines("bellpepper") | ||
@SelectClasspathResource("com.project.class.path") | ||
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value="com.project.class.path") | ||
class NoTestInTestClassCheckBellPepperTest {} // Noncompliant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters