Child pages
  • Developing with iTest
Skip to end of metadata
Go to start of metadata


iTest is the main testing concept used in the Apache Bigtop framework. iTest is divided into two modules, test-artifacts and test-execution. Test artifacts contain the tests, written in or deployed by Groovy. Test-execution contains the pom.xml file that contains the instructions on running the test. iTest will automatically build and run all the tests contained within the directory when build is run.

Running the test:

1. mvn -f bigtop-tests/test-execution/smokes/yourtest/pom.xml clean
2. mvn -f bigtop-tests/test-artifacts/yourtest/pom.xml clean install
3. mvn -f bigtop-tests/test-execution/smokes/yourtest/pom.xml verify

Creating a test:

If Groovy test, place test in bigtop-tests/test-artifacts/smokes/.../yourtest

If other test, execute the test through Groovy script test. Under bigtop-tests/test-artifacts/smokes/.../yourtest/, you will find three methods:

@BeforeClass -> test set up/deployment
@AfterClass -> test tear down
@Test -> contains the code that drives the test

and executes them in the following order:
1. @BeforeClass
2. @Test
3. @AfterClass

You can execute any test by using Shell.exec(). There should be a Groovy file for each test. Check bigtop-tests/test-artifacts/... for examples.

  • No labels