Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
TDD stands for Test-Driven Development, or Test-Driven Design. It is the practice of writing a unit test before writing code to satisfy it, in what is known as the Red-Green-Refactor cycle.
0
votes
TDD/BDD: Mocks with expectations: bad?
Perhaps this is why giving mocks with expectations isn't bad:
When the sole purpose of the SUT Foo is to manipulate other objects (X and Y) in a certain way.
Writing mocks with expectations within a …
-2
votes
3
answers
873
views
TDD/BDD: Mocks with expectations: bad? [closed]
Is using mocks in the following way a bad idea:
writing tests where mocks expect certain calls from the subject under test
Or even just writing mocks that return values to the subject under test if …
0
votes
TDD, configuration management, configuration patterns (PHP)
One solution that sounds vaguely reasonable stems from this 12 factor methodology page on configuration.
The most focused guidance I have found so far is here in the 12 factor methodology. They sugge …
0
votes
5
answers
818
views
TDD, configuration management, configuration patterns (PHP)
In short, want to follow TDD best practice.
My instinct would be to have a configuration file which is read by some class. …
3
votes
1
answer
364
views
GUI functional acceptance tests, making them less brittle / obstacle to further development
(Background - skip to bold statement for the crux)
I'm working through the book "Growing Object-Oriented Software, Guided by Tests" by Freeman & Pryce, while applying it to a project I'm starting. My …
1
vote
1
answer
717
views
Behat/Mink: best practice for testing strings in a web application's GUI
I'm writing acceptance tests for a web application using Behat/Mink.
I want to know best practice for testing strings in the GUI. For example: say I want to test that a link exists on the homepage t …