Skip to content

Commit

Permalink
Update test infra, remove deprecated hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed Apr 14, 2022
1 parent 6493726 commit 7152d6e
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 441 deletions.
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ androidX-startup = { module = "androidx.startup:startup-runtime", version = "1.0
androidX-test-core = { module = "androidx.test:core", version = "1.4.0" }
androidX-test-rules = { module = "androidx.test:rules", version.ref = "androidXTest" }
# Exposed transitively, avoid increasing
androidX-test-runner = { module = "androidx.test:runner", version = "1.1.0" }
androidX-test-runner-internal = { module = "androidx.test:runner", version = "1.4.0" }
androidX-test-runner = { module = "androidx.test:runner", version = "1.4.0" }
androidX-test-orchestrator = { module = "androidx.test:orchestrator", version = "1.4.1" }
androidX-test-espresso = { module = "androidx.test.espresso:espresso-core", version = "3.4.0" }
androidX-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidXJunit" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,6 @@ public final class leakcanary/DetectLeaksAssert$Companion {
public final fun update (Lleakcanary/DetectLeaksAssert;)V
}

public final class leakcanary/FailAnnotatedTestOnLeakRunListener : leakcanary/FailTestOnLeakRunListener {
public fun <init> ()V
}

public abstract interface annotation class leakcanary/FailTestOnLeak : java/lang/annotation/Annotation {
}

public class leakcanary/FailTestOnLeakRunListener : org/junit/runner/notification/RunListener {
public fun <init> ()V
protected final fun failTest (Ljava/lang/String;)V
protected fun onAnalysisPerformed (Lshark/HeapAnalysis;)V
protected fun skipLeakDetectionReason (Lorg/junit/runner/Description;)Ljava/lang/String;
public fun testAssumptionFailure (Lorg/junit/runner/notification/Failure;)V
public fun testFailure (Lorg/junit/runner/notification/Failure;)V
public fun testFinished (Lorg/junit/runner/Description;)V
public fun testIgnored (Lorg/junit/runner/Description;)V
public fun testRunFinished (Lorg/junit/runner/Result;)V
public fun testRunStarted (Lorg/junit/runner/Description;)V
public fun testStarted (Lorg/junit/runner/Description;)V
}

public abstract interface class leakcanary/HeapAnalysisReporter {
public abstract fun reportHeapAnalysis (Lshark/HeapAnalysis;)V
}
Expand Down
2 changes: 0 additions & 2 deletions leakcanary-android-instrumentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ dependencies {
implementation libs.androidX.test.runner
implementation libs.kotlin.stdlib

// Using a more recent version (without enforcing that on consumers)
androidTestImplementation libs.androidX.test.runner.internal
// AppWatcher auto installer for running tests
androidTestImplementation project(':leakcanary-object-watcher-android')
// Plumber auto installer for running tests
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7152d6e

Please sign in to comment.