Toad World® Forums

Running Test Suite from Command Line and exporting results into ANT or JUNIT


#1

I am doing some evaluation of PL/SQL Unit Test options and I wondered if it’s possible to run a test suite from the command line and export the results (pass / fails) in a standard unit test output format such as JUNIT or ANT?

I need this as I would like to build this process into our TeamCity nightly build and report any unit test that have failed from within TeamCity.

Thanks for any help.

Duncs


#2

It is possible to run the Code Tester (CTO) from a command line or from a PL/SQL program, depending on your specific needs.

There are a few documents regarding continuous integration - project building and deploying process. First the detailed Continuous Integration document:

http://www.toadworld.com/products/code-tester/b/weblog/archive/2010/01/13/continuous-integration.aspx

http://www.toadworld.com/products/code-tester/b/weblog/archive/2011/02/13/continuous-integration-part-2.aspx

Recently another document suitable for a quick start appeared:

http://www.toadworld.com/products/code-tester/b/weblog/archive/2014/10/29/continuous-integration-code-tester-and-the-build-process.aspx

Summing up, there are two kinds of running tests in continuous integration environments:

  1. Command line interface - MS Windows installation is required.

  2. PL/SQL programs from the CTO repository - the Oracle database client software is required.

Best regards,

Ferdinand