Let\'s say I am using a framework that has a class called Animal. class Animal(object): def speak(self):
My basic logic is to have an infinite loop running somewhere and test it as best as possible. The reason for having an infinite loop is not important (main loop for games, daemon-like logic...) and I\
When you approach a class you want to write, how do you plan its unit tests? Are there formal templates which you follow or do you use pen and paper/notepad?
Anyone has b开发者_高级运维een using Behat with Zend Framework? Any examples on how to use both?I got it working.It works with PHPUnit and Zend_Test so you can use all those nifty assertXYZ() methods.
In my memory, most people told me I should design from top to bottom. If I want to implement a web page, I should image or draw this page on paper and then divide it into some functionality. For each
I\'ve read a lot lately about TDD, but I\'ve only seen small examples. Now I have to start with a (not large, but more than just a single class) file impo开发者_JS百科rter which has to be robust, so
I want to do ATDD with TDD and DDD and 开发者_JAVA百科I want to first discover behaviors (using mocks) of a domain model (ecommerce in my example).
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
I\'m building an ASP.NET app in VS2010. I have a number of separate assemblies (class libraries) and corresponding Test projects for each.
I\'m fairly new to unit testing and can\'t get around how to test (or if I even should) this case properly.