English 中文(简体)
日尼特测试统计数据和试爆令
原标题:JUnit test statistics and specifing order of test execution

我有许多测试套和测试,这些测试的执行时间是

我设想到适应性测试,以修改试验大学框架(例如,JUnit)来进行这些试验,这些试验在开始时需要的时间较少,最后需要很长时间。

另外,我也想确定一个“annotation,如“@RunFirst”来宣布和通知试验单位框架,以便在一开始进行这一试验,开发商就可以测试在一开始就运行的功能,从而节省很多时间来获得答案。

我的问题是:

  1. Is there any programmatic way that we order the execution of tests? (I already checked this page but it doesn t look like an appealing solution to me)
  2. can we access to the statistics of each test ? like how long does each one takes?
  3. Can we get the result of each test after each test is executed and show it to the user? or we have to wait until all the tests are executed?
问题回答

开始时间较少的试验

如果你真心想这样做,你就有一些需要很长一段时间的测试案例。 几乎肯定不是 > > /m> 单位测试,而是一体化测试。 我建议将这些测试案例移至单独的“融合测试”目录。 在单位测试之后进行所有一体化测试。


<><>Edit>>

见以下相关问题:





相关问题
Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签