db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DERBY-6590) Make JUnit tests run the fixtures in a deterministic order.
Date Thu, 03 Jul 2014 12:04:24 GMT

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

Dag H. Wanvik edited comment on DERBY-6590 at 7/3/14 12:02 PM:
---------------------------------------------------------------

Thanks, Knut. That's a good improvement. In fact, I removed TestConfiguration.orderedSuite
altogether, replacing it with the new class. Patch [^derby-6590-2.diff], re-running regressions.


was (Author: dagw):
Thanks, Knut. That's a good improvement. In fact, I removed TestConfiguration.orderedSuite
altogether, replacing it with the new class.

> Make JUnit tests run the fixtures in a deterministic order.
> -----------------------------------------------------------
>
>                 Key: DERBY-6590
>                 URL: https://issues.apache.org/jira/browse/DERBY-6590
>             Project: Derby
>          Issue Type: Improvement
>            Reporter: Dag H. Wanvik
>            Assignee: Dag H. Wanvik
>         Attachments: derby-6590-1.diff
>
>
> Since JDK 7, when we use the standard decorator for JUnit tests, e.g.
> return TestConfiguration.defaultSuite(AggBuiltinTest.class);
> the order in which the test fixtures get run is indeterministic. This is undesirable
because it doesn't add much coverage to the product and makes the tests more brittle than
they need to be.
> We should use TestConfiguration#orderedSuite instead.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message