You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/05/23 08:58:17 UTC

[jira] [Commented] (JENA-380) Migrate core tests to junit4

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

ASF subversion and git services commented on JENA-380:
------------------------------------------------------

Commit 6419caaf24dd66f63bfd8fbde83e439cf96d1fb6 in jena's branch refs/heads/master from [~claude@xenei.org]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=6419caa ]

Merge branch 'add-contract-tests'
Merging the Contract tests and associated helper classes into the main line
code.

This is part of JENA-380


> Migrate core tests to junit4
> ----------------------------
>
>                 Key: JENA-380
>                 URL: https://issues.apache.org/jira/browse/JENA-380
>             Project: Apache Jena
>          Issue Type: Task
>          Components: Jena
>    Affects Versions: Jena 2.10.0
>            Reporter: Claude Warren
>            Assignee: Claude Warren
>            Priority: Minor
>             Fix For: Jena 3.0.0
>
>
> Many of the tests for jena core are junit3 suites.  I would like to start a process of migrating them to junit 4 and rework them so that when compiling in the Eclipse IDE clicking on the failed test will take you to the failed test while maintaining the current test names.  I would expect some test names to change based upon changes in functionality.
> The goals of this change are :
> 1) Move to junit 4
> 2) Ensure that when the entire package is run as a junit test all tests succeed. (i.e. valid default tests)
> 3) Continue to provide test classes that can be utilized by implementers of interfaces.
> 4) Extract utility/helper code into utility/helper classes to simplify the test inheritance tree.
> 5) Move the test classes into the same package name as the classes they test.  Currently we have x.foo for the implementation classes and x.foo.test for the test classes.
> The process would be:
> 1) build a number of sub tasks under this change to deliver smaller changes.  The smaller changes will be based on the package names and that can be delivered incrementally.
> 2) once all tests are in junit4 perform a sweep across the test code base looking for any junit 3 classes that remain.  Verify that their testing functionality has been replaced by other code and remove them.
> The result will be a complete review of all the core tests and a migration to junit 4 and annotated tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)