remove obsolete test nosync targets

This commit is contained in:
blagoev 2017-03-30 11:24:46 +03:00
parent 309dfc8733
commit a33577eccb
6 changed files with 4 additions and 41 deletions

21
.vscode/launch.json vendored
View File

@ -24,27 +24,6 @@
"args": [ "args": [
"spec/unit_tests.js" "spec/unit_tests.js"
] ]
},
{
"type": "node",
"request": "launch",
"name": "Debug Node Sync Unit Tests (rebuild)",
"preLaunchTask": "rebuild-node-tests",
"cwd": "${workspaceRoot}/tests",
"program": "${workspaceRoot}/tests/node_modules/jasmine/bin/jasmine.js",
"args": [
"spec/sync_tests.js"
]
},
{
"type": "node",
"request": "launch",
"name": "Debug Node Sync Unit Tests",
"cwd": "${workspaceRoot}/tests",
"program": "${workspaceRoot}/tests/node_modules/jasmine/bin/jasmine.js",
"args": [
"spec/sync_tests.js"
]
} }
] ]
} }

2
Jenkinsfile vendored
View File

@ -210,7 +210,7 @@ def doWindowsBuild() {
bat 'npm install --build-from-source' bat 'npm install --build-from-source'
dir('tests') { dir('tests') {
bat 'npm install' bat 'npm install'
bat 'npm run test-nosync' bat 'npm run test'
junit 'junitresults-*.xml' junit 'junitresults-*.xml'
} }
} finally { } finally {

View File

@ -93,7 +93,6 @@ test.sh options
* react-tests - runs all React Native tests on iOS Simulator * react-tests - runs all React Native tests on iOS Simulator
* react-tests-android runs all React Native Android tests on Android emulator * react-tests-android runs all React Native Android tests on Android emulator
* node - runs all tests for node * node - runs all tests for node
* node-nosync - runs all tests for node without sync support
* test-runners - checks supported tests runners are working correctly * test-runners - checks supported tests runners are working correctly

View File

@ -57,9 +57,7 @@
"jsdoc:clean": "rimraf ./docs/output", "jsdoc:clean": "rimraf ./docs/output",
"jsdoc": "npm install && npm run jsdoc:clean && jsdoc -c docs/conf.json", "jsdoc": "npm install && npm run jsdoc:clean && jsdoc -c docs/conf.json",
"prenode-tests": "npm install --build-from-source && cd tests && npm install", "prenode-tests": "npm install --build-from-source && cd tests && npm install",
"node-tests": "cd tests && npm run test-nosync && cd ..", "node-tests": "cd tests && npm run test && cd ..",
"prenode-tests-nosync": "npm install --build-from-source && cd tests && npm install",
"node-tests-nosync": "cd tests && npm run test-nosync && cd ..",
"test-runner:ava": "cd tests/test-runners/ava && npm install && npm test", "test-runner:ava": "cd tests/test-runners/ava && npm install && npm test",
"test-runner:mocha": "cd tests/test-runners/mocha && npm install && npm test", "test-runner:mocha": "cd tests/test-runners/mocha && npm install && npm test",
"test-runner:jest": "cd tests/test-runners/jest && npm install && npm test", "test-runner:jest": "cd tests/test-runners/jest && npm install && npm test",

View File

@ -341,7 +341,7 @@ case "$TARGET" in
npm_tests_cmd="npm run test" npm_tests_cmd="npm run test"
npm install --build-from-source --realm_enable_sync npm install --build-from-source --realm_enable_sync
else else
npm_tests_cmd="npm run test-nosync" npm_tests_cmd="npm run test"
npm install --build-from-source npm install --build-from-source
fi fi
@ -355,18 +355,6 @@ case "$TARGET" in
popd popd
stop_server stop_server
;; ;;
"node-nosync")
npm install --build-from-source
# Change to a temp directory.
cd "$(mktemp -q -d -t realm.node.XXXXXX)"
test_temp_dir=$PWD # set it to be cleaned at exit
pushd "$SRCROOT/tests"
npm install
npm run test-nosync
popd
;;
"test-runners") "test-runners")
# Create a fake realm module that points to the source root so that test-runner tests can require('realm') # Create a fake realm module that points to the source root so that test-runner tests can require('realm')
npm install --build-from-source npm install --build-from-source

View File

@ -13,8 +13,7 @@
"url-parse": "^1.1.7" "url-parse": "^1.1.7"
}, },
"scripts": { "scripts": {
"test": "jasmine spec/unit_tests.js spec/sync_tests.js", "test": "jasmine spec/unit_tests.js",
"test-nosync": "jasmine spec/unit_tests.js",
"test-sync-integration": "jasmine spec/sync_integration_tests.js" "test-sync-integration": "jasmine spec/sync_integration_tests.js"
} }
} }