diff options
author | Felipe Leme <felipeal@google.com> | 2018-05-02 14:57:23 -0700 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2018-05-02 16:17:58 -0700 |
commit | bc90715a1ab9f4752a7f54284f18ef45f68ecb04 (patch) | |
tree | 772272ed7816074a8ef2b40f28467c1c5f26244c /apct-tests/perftests/utils | |
parent | d4dcdb11c59608dca3cdd7069f108b4881ddfac4 (diff) |
Minor refactorings on Autofill tests:
- Move common code to AbstractAutofillTestCase.
- Copied existing codes to LoginTest, which does not use @Parameters.
- Deprecated AutofillPerfTest (it will be removed once LoginTest has some runs).
- Added some (temporary) no-op tests to help us investigate why some tests are
missing from the dashboard.
Test: mmma -j ./frameworks/base/apct-tests/perftests/core/ && \
adb install -r $OUT/data/app/CorePerfTests/CorePerfTests.apk && \
adb shell am instrument -w -e class android.view.autofill.AutofillPerfTest \
com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner
Bug: 38345816
Change-Id: Iab703205f1e01a1e5413b10c3008aac8efcc5dc2
Diffstat (limited to 'apct-tests/perftests/utils')
-rw-r--r-- | apct-tests/perftests/utils/src/android/perftests/utils/PerfStatusReporter.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apct-tests/perftests/utils/src/android/perftests/utils/PerfStatusReporter.java b/apct-tests/perftests/utils/src/android/perftests/utils/PerfStatusReporter.java index 64b0bf589a1b..4b7b98da442b 100644 --- a/apct-tests/perftests/utils/src/android/perftests/utils/PerfStatusReporter.java +++ b/apct-tests/perftests/utils/src/android/perftests/utils/PerfStatusReporter.java @@ -17,6 +17,7 @@ package android.perftests.utils; import android.support.test.InstrumentationRegistry; +import android.util.Log; import org.junit.rules.TestRule; import org.junit.runner.Description; @@ -49,6 +50,7 @@ import static junit.framework.Assert.assertTrue; */ public class PerfStatusReporter implements TestRule { + private static final String TAG = "PerfStatusReporter"; private final BenchmarkState mState = new BenchmarkState(); public BenchmarkState getBenchmarkState() { @@ -61,6 +63,8 @@ public class PerfStatusReporter implements TestRule { @Override public void evaluate() throws Throwable { String invokeMethodName = description.getMethodName(); + Log.i(TAG, "Running " + description.getClassName() + "#" + invokeMethodName); + // validate and simplify the function name. // First, remove the "test" prefix which normally comes from CTS test. // Then make sure the [subTestName] is valid, not just numbers like [0]. |