• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Given/When/Then with Kiwi?

 
Nic Grange
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nic,
No answers for you, just thanks for introducing me to a BDD framework I'd never heard of. Almost make me want to try Objective C again...

Thanks!
Burk
 
John Smart
Author
Ranch Hand
Posts: 43
5
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree: Kiwi is based on RSpec - I get the same impression when using Jasmine. It seems pretty baked-in to Kiwi, though.
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nic Grange wrote:Any advice on this or how best to keep specifications consistent in ported application?

Nic,
I haven't done much porting, but from my experience, it depends on what type of porting you're doing. If you're staying on the same platform but moving to a new language then the Given-When-Thens should stay the same because you expect the behavior to be consistent. But, if you're moving from one OS to another, then (at the UI/UX level at least) you may need to reconsider how the application should behave.

I hope that helps some,
Burk
 
Nic Grange
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ouch. I haven't touched Objective C in a few years, but I'd think you could at least have the same the test names/descriptions - that should help some.

Good luck,
Burk
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic