Skip to content

Commit

Permalink
Disable long dataflow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipen committed Dec 26, 2024
1 parent 1bd6291 commit bd3905d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
Expand All @@ -41,6 +42,7 @@ import kotlin.time.Duration.Companion.seconds

private val logger = mu.KotlinLogging.logger {}

@EnabledIfEnvironmentVariable(named = "ENABLE_JVM_DATAFLOW_LONG_TESTS", matches = "true")
@TestInstance(PER_CLASS)
class IfdsNpeTest : BaseAnalysisTest() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS
import org.junit.jupiter.api.condition.EnabledIf

Check warning

Code scanning / detekt

Detects unused imports Warning test

Unused import
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
Expand All @@ -39,6 +41,7 @@ import kotlin.time.Duration.Companion.seconds

private val logger = mu.KotlinLogging.logger {}

@EnabledIfEnvironmentVariable(named = "ENABLE_JVM_DATAFLOW_LONG_TESTS", matches = "true")
@TestInstance(PER_CLASS)
class IfdsSqlTest : BaseAnalysisTest() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
Expand All @@ -32,6 +33,7 @@ import org.usvm.dataflow.jvm.util.JcTraits
import java.util.stream.Stream
import kotlin.time.Duration.Companion.seconds

@EnabledIfEnvironmentVariable(named = "ENABLE_JVM_DATAFLOW_LONG_TESTS", matches = "true")
@TestInstance(PER_CLASS)
class IfdsUnusedTest : BaseAnalysisTest() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import org.joda.time.DateTime
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
import org.usvm.dataflow.jvm.ifds.SingletonUnitResolver
import org.usvm.dataflow.jvm.npe.jcNpeManager
import org.usvm.dataflow.jvm.taint.jcTaintManager
Expand All @@ -30,6 +31,7 @@ import kotlin.time.Duration.Companion.seconds

private val logger = mu.KotlinLogging.logger {}

@EnabledIfEnvironmentVariable(named = "ENABLE_JVM_DATAFLOW_LONG_TESTS", matches = "true")
@TestInstance(PER_CLASS)
class JodaDateTimeAnalysisTest : BaseAnalysisTest() {

Expand Down

0 comments on commit bd3905d

Please sign in to comment.