-
Notifications
You must be signed in to change notification settings - Fork 68
Automated Tests
Apurv Bajaj edited this page Jun 27, 2018
·
5 revisions
For automated testing, we use the Jasmine framework. The tests are located under the directory spec
. Since we need to mock the GitHub APIs locally via the tests, we require sample payloads. These are stored under fixtures
directory as json
files.
The directory structure for tests is as follows:
fixtures
|-- pullRequestPayload.json
: The payload which resembles the opening of a pull request.
|
spec
|-- support
| |-- jasmine.json
: The jasmine configuration file.
|-- oppiabotSpec.js
: The spec file containing the tests.
A quick introduction on how to write tests using jasmine can be found here.