This tool is used to automate code review process using tests. Tests are written to tally with what is expected in a particular pull request, these tests are expected to be run locally by the individual making the pull request. The result of the tests pushed alongside the changes made in the project is then used to determine if the pull request is fit for approval. If it is fit for approval, the Github-action bot approves the pull request and if otherwise, changes are requested along with a message describing what went wrong. These messages might not appear in all instance.
-
Batchfile
- for scripts related to Windows OS -
JS
-
mochajs
- test framework used -
Shell
-
Github Actions
Here are some resources that might make contributing to this repository easier. You should do well to take your time going through them. OR check them out when you run into an issue ๐.
My advice would be for you to take your time and get acquainted with these resources before you contribute.
-
Github API docs
- for anything Pull Request related
To use this tool:
- You can fork the repository and use as a base for your project
OR
- You can add the
.github,.gitignoreandtestsfolder directly into your project.
Whichever options feels doable to you should work just fine.
Tests that will be run are located inside a subfolder in the tests folder. e.g. issue1 folder contains tests that should be run before creating a pull request for issue 1.
-
Run command prompt as administrator
-
Navigate to the
testsfolder in the project directory -
Navigate to the current issue you're working on e.g.
issue1 -
Run the
test.batfile -
After completion of the running of the file, test results are displayed on the command line. If the tests do not pass, errors are displayed to help you figure out where the issue might be from.
-
Once all tests pass, you can push your changes and create a pull request.
-
Open the terminal
-
Navigate to the
testsfolder in the project directory -
Navigate to the current issue you're working on e.g.
issue1 -
Run the
test.shfile -
After completion of the running of the file, test results are displayed on the command line. If the tests do not pass, errors are displayed to help you figure out where the issue might be from.
-
Once all tests pass, you can push your changes and create a pull request.
- Folashade Daniel - @beccadaniel
Thanks Everyone!!!