简体   繁体   English

是否有基于Web的AJAX Junit TestRunner?

[英]Is there an AJAX web-based Junit TestRunner?

What I'm looking for is a TestRunner implementation for running a suite of Java JUnit tests within a browser. 我正在寻找的是一种TestRunner实现,用于在浏览器中运行Java JUnit测试套件。 The intention is that non-developers can execute the tests by visiting a browser page. 目的是使非开发人员可以通过访问浏览器页面来执行测试。 Test results should be dynamically updated to the browser page with something like AJAX after each test and/or suite has completed. 在完成每个测试和/或套件后,应使用AJAX之类的东西将测试结果动态更新到浏览器页面。

I've seen a few attempts at this, but the ones I'm aware of execute all of the tests before showing any results to the browser. 我已经看到了一些尝试,但是我知道这些尝试会先执行所有测试,然后再向浏览器显示任何结果。 Take mistletoe for example. 槲寄生为例。

Ideally, the implementation would be inspired by the JUnit testrunners found in IDEs such as IntelliJ IDEA or Eclipse . 理想情况下,该实现将受到诸如IntelliJ IDEAEclipse之类的 IDE中的JUnit测试运行程序的启发。 Is anyone aware of such a TestRunner? 有人知道这样的TestRunner吗?

该问题的答案可能帮助: TDD的JavaScript单元测试工具

I was looking for the same thing, and I've just come across ktrwjr , which I'm just about to use to integrate into my web app to run my JUnit integration tests. 我一直在寻找相同的东西,而我刚遇到过ktrwjr ,它将用于集成到我的Web应用程序中以运行我的JUnit集成测试。

Edit: I've just realised this is for testing apps developed on GAE/j. 编辑:我刚刚意识到这是用于测试在GAE / j上开发的应用程序。 So close... 很近...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM