Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Scripting language for TestNG tests  RSS feed

 
clojure forum advocate
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
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
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)
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!