ToluAkin/CodeReviewTool

โ˜… 0Forks 0GitHub โ†—Compare

README

Review Tool

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.

Demo

Technologies Used

  • Batchfile - for scripts related to Windows OS

  • JS

  • mochajs - test framework used

  • Shell

  • Github Actions

Want to contribute?

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.

Technical Description

To use this tool:

  • You can fork the repository and use as a base for your project

OR

  • You can add the .github, .gitignore and tests folder directly into your project.

Whichever options feels doable to you should work just fine.

Using the tool - sample

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.

For Windows OS

  • Run command prompt as administrator

  • Navigate to the tests folder in the project directory

  • Navigate to the current issue you're working on e.g. issue1

  • Run the test.bat file

  • 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.

For Linux & Mac OS

  • Open the terminal

  • Navigate to the tests folder in the project directory

  • Navigate to the current issue you're working on e.g. issue1

  • Run the test.sh file

  • 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.

Authors

Acknowledgements

Thanks Everyone!!!

Contributors

beccadaniel

Issues