Junit4与TestNG对比

可以参考的文献有:
  • In pursuit of code quality: JUnit 4 vs. TestNG
  • http://www.ibm.com/developerworks/java/library/j-cq08296/
  • JUnit 4 Vs TestNG – Comparison
  • http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/
  • TESTNG与JUNIT4对比
  • http://yingfangming.blog.163.com/blog/static/165802470201092954857138/


    自己已经实践过的TestNG特性有:
    1.TestNG可以使用Group
    2.可以重新运行失败的测试用例
    3.TestNG支持多线程,可以在Xml文件中直接配置
    4.TestNG有dependsOnMethods
    5.使用TestNG 进行参数化测试方便简洁一点

    猜你喜欢

    转载自lijingshou.iteye.com/blog/925663