Actually it's not a Flink problem. For single module project, you can run "mvn -Dtest=YOUR_TEST test" to run a single test.
For multiple modules project, you can use "-pl sub-module" to specify the module which your test belongs to( mvn -Dtest=YOUR_TEST -pl YOUR_MODULE test), OR just CD to your module directory and run "mvn -Dtest=YOUR_TEST test" *Best Regards,* *Zhenghua Gao* On Tue, Oct 29, 2019 at 10:19 AM 朱国梁 <[email protected]> wrote: > > Hi community! I have a problem that I cannot solve by google. > > > I am trying to specify a test to run using maven. > > > mvn clean test -Dtest=DistributedCacheTest > > > The result says that: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) > on project force-shading: No tests were executed! (Set > -DfailIfNoTests=false to ignore this error.) -> [Help 1] > > > > > > -- > > ------------------- > Best > zgl > ------------------- > > > >
