maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <>
Subject [jira] [Updated] (SUREFIRE-1373) Tests annotated with @NotThreadSafe are not executed in isolation
Date Thu, 07 Sep 2017 21:10:01 GMT


Tibor Digana updated SUREFIRE-1373:
    Fix Version/s:     (was: 2.20.1)

> Tests annotated with @NotThreadSafe are not executed in isolation
> -----------------------------------------------------------------
>                 Key: SUREFIRE-1373
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.20
>            Reporter: Sebastian Kirsch
>            Assignee: Tibor Digana
>             Fix For: 2.20.2
>   Original Estimate: 48h
>  Remaining Estimate: 48h
> The [surefire documentation|]
states that 
> bq. you can apply the JCIP annotation @net.jcip.annotations.NotThreadSafe on the Java
class of JUnit test (pure test class, Suite, Parameterized, etc.) in order to execute it in
single Thread instance. The Thread has name maven-surefire-plugin@NotThreadSafe and it is
executed at the end of the test run.
> However, the thread is run in parallel to the other tests being executed, which contradicts
the documentation and defeats the purpose of running tests sequentially in a single thread.
> See for a test case.

This message was sent by Atlassian JIRA

View raw message