aspose file tools*
The moose likes Groovy and the fly likes Performance & Testing Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Performance & Testing Framework" Watch "Performance & Testing Framework" New topic
Author

Performance & Testing Framework

German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 191

Hi,

is Groovy notoriously more expensive than a simple OS batch ?
I understand that running over a JVM it will have an overhead, but is it acceptable ?

Another question is regarding to testing framework.
Does it have Junit or any other testing tool ?

Regards,

Germán

http://devwebcl.blogspot.com/
Kenneth A. Kousen
gunslinger & author
Ranch Hand

Joined: Sep 18, 2002
Posts: 89
    
    5
The cost of a Groovy script is starting up the JVM. Once that's done, however, it's as fast as anything else.

You can implement JUnit tests in Groovy, or you can use Spock, which is a testing library that uses Groovy. Check out the source code repo for my book, https://github.com/kousen/Making-Java-Groovy for examples. Chapter 6 is the testing chapter.


Kenneth A. Kousen, Ph.D. (assorted certs), President, Kousen IT, Inc.
Author of Making Java Groovy - http://www.kousenit.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance & Testing Framework