tests: backend tests are now run with "npm test" instead of a custom bash script
parent
1a4a26fc73
commit
379690abbf
|
@ -93,6 +93,8 @@ You can build the docs e.g. produce html, using `make docs`. At some point in th
|
||||||
## Testing
|
## Testing
|
||||||
Front-end tests are found in the `tests/frontend/` folder in the repository. Run them by pointing your browser to `<yourdomainhere>/tests/frontend`.
|
Front-end tests are found in the `tests/frontend/` folder in the repository. Run them by pointing your browser to `<yourdomainhere>/tests/frontend`.
|
||||||
|
|
||||||
|
Back-end tests can be run from the `src` directory, via `npm test`.
|
||||||
|
|
||||||
## Things you can help with
|
## Things you can help with
|
||||||
Etherpad is much more than software. So if you aren't a developer then worry not, there is still a LOT you can do! A big part of what we do is community engagement. You can help in the following ways
|
Etherpad is much more than software. So if you aren't a developer then worry not, there is still a LOT you can do! A big part of what we do is community engagement. You can help in the following ways
|
||||||
* Triage bugs (applying labels) and confirming their existance
|
* Triage bugs (applying labels) and confirming their existance
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
src/node_modules/mocha/bin/mocha --timeout 5000 --reporter nyan tests/backend/specs/api
|
|
|
@ -74,6 +74,9 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "http://github.com/ether/etherpad-lite.git"
|
"url": "http://github.com/ether/etherpad-lite.git"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "mocha --timeout 5000 --reporter nyan ../tests/backend/specs/api"
|
||||||
|
},
|
||||||
"version": "1.6.6",
|
"version": "1.6.6",
|
||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,4 @@ To run the frontend tests, point your browser to `<yourdomainhere>/tests/fronten
|
||||||
|
|
||||||
## Backend
|
## Backend
|
||||||
|
|
||||||
To run the backend tests, run `bin/backendTests.sh`
|
To run the backend tests, run `cd src` and then `npm test`
|
||||||
|
|
Loading…
Reference in New Issue