Top "Tdd" questions

Test-Driven Development (TDD) involves writing a failing automated test to specify what is to be built.

How can I test that a value is "greater than or equal to" in Jasmine?

I want to confirm that a value is a decimal (or 0), so the number should be greater than or equal …

javascript tdd jasmine
Unit Testing bash scripts

We have a system that has some bash scripts running besides Java code. Since we are trying to Test Everything …

bash testing tdd automated-tests extreme-programming
test a file upload using rspec - rails

I want to test a file upload in rails, but am not sure how to do this. Here is the …

ruby-on-rails file-upload tdd rspec-rails
How do I mock static methods in a class with easymock?

Suppose I have a class like so: public class StaticDude{ public static Object getGroove() { // ... some complex logic which returns an …

java unit-testing static tdd easymock
How do I write unit tests in PHP?

I've read everywhere about how great they are, but for some reason I can't seem to figure out how exactly …

php unit-testing testing tdd
Why use JUnit for testing?

Maybe my question is a newbie one, but I can not really understand the circumstances under which I would use …

java unit-testing junit tdd
Using object types with Jasmine's toHaveBeenCalledWith method

I've just started using Jasmine so please forgive the newbie question but is it possible to test for object types …

javascript tdd bdd jasmine
What is a "Stub"?

So, carrying on with my new years resolution to get more in to TDD, I am now starting to work …

unit-testing testing tdd stub
Unit Test? Integration Test? Regression Test? Acceptance Test?

Is there anyone that can clearly define these levels of testing as I find it difficult to differentiate when doing …

unit-testing testing tdd integration-testing regression-testing
Mocking vs. Spying in mocking frameworks

In mocking frameworks, you can mock an object or spy on it. What's the difference between the two and when …

unit-testing mocking tdd