rerun failed tests env tests added
authorIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Thu, 11 Sep 2014 19:28:43 +0000 (23:28 +0400)
committerIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Thu, 11 Sep 2014 19:28:43 +0000 (23:28 +0400)
python/src/com/jetbrains/python/testing/TestRunConfigurationReRunResponsible.java

index a8543d575a370c4b6550f12defb05e6f6a1c63e9..a8e9e1f8d5e4e2761e0f3827f3e34ddae8d517fd 100644 (file)
@@ -6,6 +6,7 @@ import com.intellij.execution.configurations.RunProfileState;
 import com.intellij.execution.runners.ExecutionEnvironment;
 import com.intellij.psi.PsiElement;
 import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
 
 import java.util.Collection;
 
@@ -20,10 +21,10 @@ public interface TestRunConfigurationReRunResponsible {
    * @param executor test executor
    * @param environment test environment
    * @param failedTests a pack of psi elements, indicating failed tests (to retrn)
-   * @return state to run
+   * @return state to run or null if no rerun actions found (i.e. no errors in failedTest, empty etc)
    * @throws ExecutionException failed to run
    */
-  @NotNull
+  @Nullable
   RunProfileState rerunTests(@NotNull final Executor executor, @NotNull final ExecutionEnvironment environment,
                              @NotNull Collection<PsiElement> failedTests) throws ExecutionException;
 }