It's a good idea to separate out tests which has external dependencies. We
can find other solutions than using "exclude" tag.
We can actually categorize them as different tests, say functional tests
and those should be invoked only if invoked explicitly.

Most of times we should avoid using outside dependencies by using mock or
embedded servers, only for exceptional cases we can do something like
categorizing tests.

-Priyanka

On Thu, Mar 31, 2016 at 5:38 PM, Chinmay Kolhatkar <[email protected]>
wrote:

> Hi All,
>
> Currently all tests in malhar contrib are skipped by skipTests=true
> property.
> But there are certain tests which can run without external setup.
>
> I idea here is to use "include" configuration property of surefire plugin
> and include only those which can run in jenkins build.
>
> Please share your opinion on following questions:
>
> 1. What are the test that should be included for the run?
> To start with, there are com.datatorrent.formatter.* &
> com.datatorrent.parser.* that can run in without external setup.
>
> 2. Should we use "exclude" tests which needs external setup instead
> include?
> This way, any test that gets added to contrib will run by default and it
> won't get missed.
> Test writer would need to exclude only those tests which needs external
> setup.
>
> Please share your opinion.
>
> Thanks,
> Chinmay.
>

Reply via email to