hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Woodhead (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4901) Upgrade to JUnit 4
Date Mon, 01 Jun 2009 10:06:07 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715041#action_12715041

Adrian Woodhead commented on HADOOP-4901:

With regards to the comment above:

"parallel tests execution" - while this could be useful for speeding tests up, I see potential
problems here if different tests access a shared resource (database, file system etc.)
"same VM execution" - JUnit has this. When you run it from Ant you can specify whether it
should use separate VM to Ant and also whether it should use a separate VM per test or not.
"absence of mandatory TestCase inheritance" - JUnit4 has this.

So I'm not convinced that these arguments are enough to tip the balance in favour of TestNG.

My vote would go for JUnit4 in terms of keeping the transition easier and it being generally
more familiar.

> Upgrade to JUnit 4
> ------------------
>                 Key: HADOOP-4901
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4901
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: test
>            Reporter: Tom White
>            Assignee: Alex Loddengaard
> Amongst other things, JUnit 4 has better support for class-wide set up and tear down
(via @BeforeClass and @AfterClass annotations), and more flexible assertions (http://junit.sourceforge.net/doc/ReleaseNotes4.4.html).
It would be nice to be able to take advantage of these features in tests we write.
> JUnit 4 can run tests written for JUnit 3.8.1 without any changes.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message