mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Skip flaky ScrollView tests
Summary: Closes https://github.com/facebook/react-native/pull/12868 Differential Revision: D4699900 Pulled By: hramos fbshipit-source-id: b531f2359734177df1868b453dd1d882e693caa3
This commit is contained in:
committed by
Facebook Github Bot
parent
98798a06ae
commit
103fa3d818
@@ -28,11 +28,19 @@ const numberOfRetries = argv.retries || 1;
|
||||
const tryExecNTimes = require('./try-n-times');
|
||||
const path = require('path');
|
||||
|
||||
// Flaky tests ignored on Circle CI. They still run internally at fb.
|
||||
const ignoredTests = [
|
||||
'ReactScrollViewTestCase',
|
||||
'ReactHorizontalScrollViewTestCase'
|
||||
];
|
||||
|
||||
// ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactHorizontalScrollViewTestCase.java
|
||||
const testClasses = ls(`${argv.path}/*.java`)
|
||||
.map(javaFile => {
|
||||
// ReactHorizontalScrollViewTestCase
|
||||
return path.basename(javaFile, '.java');
|
||||
}).filter(className => {
|
||||
return ignoredTests.indexOf(className) === -1;
|
||||
}).map(className => {
|
||||
// com.facebook.react.tests.ReactHorizontalScrollViewTestCase
|
||||
return argv.package + '.' + className;
|
||||
|
||||
@@ -20,4 +20,5 @@ buck fetch ReactAndroid/src/androidTest/buck-runner:instrumentation-tests
|
||||
buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests
|
||||
|
||||
echo "Running integration tests..."
|
||||
adb shell am instrument -w com.facebook.react.tests/android.support.test.runner.AndroidJUnitRunner
|
||||
# Use the JS script that runs all tests in a loop and is easy to tweak
|
||||
node ./scripts/run-android-ci-instrumentation-tests.js --path ./ReactAndroid/src/androidTest/java/com/facebook/react/tests --package com.facebook.react.tests
|
||||
|
||||
Reference in New Issue
Block a user