This small NodeJs app is aimed at unit testing the code for IST FP Project 2 (2020-2021).
The app turns on a web server which allows the students to paste their code and run the tests,
without any knowledge on unit testing.
- Make sure you have NodeJS, Yarn and Python 3.5 (edit version in
index.js
if you want to use another version). - Install dependencies with
yarn install
(or justyarn
). - Run the server with
yarn start
(production) oryarn dev
(development). - Go to
localhost:5000
(or the port you specified in thePORT
env variable). - Paste your code and see the tests running.
Tests are located at tests/test.py
.
Additional test files (big outputs, for example), might be in their own .txt
files.
To contribute, just submit a pull request. Make sure the test is correct before submitting a PR.
Improvements to the web interface or NodeJS backend are also appreciated.
As above, submit a pull request or open an issue if you want to discuss the changes before implementing them.