[
https://issues.apache.org/jira/browse/GEODE-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kirk Lund updated GEODE-1350:
-----------------------------
Description:
As of JUnit 4.12, the use of Categories with the Parameterized runner is broken
and may not get fixed by the JUnit community.
All Geode tests using
Example of dunit test with a custom runner:
{noformat}
@Category(DistributedTest.class)
@RunWith(Parameterized.class)
public class ListAndDescribeDiskStoreCommandsDUnitTest extends
CliCommandTestBase {
{noformat}
Gradle command:
{noformat}
./gradlew -DdistributedTest.single=ListAndDescribeDiskStoreCommandsDUnitTest
geode-core:distributedTest
{noformat}
Result:
{noformat}
:geode-core:distributedTest FAILED
:combineReports
All test reports at
/export/latvia1/users/klund/dev/gemfire/open/build/reports/combined
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':geode-core:distributedTest'.
> Could not find matching test for pattern:
> ListAndDescribeDiskStoreCommandsDUnitTest
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 5.918 secs
{noformat}
Example of dunit test that does not specify a custom runner:
{noformat}
@Category(DistributedTest.class)
public class DistributedMemberDUnitTest extends JUnit4DistributedTestCase {
{noformat}
Gradle command:
{noformat}
./gradlew -DdistributedTest.single=DistributedMemberDUnitTest
geode-core:distributedTest
{noformat}
Result:
{noformat}
geode-core:distributedTest
:combineReports
All test reports at
/export/latvia1/users/klund/dev/gemfire/open/build/reports/combined
BUILD SUCCESSFUL
Total time: 32.987 secs
{noformat}
was:
Example of dunit test with a custom runner:
{noformat}
@Category(DistributedTest.class)
@RunWith(Parameterized.class)
public class ListAndDescribeDiskStoreCommandsDUnitTest extends
CliCommandTestBase {
{noformat}
Gradle command:
{noformat}
./gradlew -DdistributedTest.single=ListAndDescribeDiskStoreCommandsDUnitTest
geode-core:distributedTest
{noformat}
Result:
{noformat}
:geode-core:distributedTest FAILED
:combineReports
All test reports at
/export/latvia1/users/klund/dev/gemfire/open/build/reports/combined
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':geode-core:distributedTest'.
> Could not find matching test for pattern:
> ListAndDescribeDiskStoreCommandsDUnitTest
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 5.918 secs
{noformat}
Example of dunit test that does not specify a custom runner:
{noformat}
@Category(DistributedTest.class)
public class DistributedMemberDUnitTest extends JUnit4DistributedTestCase {
{noformat}
Gradle command:
{noformat}
./gradlew -DdistributedTest.single=DistributedMemberDUnitTest
geode-core:distributedTest
{noformat}
Result:
{noformat}
geode-core:distributedTest
:combineReports
All test reports at
/export/latvia1/users/klund/dev/gemfire/open/build/reports/combined
BUILD SUCCESSFUL
Total time: 32.987 secs
{noformat}
> JUnit 4 @Category combined with @RunWith(Parameterized.class) does not work
> ---------------------------------------------------------------------------
>
> Key: GEODE-1350
> URL: https://issues.apache.org/jira/browse/GEODE-1350
> Project: Geode
> Issue Type: Bug
> Components: build
> Reporter: Kirk Lund
>
> As of JUnit 4.12, the use of Categories with the Parameterized runner is
> broken and may not get fixed by the JUnit community.
> All Geode tests using
> Example of dunit test with a custom runner:
> {noformat}
> @Category(DistributedTest.class)
> @RunWith(Parameterized.class)
> public class ListAndDescribeDiskStoreCommandsDUnitTest extends
> CliCommandTestBase {
> {noformat}
> Gradle command:
> {noformat}
> ./gradlew -DdistributedTest.single=ListAndDescribeDiskStoreCommandsDUnitTest
> geode-core:distributedTest
> {noformat}
> Result:
> {noformat}
> :geode-core:distributedTest FAILED
> :combineReports
> All test reports at
> /export/latvia1/users/klund/dev/gemfire/open/build/reports/combined
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':geode-core:distributedTest'.
> > Could not find matching test for pattern:
> > ListAndDescribeDiskStoreCommandsDUnitTest
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> BUILD FAILED
> Total time: 5.918 secs
> {noformat}
> Example of dunit test that does not specify a custom runner:
> {noformat}
> @Category(DistributedTest.class)
> public class DistributedMemberDUnitTest extends JUnit4DistributedTestCase {
> {noformat}
> Gradle command:
> {noformat}
> ./gradlew -DdistributedTest.single=DistributedMemberDUnitTest
> geode-core:distributedTest
> {noformat}
> Result:
> {noformat}
> geode-core:distributedTest
> :combineReports
> All test reports at
> /export/latvia1/users/klund/dev/gemfire/open/build/reports/combined
> BUILD SUCCESSFUL
> Total time: 32.987 secs
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)