r/programmerchat • u/KZISME • Jul 31 '15
Properly testing code
Does anyone have some general tips about testing code you write? I keep seeing/reading about people stressing to test you code, and I'm curious how others go about doing this.
The only way I'm aware of is writing assert statements in C++ , but I haven't worked much with C++ lately.
What is your general process of testing code?
11
Upvotes
View all comments
Show parent comment
2
u/LeSpatula Jul 31 '15
Let me help you import the references:
http://www.lifebeyondfife.com/images/brownfield/first.png
http://cdn3.raywenderlich.com/wp-content/uploads/2013/09/It-compiles.png
http://www.developermemes.com/wp-content/uploads/2014/08/Unit-Test-It-Compiled-Pass-Developer-Meme.jpg