@ckeditor/ckeditor5-dev-tests
Testing environment for CKEditor 5.
Last updated 4 days ago by ckeditor .
GPL-2.0-or-later · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ckeditor/ckeditor5-dev-tests 
SYNC missed versions from official npm registry.

CKEditor 5 testing environment

Testing environment for CKEditor 5. It's based on Karma and webpack and it's normally used in the CKEditor 5 development environment. Read more about CKEditor 5's testing environment.

More information about development tools packages can be found at the following URL: https://github.com/ckeditor/ckeditor5-dev.

Usage

First, you need to install the package:

npm i --save-dev @ckeditor/ckeditor5-dev-tests

An example npm task to test CKEditor 5 packages (used e.g. in https://github.com/ckeditor/ckeditor5) can look like this:

{
  "scripts": {
      "test": "node ./node_modules/.bin/ckeditor5-dev-tests",
      "manual": "node ./node_modules/.bin/ckeditor5-dev-tests-manual"
  }
}

If you encounter problems with big test folders pass --max_old_space_size=4096 option to node runner:

{
  "scripts": {
      "test": "node --max_old_space_size=4096 ./node_modules/.bin/ckeditor5-dev-tests"
  }
}

You can also use the bin script for testing a package:

# For running all the tests (for the current package and all dependencies).
./node_modules/.bin/ckeditor5-dev-tests --files=*

# For running tests in the current package.
./node_modules/.bin/ckeditor5-dev-tests

CLI options

  • watch - Whether to watch the files and executing tests whenever any file changes. Also available as an alias: -w.
  • source-map - Whether to generate the source maps. Also available as an alias: -s.
  • coverage - Whether to generate code coverage. Also available as an alias: -c.
  • verbose - Whether to informs about Webpack's work. Also available as an alias: -v.
  • files - Specify file(s) to test. Also available as an alias: -f.
  • browsers - Browsers which will be used to run the tests. Also available as an alias: -b.
  • reporter - Mocha reporter – either mocha (default) or dots (less verbose one).
  • production - Run strictest set of checks. E.g. it fails test run when there are console calls or DOM leaks.

Examples

Test the ckeditor5-enter and ckeditor5-paragraph packages and generate code coverage report:

$ npm t -- -c --files=enter,paragraph

Run tests/view/**/*.js tests from ckeditor5-engine and rerun them once any file change (the watch mode):

$ npm t -- -w --files=engine/view

Test specified files in ckeditor5-basic-styles on two browsers (Chrome and Firefox) you can use:

$ npm t -- --browsers=Chrome,Firefox --files=basic-styles/boldengine.js,basic
-styles/italicengine.js

Test all installed packages:

$ npm t -- --files=*

Test all installed packages except one (or more):

$ npm t -- --files='!(engine)'
$ npm t -- --files='!(engine|ui)'

Rules for converting --files option to glob pattern:

--file Glob Description
engine node_modules/ckeditor5-engine/tests/**/*.js
engine/view node_modules/ckeditor5-engine/tests/view/**/*.js
engine/view/so/**/me/glob.js node_modules/ckeditor5-engine/tests/view/so/**/me/*glob.js
!(engine) node_modules/ckeditor5-!(engine)*/tests/**/*.js all tests except of given package(s) – works with multiple names !(engine|ui|utils)
* node_modules/ckeditor5-*/tests/**/*.js all installed package's tests
ckeditor5 tests/**/*.js tests from the main repository

IDE integrations

The CKEditor 5 can be integrated with IDEs via integrations.

Currently only the IntelliJ based IDEs are supported (WebStorm, PHPStorm, etc). Detailed information are provided in bin/intellijkarmarunner/README.md.

Changelog

See the CHANGELOG.md file.

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file.

Current Tags

  • 20.0.1                                ...           latest (4 days ago)

145 Versions

  • 20.0.1                                ...           4 days ago
  • 20.0.0                                ...           9 days ago
  • 19.2.0                                ...           16 days ago
  • 19.1.0                                ...           18 days ago
  • 19.0.1                                ...           a month ago
  • 19.0.0                                ...           a month ago
  • 18.2.1                                ...           a month ago
  • 18.2.0                                ...           2 months ago
  • 18.1.0                                ...           2 months ago
  • 18.0.5                                ...           2 months ago
  • 18.0.4                                ...           3 months ago
  • 18.0.3                                ...           3 months ago
  • 18.0.2                                ...           4 months ago
  • 18.0.1                                ...           4 months ago
  • 18.0.0                                ...           5 months ago
  • 17.1.0                                ...           6 months ago
  • 17.0.0                                ...           6 months ago
  • 16.9.0                                ...           8 months ago
  • 16.8.0                                ...           8 months ago
  • 16.7.4                                ...           9 months ago
  • 16.7.3                                ...           9 months ago
  • 16.7.2                                ...           9 months ago
  • 16.7.1                                ...           10 months ago
  • 16.7.0                                ...           10 months ago
  • 16.6.1                                ...           10 months ago
  • 16.6.0                                ...           10 months ago
  • 16.5.0                                ...           10 months ago
  • 16.4.2                                ...           10 months ago
  • 16.4.1                                ...           a year ago
  • 16.4.0                                ...           a year ago
  • 16.3.0                                ...           a year ago
  • 16.2.3                                ...           a year ago
  • 16.2.2                                ...           a year ago
  • 16.2.1                                ...           a year ago
  • 16.2.0                                ...           a year ago
  • 16.1.0                                ...           a year ago
  • 16.0.1                                ...           a year ago
  • 16.0.0                                ...           a year ago
  • 15.2.0                                ...           a year ago
  • 15.1.0                                ...           a year ago
  • 15.0.3                                ...           a year ago
  • 15.0.2                                ...           a year ago
  • 15.0.1                                ...           a year ago
  • 15.0.0                                ...           a year ago
  • 14.1.0                                ...           a year ago
  • 14.0.0                                ...           a year ago
  • 13.1.2                                ...           a year ago
  • 13.1.1                                ...           2 years ago
  • 13.1.0                                ...           2 years ago
  • 13.0.3                                ...           2 years ago
  • 13.0.2                                ...           2 years ago
  • 13.0.1                                ...           2 years ago
  • 13.0.0                                ...           2 years ago
  • 12.1.3                                ...           2 years ago
  • 12.1.2                                ...           2 years ago
  • 12.1.1                                ...           2 years ago
  • 12.0.1                                ...           2 years ago
  • 12.0.0                                ...           2 years ago
  • 11.0.3                                ...           2 years ago
  • 11.0.2                                ...           2 years ago
  • 11.0.1                                ...           2 years ago
  • 11.0.0                                ...           2 years ago
  • 10.3.5                                ...           2 years ago
  • 10.3.4                                ...           2 years ago
  • 10.3.3                                ...           2 years ago
  • 10.3.2                                ...           2 years ago
  • 10.3.1                                ...           2 years ago
  • 10.3.0                                ...           2 years ago
  • 10.2.3                                ...           2 years ago
  • 10.2.2                                ...           2 years ago
  • 10.2.1                                ...           2 years ago
  • 10.2.0                                ...           2 years ago
  • 10.1.0                                ...           2 years ago
  • 10.0.5                                ...           2 years ago
  • 10.0.4                                ...           2 years ago
  • 10.0.3                                ...           2 years ago
  • 10.0.2                                ...           2 years ago
  • 10.0.1                                ...           2 years ago
  • 10.0.0                                ...           2 years ago
  • 9.2.1                                ...           3 years ago
  • 9.2.0                                ...           3 years ago
  • 9.1.0                                ...           3 years ago
  • 9.0.0                                ...           3 years ago
  • 8.2.5                                ...           3 years ago
  • 8.2.4                                ...           3 years ago
  • 8.2.3                                ...           3 years ago
  • 8.2.2                                ...           3 years ago
  • 8.2.1                                ...           3 years ago
  • 8.2.0                                ...           3 years ago
  • 8.1.2                                ...           3 years ago
  • 8.1.1                                ...           3 years ago
  • 8.1.0                                ...           3 years ago
  • 8.0.3                                ...           3 years ago
  • 8.0.2                                ...           3 years ago
  • 8.0.1                                ...           3 years ago
  • 8.0.0                                ...           3 years ago
  • 7.5.0                                ...           3 years ago
  • 7.4.8                                ...           3 years ago
  • 7.4.7                                ...           3 years ago
  • 7.4.6                                ...           3 years ago
  • 7.4.5                                ...           3 years ago
  • 7.4.4                                ...           3 years ago
  • 7.4.3                                ...           3 years ago
  • 7.4.2                                ...           3 years ago
  • 7.4.1                                ...           3 years ago
  • 7.4.0                                ...           3 years ago
  • 7.3.0                                ...           3 years ago
  • 7.2.3                                ...           3 years ago
  • 7.2.2                                ...           3 years ago
  • 7.2.1                                ...           3 years ago
  • 7.2.0                                ...           3 years ago
  • 7.1.3                                ...           3 years ago
  • 7.1.2                                ...           3 years ago
  • 7.1.1                                ...           3 years ago
  • 7.1.0                                ...           3 years ago
  • 7.0.7                                ...           3 years ago
  • 7.0.6                                ...           3 years ago
  • 7.0.5                                ...           3 years ago
  • 7.0.4                                ...           3 years ago
  • 7.0.3                                ...           3 years ago
  • 7.0.2                                ...           3 years ago
  • 7.0.1                                ...           3 years ago
  • 7.0.0                                ...           3 years ago
  • 6.1.1                                ...           3 years ago
  • 6.1.0                                ...           3 years ago
  • 6.0.1                                ...           3 years ago
  • 6.0.0                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.0.6                                ...           3 years ago
  • 4.0.5                                ...           3 years ago
  • 4.0.4                                ...           3 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.1.1                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.2                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 32
This Month 294
Last Day 2
Last Week 171
Last Month 160
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |