Add testing framework for ReviewBot tools
Review Request #10288 — Created Oct. 27, 2018 and discarded — Latest diff uploaded
Previously, we did not have tests for tools in Review Bot.
This change adds a framework for testing the output parsing logic of
the Review Bot tool classes. Additionally, some sample unit tests have
been added to demonstrate how I envision this framework being used.
Successfuly ran the unit tests (
./tests/runtests.py
).
Diff Revision 4
This is not the most recent revision of the diff. The latest diff is revision 6. See what's changed.
orig
1
2
3
4
5
6
bot/reviewbot/repositories.py |
---|
bot/reviewbot/tests/runtests.py |
---|
bot/reviewbot/tools/tests/tests.py |
---|
bot/reviewbot/tools/tests/test_files/aws_key.py |
---|
bot/reviewbot/tools/tests/test_files/line_over_limit.py |
---|