Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何XML为Junit套件创建文件。
XML
Junit
目前,我有一个自定义运行器,它扩展BlockJUnit4ClassRunner并生成XML每个测试类,其中包含使用的类、方法以及特定于给定类集(使用了哪个引擎)等信息的信息。
BlockJUnit4ClassRunner
现在我需要为整个套件而不是每个测试类都这样做。所以我的问题是,我最好的选择是扩展套件并在那里实现我的逻辑,还是有更好的方法?
谢谢。
您不需要编写自定义运行程序,而是需要自定义RunListener.
RunListener
I'm using jQuery 1.9.1 and trying to have an ajax query which is called every 5 seconds and updates some content.
Using the code below, I get the following error in Chrome's conso