Search code examples
lualua-busted

Is there a way to run a Busted test suite in parallel?


The test suite for my Lua project is split up into multiple files inside the spec/ directory. Is there a way to ask busted to run those tests in parallel? If I call busted without any arguments it runs all the tests sequentially.


Solution

  • One thing that seems to work is to use GNU Parallel to run multiple test scripts at once.

    parallel busted -o utfTerminal ::: spec/*_spec.lua
    

    The -o utfTerminal is to tell busted to use the familiar "green circles" output instead of the simplified text output it uses when its stdout is redirected.