From a5681579fbddb001f5b7118fe705c6643581c722 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 12 Jan 2021 20:04:16 +0100 Subject: make integration tests part of taler-wallet-cli --- packages/taler-wallet-cli/src/index.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'packages/taler-wallet-cli/src/index.ts') diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 87a51f30d..e4f1ccb50 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -41,6 +41,7 @@ import { } from "taler-wallet-core"; import * as clk from "./clk"; import { deepStrictEqual } from "assert"; +import { getTestInfo, runTests } from "./integrationtests/testrunner"; // This module also serves as the entry point for the crypto // thread worker, and thus must expose these two handlers. @@ -749,6 +750,25 @@ const testCli = walletCli.subcommand("testingArgs", "testing", { help: "Subcommands for testing GNU Taler deployments.", }); +testCli + .subcommand("listIntegrationtests", "list-integrationtests") + .action(async (args) => { + for (const t of getTestInfo()) { + console.log(t.name); + } + }); + +testCli + .subcommand("runIntegrationtests", "run-integrationtests") + .maybeArgument("pattern", clk.STRING, { + help: "Glob pattern to select which tests to run", + }) + .action(async (args) => { + await runTests({ + include_pattern: args.runIntegrationtests.pattern, + }); + }); + testCli.subcommand("vectors", "vectors").action(async (args) => { printTestVectors(); }); -- cgit v1.2.3