Martinsos / edlib

Lightweight, super fast C/C++ (& Python) library for sequence alignment using edit (Levenshtein) distance.
http://martinsos.github.io/edlib
MIT License
493 stars 162 forks source link

Improve how testing is done #76

Open Martinsos opened 7 years ago

Martinsos commented 7 years ago

I have wrote my own e2e tests, using no framework. I should use some framework to make this nicer! Also, I should add unit tests. Although, we may consider these e2e test to also be unit tests since they are testing the main function hm.

drmorr0 commented 6 years ago

I'd be happy to write some more unit tests for this if you want.

Martinsos commented 6 years ago

Hi @drmorr0, thanks for offering! What I was actually hoping to do is use an actual testing framework, like gtest or catch (https://github.com/catchorg/Catch2). I have yet to figure out which one of them is best and set it up. If you any recommendations I would be happy to hear them out! What I am also missing is tests for Python, so I could also use some assistance with that. Main limit on my side is time -> not enough of it for everything :).

drmorr0 commented 6 years ago

I've used unittest++ in the past for C++ projects, it works pretty well, but Catch2 looks really interesting too. py.test works great for Python testing.

I'm on vacation for the next week; when I get back I'll investigate this further.