geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirk Lund (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GEODE-1350) JUnit 4 @Category combined with @RunWith(Parameterized.class) does not work
Date Thu, 05 May 2016 00:08:12 GMT

     [ https://issues.apache.org/jira/browse/GEODE-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kirk Lund updated GEODE-1350:
-----------------------------
    Summary: JUnit 4 @Category combined with @RunWith(Parameterized.class) does not work 
(was: Unable to use distributedTest task to run a single DUnit test with a custom runner)

> 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
>
> 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)

Mime
View raw message