Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scripting language for TestNG tests

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Is it possible to write TestNG unit tests in a JVM compatible languages like Groovy or Jython?
Thanks.
 
Cedric Beust
author
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

Originally posted by John Todd:
Hi.
Is it possible to write TestNG unit tests in a JVM compatible languages like Groovy or Jython?
Thanks.


This can only work if the scripting language supports annotations, since this is how TestNG identifies methods of interest.

I know that Groovy supports annotations, and Alexandru (who's working with me on TestNG) wrote the TestNG-Groovy integration, so yes, you can write TestNG tests with Groovy.

I'm not aware of any other JVM compatible language that supports annotations, though...

--
Cwseix
 
Cedric Beust
author
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, Cwseix is the name I use when I try to sign my name with a coffee cup between me and the keyboard.

--
Cedric
(I moved the cup out of the way this time)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic