badhan-test
contains the automated API testing script written using Node.JS. The API being tested is currently the active backend for Badhan, BUET Zone Android app (https://play.google.com/store/apps/details?id=com.mmmbadhan) and Website (https://badhan-buet.web.app)
- Create
config
directory and pasteconfig.js
inside it (Get theconfig.js
file from the system administrators)
If you have Nodejs installed, you can run the test by following command
npm install
ornpm i
npm run test
ornpm t
To run only a single test file, you can use the following command
npm test -- <path to the test file>
.
Example:npm test -- signIn/success
ornpm t -- signIn/success
in short.
- Install Docker.
- Run
bin/install
- Run
bin/up
to run all tests at once in series - Or, run
bin/run npm run test $$specific_test$$
to run any specific test. (e.g.bin/run npm run test /tests/users/signIn/success.test.js
)