开发者

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 fo开发者_如何转开发r which automated tests just need to be written ? is one more suited for integration tests than the other ?

Things of that sort ..

Thanks Sudarshan


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜