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
configdirectory and pasteconfig.jsinside it (Get theconfig.jsfile from the system administrators)
If you have Nodejs installed, you can run the test by following command
npm installornpm inpm run testornpm 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/successornpm t -- signIn/successin short.
- Install Docker.
- Run
bin/install - Run
bin/upto 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)