EricGao888 commented on issue #10976:
URL: 
https://github.com/apache/dolphinscheduler/issues/10976#issuecomment-1193126861

   > > What about using `TestNG`?
   > 
   > This may need to refactor all test code, if we want to use `TestNG` to 
replace Junit
   
   @ruanwenjun  Yes. At this moment, I think we have about 4 people, me and my 
colleagues who will work on the UT refactoring. It is possible for us to 
refactor all test code and fix all related style / formatting issues. The 
question lying between choosing `TestNG` and `jUnit` is whether it is necessary 
to replace one with another. So far, I've found some advantages of `TestNG` 
over `jUnit`:
   
   * `TestNG` supports running UT in parallelism.
   * `TestNG` supports `testing group`.
   * `TestNG` supports an easier way to pass data into testing method using 
`Data Provider`.
   * `TestNG` supports `Dependency Test`.
   * `TestNG` supports `Parameterization` through `xml` configuration.
   
   Some related materials:
   * https://www.youtube.com/watch?v=OWXWQE4pL_0
   * https://www.guru99.com/junit-vs-testng.html
   
   Although `TestNG` is more powerful, it seems that it is not a `must` to 
switch `jUnit` to `TestNG` 🤣 
   
   WDYT?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to