2

I created a sample Eclipse project that demonstrates that Infinitest skips setup methods annotated with Before{Method,Class}, see https://github.com/jaeckel/InfinitestSampleProject. Because of this my tests fail when Infinitest executes them although they work when executed by Eclipse's TestNG plugin. The behaviour can be reproduced by this test case.

Is this a bug? If yes, how can it be fixed? I had a quick look at the infinitest source but that did not reveal anything yet on how to fix it. I created an issue for this and talked to the owner of the project. But so far, no one came back to me.

Ingo
  • 1,552
  • 10
  • 31

1 Answers1

0

The owner of the Infinitest github repo has responded to your issue and explained that this is not a bug in the product. He wrote:

If a group is excluded, no test/setup/teardown annotated with this group will run. If you want to run only 'automated' tests. Do include 'automated' group but don't exclude 'integration' group.

As you've indicated in the github issue, this advice has indeed resolved your issue. It might be a good idea to close this question :)

urig
  • 16,016
  • 26
  • 115
  • 184