39.8.0 • Published 9 days ago

@ckeditor/ckeditor5-dev-tests v39.8.0

Weekly downloads
869
License
GPL-2.0-or-later
Repository
github
Last release
9 days ago

CKEditor 5 testing environment

npm version CircleCI

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-run-automated",
      "manual": "node ./node_modules/.bin/ckeditor5-dev-tests-run-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-run-automated"
  }
}

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

  • browsers - Browsers which will be used to run the tests. Also available as an alias: -b.
  • coverage - Whether to generate code coverage. Also available as an alias: -c.
  • debug - Allows specifying custom debug flags. For example, the --debug engine option uncomments the // @if CK_DEBUG_ENGINE // lines in the code. By default --debug is set to true even if you did not specify it. This enables the base set of debug logs (// @if CK_DEBUG //) which should always be enabled in the testing environment. You can completely turn off the debug mode by setting the --debug false option or --no-debug.
  • files - Package names, directories or files to tests. Also available as an alias: -f. Read more about this option in the Rules for using the --files option section.
  • language – Specifies a language that will be used while building tests. By default it is en.
  • production - Run strictest set of checks. E.g. it fails test run when there are console calls or DOM leaks.
  • repositories (-r) - Specifies names of repositories containing packages that should be tested. Those repositories should be cloned into the external/ directory in the root directory of the project. It's a shortcut of the --files option as these repository packages' names will be read by the tool automatically.
  • reporter - Mocha reporter – either mocha (default) or dots (less verbose one).
  • server - Whether to run the server without opening any browser.
  • source-map - Whether to generate the source maps. Also available as an alias: -s.
  • verbose - Whether to informs about Webpack's work. Also available as an alias: -v.
  • watch - Whether to watch the files and executing tests whenever any file changes. Also available as an alias: -w.

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):

$ npm t -- --browsers=Chrome,Firefox --files=basic-styles/bold,basic-styles/italic

Test all installed packages:

$ npm t -- --files=*

Test all installed packages except one (or more):

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

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.

39.8.0

9 days ago

39.7.0

10 days ago

39.7.0-alpha.4

15 days ago

39.7.0-alpha.3

18 days ago

39.7.0-alpha.2

1 month ago

39.6.3

2 months ago

39.7.0-alpha.1

2 months ago

39.7.0-alpha.0

2 months ago

39.6.2

2 months ago

39.6.1

3 months ago

39.6.0

3 months ago

39.5.1

4 months ago

39.5.0

5 months ago

39.4.0

5 months ago

39.3.0

5 months ago

38.4.1

8 months ago

38.4.0

9 months ago

39.2.1

6 months ago

39.2.0

7 months ago

38.0.5

10 months ago

38.0.3

10 months ago

38.0.4

10 months ago

38.1.4

9 months ago

38.1.2

10 months ago

38.1.3

9 months ago

38.1.0

10 months ago

38.1.1

10 months ago

39.1.0

7 months ago

38.2.1

9 months ago

38.2.2

9 months ago

38.2.0

9 months ago

39.0.0

8 months ago

38.3.0

9 months ago

38.3.1

9 months ago

38.0.2

10 months ago

38.0.1

11 months ago

38.0.0-alpha.0

12 months ago

38.0.0

11 months ago

37.0.0

1 year ago

37.0.1

1 year ago

36.0.1

1 year ago

36.0.0

1 year ago

35.0.2

1 year ago

35.0.3

1 year ago

35.0.4

1 year ago

35.0.5

1 year ago

35.0.6

1 year ago

35.0.0

1 year ago

35.0.1

1 year ago

34.1.1

1 year ago

34.1.2

1 year ago

34.1.3

1 year ago

34.1.0

1 year ago

34.0.1

1 year ago

34.0.2

1 year ago

34.0.0

1 year ago

33.0.1

1 year ago

33.0.0

1 year ago

32.1.2

1 year ago

32.1.0

1 year ago

32.1.1

1 year ago

31.1.2

2 years ago

31.1.3

2 years ago

31.1.4

2 years ago

31.1.5

2 years ago

31.1.6

1 year ago

31.1.7

1 year ago

31.1.8

1 year ago

31.1.9

1 year ago

31.1.11

1 year ago

31.1.10

1 year ago

31.1.13

1 year ago

31.1.12

1 year ago

32.0.0

1 year ago

32.0.1

1 year ago

32.0.2

1 year ago

31.1.1

2 years ago

31.1.0

2 years ago

31.0.0

2 years ago

30.5.0

2 years ago

30.3.4

2 years ago

30.3.5

2 years ago

30.3.2

2 years ago

30.3.3

2 years ago

30.3.0

2 years ago

30.3.1

2 years ago

30.2.0

2 years ago

30.4.0

2 years ago

30.1.4

2 years ago

30.1.5

2 years ago

30.1.2

2 years ago

30.1.3

2 years ago

30.1.0

2 years ago

30.1.1

2 years ago

29.0.1

2 years ago

29.0.2

2 years ago

29.0.0

2 years ago

30.0.1

2 years ago

30.0.0

2 years ago

28.1.1

2 years ago

27.4.0

2 years ago

27.1.0

2 years ago

27.1.1

2 years ago

26.2.1

2 years ago

26.2.0

2 years ago

27.0.0

2 years ago

28.1.0

2 years ago

27.3.0

2 years ago

28.0.0

2 years ago

28.0.1

2 years ago

28.0.4

2 years ago

28.0.2

2 years ago

28.0.3

2 years ago

27.2.0

2 years ago

26.1.0

2 years ago

26.0.1

2 years ago

26.0.0

2 years ago

25.4.5

3 years ago

25.4.4

3 years ago

25.4.3

3 years ago

25.4.2

3 years ago

25.4.1

3 years ago

25.4.0

3 years ago

25.3.1

3 years ago

25.3.0

3 years ago

25.2.6

3 years ago

25.2.5

3 years ago

25.2.4

3 years ago

25.2.3

3 years ago

25.2.2

3 years ago

25.1.0

3 years ago

25.0.0

3 years ago

25.2.0

3 years ago

25.2.1

3 years ago

24.4.2

3 years ago

24.4.1

3 years ago

24.4.0

3 years ago

24.3.0

3 years ago

24.2.0

3 years ago

24.1.0

3 years ago

24.0.2

3 years ago

24.0.1

3 years ago

24.0.0

3 years ago

23.6.1

3 years ago

23.6.0

4 years ago

23.5.1

4 years ago

23.5.0

4 years ago

23.4.0

4 years ago

23.3.0

4 years ago

23.2.0

4 years ago

23.1.1

4 years ago

23.1.0

4 years ago

23.0.0

4 years ago

22.0.0

4 years ago

21.0.0

4 years ago

20.0.2

4 years ago

20.0.1

4 years ago

20.0.0

4 years ago

19.2.0

4 years ago

19.1.0

4 years ago

19.0.1

4 years ago

19.0.0

4 years ago

18.2.1

4 years ago

18.2.0

4 years ago

18.1.0

4 years ago

18.0.5

4 years ago

18.0.4

4 years ago

18.0.3

4 years ago

18.0.2

4 years ago

18.0.1

4 years ago

18.0.0

4 years ago

17.1.0

4 years ago

17.0.0

4 years ago

16.9.0

5 years ago

16.8.0

5 years ago

16.7.4

5 years ago

16.7.3

5 years ago

16.7.2

5 years ago

16.7.1

5 years ago

16.7.0

5 years ago

16.6.1

5 years ago

16.6.0

5 years ago

16.5.0

5 years ago

16.4.2

5 years ago

16.4.1

5 years ago

16.4.0

5 years ago

16.3.0

5 years ago

16.2.3

5 years ago

16.2.2

5 years ago

16.2.1

5 years ago

16.2.0

5 years ago

16.1.0

5 years ago

16.0.1

5 years ago

16.0.0

5 years ago

15.2.0

5 years ago

15.1.0

5 years ago

15.0.3

5 years ago

15.0.2

5 years ago

15.0.1

5 years ago

15.0.0

5 years ago

14.1.0

5 years ago

14.0.0

5 years ago

13.1.2

5 years ago

13.1.1

5 years ago

13.1.0

5 years ago

13.0.3

6 years ago

13.0.2

6 years ago

13.0.1

6 years ago

13.0.0

6 years ago

12.1.3

6 years ago

12.1.2

6 years ago

12.1.1

6 years ago

12.0.1

6 years ago

12.0.0

6 years ago

11.0.3

6 years ago

11.0.2

6 years ago

11.0.1

6 years ago

11.0.0

6 years ago

10.3.5

6 years ago

10.3.4

6 years ago

10.3.3

6 years ago

10.3.2

6 years ago

10.3.1

6 years ago

10.3.0

6 years ago

10.2.3

6 years ago

10.2.2

6 years ago

10.2.1

6 years ago

10.2.0

6 years ago

10.1.0

6 years ago

10.0.5

6 years ago

10.0.4

6 years ago

10.0.3

6 years ago

10.0.2

6 years ago

10.0.1

6 years ago

10.0.0

6 years ago

9.2.1

6 years ago

9.2.0

6 years ago

9.1.0

6 years ago

9.0.0

6 years ago

8.2.5

6 years ago

8.2.4

7 years ago

8.2.3

7 years ago

8.2.2

7 years ago

8.2.1

7 years ago

8.2.0

7 years ago

8.1.2

7 years ago

8.1.1

7 years ago

8.1.0

7 years ago

8.0.3

7 years ago

8.0.2

7 years ago

8.0.1

7 years ago

8.0.0

7 years ago

7.5.0

7 years ago

7.4.8

7 years ago

7.4.7

7 years ago

7.4.6

7 years ago

7.4.5

7 years ago

7.4.4

7 years ago

7.4.3

7 years ago

7.4.2

7 years ago

7.4.1

7 years ago

7.4.0

7 years ago

7.3.0

7 years ago

7.2.3

7 years ago

7.2.2

7 years ago

7.2.1

7 years ago

7.2.0

7 years ago

7.1.3

7 years ago

7.1.2

7 years ago

7.1.1

7 years ago

7.1.0

7 years ago

7.0.7

7 years ago

7.0.6

7 years ago

7.0.5

7 years ago

7.0.4

7 years ago

7.0.3

7 years ago

7.0.2

7 years ago

7.0.1

7 years ago

7.0.0

7 years ago

6.1.1

7 years ago

6.1.0

7 years ago

6.0.1

7 years ago

6.0.0

7 years ago

5.0.0

7 years ago

4.0.6

7 years ago

4.0.5

7 years ago

4.0.4

7 years ago

4.0.3

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.1.1

7 years ago

3.1.0

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.2.0

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.0

8 years ago