Search in sources :

Example 21 with AbstractTestProxy

use of com.intellij.execution.testframework.AbstractTestProxy in project android by JetBrains.

the class UnitTestTreeFixture method getFailingTestsCount.

public int getFailingTestsCount() {
    int count = 0;
    AbstractTestProxy root = getModel().getRoot();
    for (AbstractTestProxy test : root.getAllTests()) {
        if (test.isLeaf() && test.isDefect()) {
            count++;
        }
    }
    return count;
}
Also used : AbstractTestProxy(com.intellij.execution.testframework.AbstractTestProxy)

Aggregations

AbstractTestProxy (com.intellij.execution.testframework.AbstractTestProxy)21 Project (com.intellij.openapi.project.Project)6 PsiClass (com.intellij.psi.PsiClass)5 Nullable (org.jetbrains.annotations.Nullable)4 Executor (com.intellij.execution.Executor)3 Location (com.intellij.execution.Location)3 ExecutionEnvironment (com.intellij.execution.runners.ExecutionEnvironment)3 PsiElement (com.intellij.psi.PsiElement)3 NotNull (org.jetbrains.annotations.NotNull)3 DiffHyperlink (com.intellij.execution.testframework.stacktrace.DiffHyperlink)2 Module (com.intellij.openapi.module.Module)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)2 PsiMethod (com.intellij.psi.PsiMethod)2 GlobalSearchScope (com.intellij.psi.search.GlobalSearchScope)2 ArrayList (java.util.ArrayList)2 IXMLElement (net.n3.nanoxml.IXMLElement)2 CodeInsightTestCase (com.intellij.codeInsight.CodeInsightTestCase)1 CoverageDataManager (com.intellij.coverage.CoverageDataManager)1 CoverageSuitesBundle (com.intellij.coverage.CoverageSuitesBundle)1 RunManager (com.intellij.execution.RunManager)1