20 lines
443 B
C++
20 lines
443 B
C++
#include "Test.h"
|
|
#include "lib/testing/catch_test_runner.h"
|
|
|
|
namespace bts::cmds {
|
|
|
|
static std::vector<std::string> args;
|
|
|
|
static void execute() { run_tests(args); }
|
|
|
|
void Test::register_cmd(CLI::App &app) {
|
|
auto *cmd = app.add_subcommand(
|
|
"test",
|
|
"See "
|
|
"https://github.com/philsquared/Catch/blob/master/docs/command-line.md");
|
|
cmd->add_option("args", args);
|
|
cmd->callback(execute);
|
|
}
|
|
|
|
} // namespace bts::cmds
|