marcusbuffett / command-line-chess

A python program to play chess against an AI in the terminal.
MIT License
496 stars 156 forks source link

Adding unittests #34

Open ClasherKasten opened 1 year ago

ClasherKasten commented 1 year ago

There are not really tests in this repository which makes it a bit hard to ensure there are no bugs and/or unintentional behavior.

To fix this, unittests should be written. When this is done, integration tests can be done too.

Right now there is only one (unnecessary) test. All new tests should be created in a new directory called tests/ and because it is already in use, pytest should be used as test-framework.

GrbavaCigla commented 1 year ago

Hi, I am want to solve this, can you assign me?

programmin1 commented 1 year ago

Looks good, do you need more tests created? Interesting project!

ClasherKasten commented 1 year ago

Looks good, do you need more tests created? Interesting project!

First: Nice that you find this project interesting. 👍

46 already covers many parts of the code, but it definitely does not cover everything. So new PRs fixing that would be very welcome.

programmin1 commented 1 year ago

Ok check out https://github.com/marcusbuffett/command-line-chess/pull/50 ?