fix disabled

pull/5370/head
yann300 3 years ago
parent 70fd5d3a1f
commit 214e634aa5
  1. 2
      apps/remix-ide-e2e/src/checkGroupTests.js
  2. 2
      apps/remix-ide-e2e/src/select_tests.sh
  3. 2
      apps/remix-ide/ci/browser_test.sh
  4. 2
      apps/remix-ide/ci/browser_tests_plugin_api.sh

@ -6,7 +6,7 @@ fs.readdirSync(testFolder).forEach(file => {
const content = fs.readFileSync(testFolder + file, 'utf8')
const matches = content.match(/group\d+/g)
if (matches) {
const disabled = content.includes('@disabled: true')
const disabled = content.includes('\'@disabled\': true') || content.includes('\'@disabled\':true')
if (!disabled) {
console.log(`WARNING ${file} has group tests but is not disabled`)
}

@ -26,7 +26,7 @@ do
done
npm run build:e2e
PS3='Select a test or command: '
TESTFILES=( $(grep -IRiL "@disabled: true" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test\|plugin_api" | sort ) )
TESTFILES=( $(grep -IRiL "\'@disabled\': \?true" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test\|plugin_api" | sort ) )
# declare -p TESTFILES
TESTFILES+=("list")

@ -15,7 +15,7 @@ sleep 5
npm run build:e2e
TESTFILES=$(grep -IRiL "@disabled: true" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test" | sort | circleci tests split )
TESTFILES=$(grep -IRiL "\'@disabled\': \?true" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test" | sort | circleci tests split )
for TESTFILE in $TESTFILES; do
npx nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js $TESTFILE --env=$1 || TEST_EXITCODE=1
done

@ -14,7 +14,7 @@ sleep 5
npm run build:e2e
TESTFILES=$(grep -IRiL "@disabled: true" "dist/apps/remix-ide-e2e/src/tests" | grep "plugin_api" | sort | circleci tests split )
TESTFILES=$(grep -IRiL "\'@disabled\': \?true" "dist/apps/remix-ide-e2e/src/tests" | grep "plugin_api" | sort | circleci tests split )
for TESTFILE in $TESTFILES; do
npx nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js $TESTFILE --env=chrome || TEST_EXITCODE=1
done

Loading…
Cancel
Save