You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tests can run in any local web server. Ideally you should test your patch in appropriate web browsers and if possible run `grunt` to lint the code and run automated tests (this will happen automatically when you create a pull request). See the [Recommended Setup](#environment-recommended-setup) for setting up Node.js so that the grunt command works.
30
+
The tests can run in any local web server. Ideally you should test your patch in appropriate web browsers and if possible run `npm test` to lint the code and run automated tests (this will happen automatically when you create a pull request). See the [Recommended Setup](#environment-recommended-setup) for setting up Node.js so that the `npm test` command works.
31
31
32
32
### Environment: Getting the Source
33
33
@@ -61,15 +61,9 @@ git pull upstream master
61
61
62
62
### Environment: Recommended Setup
63
63
64
-
jQuery UI uses Node.js & Grunt to automate the building and validation of source code. Here is how to set that up:
64
+
jQuery UI uses Node.js to automate the building and validation of source code. Here is how to set that up:
65
65
66
66
* Get [Node.js](http://nodejs.org/) (includes NPM, necessary for the next step)
67
-
* Install Grunt cli:
68
-
69
-
```bash
70
-
npm install -g grunt-cli
71
-
```
72
-
73
67
* Install local Node.js modules
74
68
75
69
```bash
@@ -87,10 +81,10 @@ The tests require a local web server and the samples contain some PHP, so a PHP
87
81
88
82
### Running the Tests
89
83
90
-
To lint the JavaScript, HTML, and CSS, as well as run a smoke test in PhantomJS, run grunt:
84
+
To lint the JavaScript, HTML, and CSS, as well as run a smoke test in PhantomJS, run the full test suite through npm:
91
85
92
86
```bash
93
-
grunt
87
+
npm test
94
88
```
95
89
96
90
To run the tests for a specific plugin in your browser, open the appropriate file from the `/tests/unit/` directory, for example: `http://localhost/tests/unit/accordion/accordion.html`. The domain will be dependent on your local server configuration; if there is a port, be sure to include it.
0 commit comments