Skip to content

Multiple UTestExecutionInitFailedResult without cause as a result of class analysis #145

@EgorkaKulikov

Description

@EgorkaKulikov
Collaborator

Run ContestEstimator with the following options:

timeLimit = 120
methodFilter = "spoon.reflect.visitor.ImportScannerImpl.*"
projectFilter = listOf("spoon")

The are multiple similar warnings in logs (absolutely unimformative about real problem reasons, because executionResult.cause is absent).
As a result, coverage for this class is about 3%

12:15:49.114 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#isInCollisionWithLocalMethod(spoon.reflect.reference.CtExecutableReference)
java.lang.Exception: 
12:15:49.132 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#isInCollisionWithLocalMethod(spoon.reflect.reference.CtExecutableReference)
java.lang.Exception: 
12:15:49.328 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#computeImports(spoon.reflect.declaration.CtElement)
java.lang.Exception: 
12:15:49.351 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#computeImports(spoon.reflect.declaration.CtElement)
java.lang.Exception: 
12:15:49.368 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#computeImports(spoon.reflect.declaration.CtElement)
java.lang.Exception: 
12:15:49.386 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#computeImports(spoon.reflect.declaration.CtElement)
java.lang.Exception: 
12:15:50.498 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#visitCtCatchVariable(spoon.reflect.code.CtCatchVariable)
java.lang.Exception: 
12:15:50.577 | WARN  | Execution failed before method under test call on (id:21)spoon.reflect.visitor.ImportScannerImpl#visitCtCatchVariable(spoon.reflect.code.CtCatchVariable)
java.lang.Exception: 

Activity

EgorkaKulikov

EgorkaKulikov commented on Nov 24, 2023

@EgorkaKulikov
CollaboratorAuthor

This is a very popular problem on spoon project. As a result, we have very bad coverage. @Damtev, please take into account too.

Damtev

Damtev commented on Nov 24, 2023

@Damtev
Member

There is something wrong either in the methodFilter or in the project - they do not match with each other. @EgorkaKulikov please, check.

EgorkaKulikov

EgorkaKulikov commented on Nov 24, 2023

@EgorkaKulikov
CollaboratorAuthor

Sorry @Damtev , typical copypaste problem. fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @DaniilStepanov@EgorkaKulikov@Damtev

      Issue actions

        Multiple `UTestExecutionInitFailedResult` without cause as a result of class analysis · Issue #145 · UnitTestBot/usvm