Hey All, I need to test a couple of classes that I’ve created for my project, I want to be sure that if a method receives a certain string as parameter it returns a certain map. I’ve found this post in the forum Tutorial for unit testing OF projects in Xcode but not all of my methods contain a OF methods. Which is the way to go to add some unit testing in OF?
we have a unit testing addon ofxUnitTests, which is not included in the download but you can use from git.
It’s pretty simple but allows to do the tipical tests for something returning true, something being equal… there’s also a template for unit tests that doesn’t use a GL context so it can run on travis…
if you want something more generic there’s a lot of c++ unit test frameworks that you can use
there’s some unit tests here: https://github.com/openframeworks/openFrameworks/tree/master/tests if you want to check the syntax…
I will have a look, thank you!
maybe this is not important, but here is a list: