Hi, I was curious to know if we can write our own unit tests or if it’s not possible? I understand you guys have a testing suite but I also wanted to write some unit tests for the code I’m writing and apparently GoogleTest isn’t supported as it breaks the website’s tests. It’s useful to have small little unit tests for some utilities we write here and there and to test small things before pushing code to the website, but doing so sometimes means not commiting the tests (as to not break the website’s tests).
Hi, thanks for your post!
I’m currently out of the office and will be back on March 23. I’ll get back to you as soon as possible once I return.
@WashingtonARamos mind sharing some details on how adding your own tests broke the tests that CodeCrafters runs? I do this frequently when using Ruby, and we haven’t designed anything with the intention of not allowing users to add their own tests. Maybe this is specific to the lanugage/test framework you’re using and I’d like to see if we could push a fix on our end to make it work.
Hi, sorry for the late response. I remember adding GoogleTest to my C++ project, pushing with some tests and then it failed. I have since not tried adding it anymore but when I tried the other day it did pass, so I might’ve just messed something up in the past. I’m currently doing a big refactor so I can’t test it right now on the current challenge but I’ll try to when I can.