开发测试工具 [英] Developing a testing tool

查看:101
本文介绍了开发测试工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种测试工具。是否可以将JUnit功能添加到Java应用程序中,以便应用程序(本身)可以针对指定的Java代码运行测试用例。以更具体的方式,应用程序获取测试用例的文件夹和要测试的代码,然后针对该代码运行测试用例。



如果它是可能的,应用程序中包含哪些库?



谢谢。

I am developing a testing tool. Is it possible to add JUnit functionality to a java application so that the application (itself) can run test cases against a specified java code. In a more specific way, the application takes a folder of test cases, and the code to be tested, it then runs the test cases against that code.

if it is possible, what is the required libraries to include in the application?

Thanks.

推荐答案

测试只是使用添加结果的附加功能执行代码,至少可以运行 JUnit 或任何其他测试工具的命令行并解析结果:< a href =http://stackoverflow.com/questions/2235276/how-to-run-junit-test-cases-from-the-command-line> http://stackoverflow.com/questions/2235276/how -to-run-junit-test-cases-from-the-line-line [ ^ ]
Testing is just executing your code with the added feature of collecting the results, at the very least you can run a command line for JUnit or any other testing tool and parse the results : http://stackoverflow.com/questions/2235276/how-to-run-junit-test-cases-from-the-command-line[^]


这篇关于开发测试工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆