I just proposed the following pattern for someone else. I have used it a few times, when I wanted the ability to inject dependencies for test, but but still wanted this backdoor 开发者_Go百科(somewhat
A friend and I recently came across the idea of scenario-based unit testing, which we think is a great alternative to the test-case-per-class methodology. It\'s especially attractive because it helps
Many times I am involved in the design/implementation of APIs I am facing this dilemma. I am a very strong supporter of information hiding and try to use various techniques for that, including but no
I am creating a Rubygem that will let me generate jekyll post files. One of the reasons I am developing this project is to learn TDD. This gem is strictly functional on the command line, and it has to
I am testing views with Cucumber and Rails right now and really enjoy the experience.I can easily say:
Say I want to follow pure TDD i.e. write unit tests before writing any other code. When I find a bug I 开发者_运维知识库must write unit test that reproduces it and then implement a fix.
[TDD newbie] I have a class Car with properties Color an开发者_JAVA技巧d Brand. Does it make sense in TDD to test that the constructor sets those properties? Or do I wait with testing (and implement
I am working on a large solution with currently 60 assemblies. There are many assemblies that define common parts for the solution, and then a few entry point assemblies to the 开发者_高级运维system.
I have a JUnit test that I run on one class, but I recently wrote an emulated version for GWT.Since the specification is the same, I would like to use the same test case, but I want it to run in the G
I\'m trying to follow along in the free ebook \"Test Driven .NET Development With FitNesse: Second Edition\" from http://gojko.net/fitnesse/book/