Questions tagged [infinitest]

infinitest is a continuous test runner for Java.

It is available as a plug-in for Eclipse and IntelliJ.

41 questions
3
votes
3 answers

Performant way to check java.lang.Double for equality

What is the most performant way to check double values for equality. I understand that double a = 0.00023d; double b = 0.00029d; boolean eq = (a == b); is slow. So I'm using double epsilon = 0.00000001d; eq = Math.abs(a - b) < epsilon; The…
mike
  • 4,929
  • 4
  • 40
  • 80
2
votes
2 answers

Eclipse: mocking up the platform for testing

I am developing an Eclipse plugin and have tests for it. Some are regular JUnit tests, some are PDE tests (i.e. require starting an eclipse instance to be able to access eclipse internals). I wonder if it would be a good idea to try to turn some of…
Vlad Dumitrescu
  • 931
  • 5
  • 11
2
votes
2 answers

How does one enable Infinitest on a gradle project in IntelliJ IDEA 15?

According to the Infinitest User Guide, after installing the Infinitest plugin in IntelliJ IDEA, you're supposed to be able to right click your project and "choose facet, add Infinitest". However, there is no "facet" option in my project's context…
voxoid
  • 1,164
  • 1
  • 14
  • 31
2
votes
1 answer

Incremental run of testsuite

We have a large project that has several thousands of tests in the testsuite, and the full testsuite run takes very long time. I am looking for a tool that I can integrate in the Maven build that will run only those tests that might be affected…
2
votes
0 answers

Run only test cases related to applied changes

I have two versions of a Java applications. The second version is indeed resulted after applying some changes to the first version. These changes are applied automatically using a genetic programming algorithm to improve some non-functionality…
user3601784
  • 377
  • 1
  • 9
2
votes
5 answers

java continuous testing outside of IDE

I have a bunch of Java unit tests, and I'd like to integrate a continuous testing framework into my codebase. Ideally, I would like to write a Maven / Ant target or bash script which would start running tests whenever the files it's watching change.…
Dan
  • 7,155
  • 2
  • 29
  • 54
2
votes
0 answers

is there an inside-Eclipse continuous-integration tool for javascript that looks like infinitest?

When I program in Java, I have recently discovered the free unit-testing tool Infinitest, and installed it as an Eclipse Plugin. The GUI is minimalistic and looks like this statusbar at bottom of picture: (The bar is green when all tests pass, and…
knb
  • 9,138
  • 4
  • 58
  • 85
2
votes
1 answer

Simple way to test requiring OSGI without lots of artefacts and dependencies

OSGI Testing frameworks - some observations. I am in the middle of writing a system that makes use of OSGI. However all of the popular testing frameworks (Spring-OSGI, PaxExam) require a lot of artefacts for even the simplest test. Wishlist /…
mP.
  • 18,002
  • 10
  • 71
  • 105
2
votes
1 answer

Infinitest does not run @Before{Method,Class} methods when more than one TestNG group is used

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…
Ingo
  • 1,552
  • 10
  • 31
1
vote
1 answer

Infinitest 5.1.93 not compatible with Springsource Tool Suite 2.8 (Eclipse Indigo)?

In a Spring Roo project the tests fail but only when initiated from Infinitest running in Springsource Tool Suite 2.8.0 (STS). As Infinitest 5.1.93 fails to load the Spring context file all tests fail. When I run the same tests myself inside STS…
MiB
  • 575
  • 2
  • 10
  • 26
1
vote
3 answers

Is there a JVM command-line option to change directory?

In short, I want to know, is there a JVM command-line option to change the starting working directory? If it's important, I'm running jdk1.6.0_24. Background: I am using a tool called Robolectric for Eclipse to test Android applications on the host…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
1
vote
1 answer

Does infinitest for IntelliJ IDEA honor the run tests settings in Gradle?

I have a Gradle project that I would like to use infinitest with. However, while all test pass using the Gradle test runner, many fail in infinitest. Is this because infinitest uses the IntelliJ test runner to run the tests? I expect this is the…
Todd
  • 1,895
  • 4
  • 15
  • 18
1
vote
0 answers

Spring Tool Suite + Infinitest preference page error

STS 4.14.0.RELEASE with Infinitest 5.2 throws an error on accessing the Infinitest preferences page: Unable to create the selected preference page. java.lang.reflect.InvocationTargetException
stacey11
  • 41
  • 6
1
vote
0 answers

NoClassDefFoundError (Could not initialize class org.apache.log4j.Log4jLoggerFactory)

I have a maven project under Eclipse Luna SR2 (4.4.2). This project uses slf4j through maven dependencies. Infinitest is running continuous integration and it works in a lot of case, except for static slf4j declarations as @Component public class…
MarcDeXeT
  • 264
  • 2
  • 14
1
vote
0 answers

Infinitest : No such method when using temporary folder

I have a problem with Infinitest: I'm working with a junit temporary folder : @Rule public TemporaryFolder testFolder = new TemporaryFolder(); then I'm trying in the test method to create a temp sub-folder in this temp folder, and work with it…
GaspardP
  • 880
  • 1
  • 12
  • 24