Explorar o código

Enhancement: Use npm scripts for tests.

Maciej Gołaszewski %!s(int64=8) %!d(string=hai) anos
pai
achega
e816cbb77a
Modificáronse 3 ficheiros con 3 adicións e 19 borrados
  1. 1 1
      docs/framework/guides/contributing/development-environment.md
  2. 0 17
      gulpfile.js
  3. 2 1
      package.json

+ 1 - 1
docs/framework/guides/contributing/development-environment.md

@@ -103,7 +103,7 @@ lrwxr-xr-x    1 p  staff    25 31 Jan 10:37 ckeditor5-engine -> ../../../ckedito
 If everything worked correctly, you should be able to run some tests:
 
 ```bash
-gulp test --files=core
+npm run test -- --files=core
 ```
 
 ### Fetching changes

+ 0 - 17
gulpfile.js

@@ -10,23 +10,6 @@
 const path = require( 'path' );
 const gulp = require( 'gulp' );
 
-// Tests. ---------------------------------------------------------------------
-
-gulp.task( 'test', () => {
-	return require( '@ckeditor/ckeditor5-dev-tests' )
-		.runAutomatedTests( getTestOptions() );
-} );
-
-gulp.task( 'test:manual', () => {
-	return require( '@ckeditor/ckeditor5-dev-tests' )
-		.runManualTests( getTestOptions() );
-} );
-
-function getTestOptions() {
-	return require( '@ckeditor/ckeditor5-dev-tests' )
-		.parseArguments( process.argv.slice( 2 ) );
-}
-
 // Documentation. -------------------------------------------------------------
 
 gulp.task( 'docs', () => {

+ 2 - 1
package.json

@@ -69,7 +69,8 @@
   "scripts": {
     "lint": "eslint --quiet '**/*.js'",
     "precommit": "lint-staged",
-    "test": "node --max_old_space_size=4096 ./node_modules/.bin/ckeditor5-dev-tests --reporter=dots",
+    "test": "node --max_old_space_size=4096 ./node_modules/.bin/ckeditor5-dev-tests",
+    "test:manual": "node --max_old_space_size=4096 ./node_modules/.bin/ckeditor5-dev-tests-manual",
     "install-optional-dependencies": "./scripts/install-optional-dependencies.sh",
     "switch-to-dev-dev": "./scripts/switch-to-dev-dev.sh",
     "build-and-publish-docs": "./scripts/docs/build-and-publish.js"