Add Unit Tests #20
Closed
opened 2 years ago by tdeeb
·
5 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Create unit tests using NUnit. Some tests could include:
It would be better to have a separate project for the tests so the code doesn't get muddled.
Would this be something we want after a database implementation? (Update: my bad this shouldn't matter since it isn't an integration test)
Not necessarily, but it may be preferable. Having the database implemented would let us test the database itself.
Some of the code is hard to test due to tight coupling. For example,
Parser.ParseInputs
is coupled to reading bot data. I'll start on improving this.I made the necessary changes to test the Parser and added a project for conducting tests. I'll double-check everything, merge it in, and add documentation on how to run the tests later.
The unit test project and several Parser tests merged into develop with
9078a9e9ec
.