GINT - Groovy Integration Test Framework

Gint Version 3 Is Here!

View this short presentation (1 minute) to learn more about it. Version 3 will be documented on a new web site and this current site will remain representing the documentation for versions prior to version 3. We will also be archiving the listing on the Atlassian Marketplace.

Gint Version 2 is Deprecated

  • Atlassian Marketplace listing has been archived: See the archived site for downloads.
  • Gint is not longer available from this website. The old Mercurial repository on Bitbucket Cloud was removed as part of Mercurial removal from Bibucket Cloud removal of Mercurial support.

Description

This add-on is a Groovy based integration test framework. Tests are Groovy scripts with testcase definitions. The framework is targeted at integration level testing of software supporting a command line interface (CLI), accessible via groovy scripts, or Selenium. The framework can also be used for unit and integration testing of Java, Groovy, and Gant code. A declarative style simplifies many test scenarios and the full power of Groovy scripting makes more complex test scenarios possible as well. Parallel execution of testcases significantly reduces run time, enabling more frequent use and more timely feedback for continuous integration (CI) environments.

Key Attributes

The following summarizes the key attributes that are fundamental to GINT.

  1. Groovy - powerful capabilities, concise syntax, easy adoption for Java programmers. Simple where that is sufficient. Fully extendable to cover more difficult and complex cases often encountered in integration level testing. 
  2. Integration testing - testing complete programs from the outside. Unit testing is not sufficient and unit test based tools and frameworks are overly complex and lack specific features for productive integration level testing.
  3. Agile methodology - supporting the practices of Test Driven Development, Acceptance Testing, and Continuous Integration.


Features

Examples

More Information

Related Add-ons

BGTP

  • GINT task making it easier to run GINT tests in Bamboo

Gallery

Continuous Integration with Bamboo

 

simple.gant
@Grab(group='org.swift.tools', module='gint', version='2.4.0') 
import org.swift.tools.*
includeTool << Gint

gint.initialize(this) // required

gint.add(name: 'simple1', inline: { assert 1 == 1 })

gint.finalizeTest() // final preparations for running tests
Run
gant -f simple.gant
Output
= = = = = =   simple started at Fri Feb 25 18:16:05 CST 2011   = = = = = =

    [start] simple1
   [ending] simple1
 [complete] simple1 - 0.017 secs


     [info] Successful testcases  . . . . . . . . . . : 1    <<< TEST SUCCESSFUL
     [info] Total testcases . . . . . . . . . . . . . : 1
     [info] Elapsed run time  . . . . . . . . . . . . : 0.925 secs 

= = = = = =   simple completed at Fri Feb 25 18:16:05 CST 2011 = = = = = =

© 2005 -2022 gint.org