Eclipse Infinitest not working at all

I tried to get the Infinitest Plugin for Eclipse to run my tests automatically. According to the documentation, it intercepts all the annotated @Test tags and runs the test class as soon as the system under the test class is changed.

The plugin was installed through the eclipse update site on the github page. I really have a status bar as expected, but it just stays yellow, saying "There are no related tests for the last change."

So far I have tried several types of projects up to a simple java project - I can manually run all the tests through Run As -> JUnit Test , and JUnit works as expected. Infinitest is included in the settings. Several tutorials, (extremely short) documentation and pages did not help. I do not have a filter file.

I am running Eclipse Mars (4.5.1) on Ubuntu 15.10 with Infinitest 5.1.115 and JUnit 4.12.0.

+5
source share
4 answers

I installed Infinitest Plugin on Eclipse Luna 4.4.2 (my current IDE) and I followed the instructions there . I created a class with a method, and I wrote an annotation with @Test (JUnit4 library), then created a text file called infinitest.filters that contains ". *" (Regular Expression). It is important that this text file is in the src folder (path: SomeProjectName / src).

0
source

I have Java EE Eclipse Mars 4.5.2 with Infintest. Only when I put the infinitest.filters file in the project folder, my arquillian integration tests are skipped.

Folder project structure:

  • SRC /
    • /Main
    • /test
  • pom.xml
  • infintest.filters

infinitest.filters example (skipping all tests from the package):

  • com \ company \ .app \ .integrationtest \ .. *
0
source

Infinitest does not work if the path to the * .class and / or * .java file contains a space character - it is possible that the problem.

0
source

I ran into the same problem and resolved it with activation :

Project -> Build Automatically .

0
source

Source: https://habr.com/ru/post/1241839/


All Articles