manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shinichiro Abe (JIRA)" <>
Subject [jira] [Updated] (CONNECTORS-1231) Upgrade to JUnit 4.12
Date Tue, 15 Sep 2015 10:41:45 GMT


Shinichiro Abe updated CONNECTORS-1231:
    Attachment: CONNECTORS-1231.patch

Updated patch.

I had been hitting timeout errors sometimes for a few weeks when testing by maven after upgrading
to 2.14. 
The test failed in the 1st time but passed in the 2nd time, or the test failed on another
machine but passed on my machine.

a sample error I got:
Tests in error: 
ManifoldCF did not terminate in the allotted time of 600000 milliseconds

Apparently those were caused by forkMode-related params in surefire plugin configs.

[WARNING] The parameter forkMode is deprecated since 2.14. Use forkCount and reuseForks instead.

In JUnit 2.14, reuseForks default is true that means to reuse the processes to execute the
next tests.
In MCF POMs, there are forkMode=always that means reuseForks param could be false according
to [1]: 

And maven-failsafe-plugin can support reuseForks param since 2.13[2], but the current version
is 2.12.3.

I've replaced forkMode with forkCount and reuseForks, and upgraded the failsafe version in
this patch.

Also we may have to put junit-4.12.jar in ANT_HOME/lib when ant test runs.

All tests(mvn clean install, ant test, ant uitest) can pass without the warning now,
but I'm afraid the tests may fail in someone else's machine.


> Upgrade to JUnit 4.12
> ---------------------
>                 Key: CONNECTORS-1231
>                 URL:
>             Project: ManifoldCF
>          Issue Type: Test
>          Components: Tests
>    Affects Versions: ManifoldCF 2.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 2.3
>         Attachments: CONNECTORS-1231.patch, CONNECTORS-1231.patch
> Background: dev mail thread [link|].

This message was sent by Atlassian JIRA

View raw message