Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spock versus easyb

I just had brief looks at easyb and spock , both seem to be similar, however spock seems to be more technically oriented, is there any best practice regarding when to use which ?

For example which should one preferred for a new grails project ? which should one preferred for a legacy java project for which automated tests just need to be written ? is one more suited for integration tests than the other ?

Things of that sort ..

Thanks Sudarshan

like image 241
Sudarshan Avatar asked Mar 17 '11 19:03

Sudarshan


1 Answers

Spock vs EasyB Spock is a BDD inspired framework that gives devs tools to make their lives easier. EasyB is a great way to capture requirements and build the acceptance tests. EasyB scenarios can be stories, and can leave them blank to make them descriptive stories. Then start adding closure code and can put in selenium, etc. (source)

While browsing the web I've seen opinions that EasyB has some usability issues that are still being puzzled out. Moreover I was able to find much more articles, tutorials, etc on Spock than EasyB which seems to be less popular.

Spock is based on JUnit so running the test cases for regular Java projects is as easy as running any regular JUnit tests, be it from an IDE or continuous integration servers. Take a look at Testing with Spock.

To conclude, I'd stick to Spock.

like image 126
Aoi Karasu Avatar answered Sep 19 '22 15:09

Aoi Karasu