Infinitest

How do I use continuous integration with an Eclipse project?

风格不统一 提交于 2019-12-23 10:59:23
问题 I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes and the build times and unit test are too long. I'm considering switching back to a pure eclipse project with no ant and no maven involved. With the infinitest plugin and possible the JavaRebel agent, it would give me a very fast build-deploy-test cycle.

How do I do continuous testing in .NET?

放肆的年华 提交于 2019-12-12 07:48:15
问题 I'm using Infinitest for continuous testing when I do java development and i really miss the instant feedback when I develop in .nET How do I do continuous testing in C# & .NET? EDIT: I'm not looking for continuous integration, like CruiseControl, TeamCity etc. It's an instant feedback tool that works with your IDE that I'm looking for 回答1: If you're using Visual Studio 2008 or 2010, you should take a look at the extension Continuous Testing for Visual Studio. Note that it does not run the

Infinitest not refreshing in IntelliJ IDEA (15) on gradle project

我只是一个虾纸丫 提交于 2019-12-12 02:56:57
问题 The Infinitest plugin under IntelliJ IDEA 15 is not re-running my tests when I change a source file. I wonder if it is because my project is a gradle project. Is there a way to make it refresh automatically? (It is also Scala code, but I'm using the JUnit test runner, and Infinitest officially supports scala, so I wouldn't think that Scala is the barrier here.) With a module named "practice", I first added the facet to "practice", changed one of the source files in there, but nothing happened

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

只谈情不闲聊 提交于 2019-12-11 05:24:51
问题 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 PC without emulation. Robolectric requires a test project be created, but the tests themselves to be run from the Android project under test. This is accomplished by from Eclipse, setting the run configuration to the project under test in the

Is it possible to specify which tests to choose from?

拈花ヽ惹草 提交于 2019-12-05 01:03:20
问题 We have a vast amount of tests. We would like infinitest only to choose between tests that have been included in an .xml-file (i.e. a TestNG suite). We do not want to put the annotation groups = { "shouldbetested" } in every testcase but rather feed the info from our .xml file into infinitest. Is this possible? Is it another tool that could do that for us? 回答1: you can use a regular expresstion to "not" skip a certain test: (?!.*YourTest) 回答2: Infinitest can filter out the tests you don't

Performant way to check java.lang.Double for equality

放肆的年华 提交于 2019-11-29 16:58:34
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 problem is that Infinitest is complaning about tests taking too much time. It's not a big deal (1 sec top), but it made me curious. Additional info a is hard coded since it's the expected value, b is computed by // fyi: current = int, max = int public double getStatus() { double value = 0.0; if (current != 0 && max != 0) value = ((double) current) / max;

Performant way to check java.lang.Double for equality

蓝咒 提交于 2019-11-28 10:32:50
问题 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 problem is that Infinitest is complaning about tests taking too much time. It's not a big deal (1 sec top), but it made me curious. Additional info a is hard coded since it's the expected value, b is computed by // fyi: current = int, max = int public

测试插件-infinitest介绍

天大地大妈咪最大 提交于 2019-11-26 11:35:01
缘起 写多了业务代码,一些遗留系统里处于基本没有单测的状态,因此最近对 TDD 的开发方式很感兴趣,看了不少 TDD 介绍和实践的书。 TDD 对测试的执行次数有很高的要求,但是平常在 idea 里面写代码运行测试所需时间较长,需要先 build 才能启动测试,这就成了我们践行 TDD 的障碍,我们需要一款对测试友好的插件来帮助我们。 infinitest 插件可以让我们免除手动执行测试的尴尬,它检测文件的 class 变动,当文件有变动时,可以自动执行测试,开箱即用。infinitest 也可以使用简单的配置,让我们把 infinitest 和 Junit 相关特性结合起来,更显方便 安装与使用 安装很简单: Settings -> Plugins -> Browse repositories -> 查找infinitest -> Install -> Restart idea 添加到项目中: Project Structure(ctrl+shift+alt+s) -> Modules -> 添加infinitest idea 默认不会自动 compile文件,我们需要开启一下 Settings -> Build, Execution, Deployment -> Compiler -> Build project automatically 打上勾 如果项目中只有简单的测试