Nic Grange

Greenhorn
+ Follow
since Sep 04, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
6
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nic Grange

Some great advice so far.
Just to add another point, whether you use TDD/BDD for legacy code, it is likely that your biggest challenge will be actually making your code testable.
10 years ago
Thanks for the responses.

Burk,
In this case, the ported application needs to behave exactly the same on different OS's so I was hoping that the specification could look almost the same across the different languages/frameworks even if the code doesn't. Seems easy with Java and C# but Objective-C/iOS always has to be difficult.
10 years ago
First time i win something in ages and i already have it . Anyway no point having 2 copies. Looking forward to more chapters coming out..
10 years ago
After getting comfortable with Given/When/Then style with Spock, trying out Kiwi for iOS and having to use RSpec style seems to be taking a step backwards (similar to using XCode :-) ).
I see that RSpec has an extension for Given/When/Then but i couldn't see anything for Kiwi.
Any advice on this or how best to keep specifications consistent in ported application?
10 years ago
BDD framework 'Spock' allows you to specify multiple 'when'/'then' blocks but should they be used or are they evil?

I've seen a person using it but it doesn't look right as it seems it should be broken down into multiple tests.
The specific scenario was writing a specification to delete a file. The first when/then creates to the files to be deleted and checks it exists then the second when/then deletes the file and check it doesn't exist.

10 years ago