Ram, Which test fails in Travis, have you checked?
Thanks On Mon, May 16, 2016 at 11:03 AM, Munagala Ramanath <[email protected]> wrote: > That seems like a good solution. > > I didn't find any way to run an ignored test but, an alternative, though > not as good > as David's, is to add an exclusion stanza to the configuration of the > surefire plugin, e.g. > * <plugin>* > * <groupId>org.apache.maven.plugins</groupId>* > * <artifactId>maven-surefire-plugin</artifactId>* > * <configuration>* > * <excludes>* > * <exclude>**/ApplicationTest.java</exclude>* > * </excludes>* > * </configuration>* > * </plugin>* > > This suppresses the test for normal runs but can be explicitly triggered > with: > > *mvn -Dtest=com.example.myapexapp.ApplicationTest test* > > Ram > > On Mon, May 16, 2016 at 10:50 AM, David Yan <[email protected]> wrote: > > > If it only fails on Travis and *never* fails elsewhere, you can use the > > function StramTestSupport.isInTravis() method. > > Here's an example snippet from StreamingContainerManagerTest.java: > > > > if (StramTestSupport.isInTravis()) { > > // disable this test in travis because of an intermittent problem > > similar to this: > > // > > > > > http://stackoverflow.com/questions/32172925/travis-ci-sporadic-timeouts-to-localhost > > // We should remove this when we find a solution to this. > > LOG.info("Test testAppDataPush is disabled in Travis"); > > return; > > } > > > > David > > > > On Mon, May 16, 2016 at 9:59 AM, Siyuan Hua <[email protected]> > > wrote: > > > > > Ram, Thomas > > > The last time I tried, the tests only fail in travis. Is there a way > > ignore > > > the test in maven build by default and test it locally with some maven > > > command line options? > > > > > > Regards, > > > Siyuan > > > > > > On Sat, May 14, 2016 at 10:37 AM, Thomas Weise <[email protected] > > > > > wrote: > > > > > > > Ram, > > > > > > > > There were problems with some of the tests but also with running them > > in > > > > Travis CI overall (the latter has been fixed meanwhile.) > > > > > > > > Can you please try to enable the tests and see if they pass in > Travis, > > we > > > > should then only mark @Ignore those that actually still need to be > > fixed. > > > > > > > > Thanks > > > > > > > > On Sat, May 14, 2016 at 10:19 AM, Munagala Ramanath < > > [email protected] > > > > > > > > wrote: > > > > > > > > > Why is KafkaInputOperatorTest annotated with @Ignore ? This makes > the > > > > test > > > > > not runnable from the commandline with maven. > > > > > > > > > > Ram > > > > > > > > > > > > > > >
