[ 
https://issues.apache.org/jira/browse/HBASE-4763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148621#comment-13148621
 ] 

nkeywal commented on HBASE-4763:
--------------------------------

Ok, I have it working on my env now. Still testing, but there is now a 
reasonable chance to have it working well, so we can start the next step. We 
need a private version for surefire & junit on a shared maven repository.

- surefire 2.11 trunk r1200541 patched (see attached file)
Why a private version: because we need the 'Category' feature and there is not 
yet an official release for it. See surefire issues #329 and #786. We also need 
to fix some output stuff already in progress at surefire team but not yet in 
the trunk. I hope this will be solved in 2.12.
This version would be named: 2.11-TRUNK-HBASE

- JUnit 4.10 final patched, available on the branch "hbase" at 
https://github.com/nkeywal/junit
Why a private version: to filter the tests by categories, JUNit does a 
'class.forName' that initializes fully the static. With HBase it costly and 
fails because the initialization needs specific config files that are not in 
the initial class loader. The private patch fixes this, and with some luck this 
patch will be included in the next version of JUnit. See issue #359.
This version would be named: 4.10-HBASE

Surefire is integrated with maven, and publishing to a repository should be 
easy.
That's not the case with JUnit, the build script does not seem to include a 
maven repository integration.

I can make available to the repository owner:
- for surefire: full maven compiles results (ex: extract of the local repo 
after a mvn install).
- for junit: the compiled jar.

Important point for the categories: what seems to be working is:
- categories on classes
- you can set the categories you want to use, excluding categories was not 
working after #329 (not tried on #786)
- if you have a class without category, you will have a nice error message: 
initializationError(org.junit.runner.manipulation.Filter).
                
> Integrate surefire and junit for category management
> ----------------------------------------------------
>
>                 Key: HBASE-4763
>                 URL: https://issues.apache.org/jira/browse/HBASE-4763
>             Project: HBase
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 0.94.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>
> As of today, Surefire integrates category on the trunk of 2.11 version: 
> http://jira.codehaus.org/browse/SUREFIRE-329 . It may requires private 
> patches as well.
> It may impact JUnit: https://github.com/KentBeck/junit/issues/359
> This jira is about this integration. We will need a repo for this.
> For the naming of the versions to be created, I don't know if there is a 
> convention. If not I would propose: 2.10-patched-HBASE
>  
> Obviously, it's important to get our changes integrated in the main release: 
> we're not forking surefire & junit!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to