You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
Markdown
50 lines
1.0 KiB
Markdown
8 years ago
|
PEG.js Test Suite
|
||
13 years ago
|
=================
|
||
|
|
||
8 years ago
|
This is the PEG.js test suite. It ensures PEG.js works correctly. All tests
|
||
13 years ago
|
should always pass on all supported platforms.
|
||
|
|
||
11 years ago
|
Running in Node.js
|
||
|
------------------
|
||
13 years ago
|
|
||
11 years ago
|
All commands in the following steps need to be executed in PEG.js root directory
|
||
|
(one level up from this one).
|
||
13 years ago
|
|
||
11 years ago
|
1. Install all PEG.js dependencies, including development ones:
|
||
13 years ago
|
|
||
9 years ago
|
```console
|
||
|
$ npm install
|
||
|
```
|
||
12 years ago
|
|
||
8 years ago
|
2. Execute the test suite:
|
||
12 years ago
|
|
||
9 years ago
|
```console
|
||
8 years ago
|
$ gulp test
|
||
9 years ago
|
```
|
||
12 years ago
|
|
||
8 years ago
|
3. Watch the tests pass (or fail).
|
||
13 years ago
|
|
||
11 years ago
|
Running in the Browser
|
||
11 years ago
|
----------------------
|
||
13 years ago
|
|
||
11 years ago
|
All commands in the following steps need to be executed in PEG.js root directory
|
||
|
(one level up from this one).
|
||
13 years ago
|
|
||
9 years ago
|
1. Make sure you have Node.js installed.
|
||
13 years ago
|
|
||
11 years ago
|
2. Install all PEG.js dependencies, including development ones:
|
||
13 years ago
|
|
||
9 years ago
|
```console
|
||
|
$ npm install
|
||
|
```
|
||
13 years ago
|
|
||
8 years ago
|
3. Serve the test suite using a web server:
|
||
13 years ago
|
|
||
9 years ago
|
```console
|
||
8 years ago
|
$ test/server
|
||
9 years ago
|
```
|
||
13 years ago
|
|
||
8 years ago
|
4. Point your browser to the [test suite](http://localhost:8000/).
|
||
11 years ago
|
|
||
8 years ago
|
5. Watch the tests pass (or fail).
|