wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 157

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
 
Don't get me started about those stupid light bulbs.
 
subject: Performance & Testing Framework
 
Similar Threads
Websphere Portal v5 - 347 & 348
throws Exception related question
Spring in action - Testing part
SCJP losing its shine
I need some help with a JUnit test.