Data-driven tests with jUnit

后端 未结 10 611
囚心锁ツ
囚心锁ツ 2020-12-05 00:33

What do you use for writing data-driven tests in jUnit?

(My definition of) a data-driven test is a test that reads data from some external source (file, database, ..

10条回答
  •  悲&欢浪女
    2020-12-05 00:59

    This is where TestNG, with its @DataSource, shines. That's one reason why I prefer it to JUnit. The others are dependencies and parallel threaded tests.

提交回复
热议问题