• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Scripting language for TestNG tests  RSS feed

 
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 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.
 
author
Ranch Hand
Posts: 46
  • 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
  • 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)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!