|
From: Kevin N. <Cap...@un...> - 2012-10-18 21:36:39
|
Hi there, I've been playing with simpletest on an open source project to try and learn unit testing (I did something similar with JavaScript recently and that was quite informative). While I was able to get some unit tests going, and they did help tremendously, I am looking to deepen my knowledge of unit tests and of code design in general. Is this an appropriate place to discuss something like that? Here is what I'm using simple test for (there are very few tests in this right now): https://github.com/adcSTUDIO/OnceForm The JS unit tests I did are in this project (I overdid it here, this was literally the first time I ever tried unit testing anything): https://github.com/CaptainN/SignalsLite.js I'm completely self taught, and learned almost completely alone over 12 years from internet searches and books - I'm dying for real critical feedback. If anyone has any pointers for either of those code bases (they are both pretty small), I'd love to hear it - especially as they relate to restructuring code to be more unit test friendly (as is the focus of this list). The concepts I have trouble with are primarily around the differences between a unit test and an integration test. Thanks! Kevin N. |