Using Infinitest with m2e in Eclipse


I’m a huge fan of Infinitest to have a continuous feedback loop from my unit tests while developing. Recently I noticed that when I’m working with m2e some of my testcases were red when Inifitest executed them, but were green when I run the Junit tests via Eclipse. After thinking about it, I figured out that all tests that were using configuration or input files from my src/test/resources folder were failing.

Looks like Eclipse (or rather, m2e) is using a different classpath order than Infinitest.

Solution is to put the folder src/test/resources to the top of the classpath via the project settings. That way the test resources are loaded before resources from src/main/resources. :smile:

Weitere Artikel

Neue Tastatur: Pok3r Vortex RGB

New minecraft survival mod for 1.11.2

Änderungen beim Flug mit Quadkoptern

Ein paar Fotos

Nach den Crossfit Open

Crossfit Open WOD 17.5

Crossfit Open WOD 17.4

Crossfit Open WOD 17.3

Crossfit Open Workout 17.2

Crossfit Open Workout 17.1