Search code examples
mavenintegrationlua-busted

Integrating Busted tests into a Maven build cycle


My recent task at work is to look into integrating some tests we built for our custom Kong API Gateway plugins into our standard Maven build.

The build currently just moves configuration scripts to the right place, packages the plugins in such a way that our version of the gateway can be easily deployed with a shell script.

The tests are written in Busted, and a bit of research showed that around two years ago it wasn't possible to run Busted tests with the standard Maven plugins. Is this still not possible in 2016?

Many thanks.


Solution

  • The current solution:

    Busted's output handler is configurable to allow output in multiple formats. One of these formats is TAP (Test Anything Protocol) which is easily parsed by various Maven plugins.