harness: mark some tests as experimental
This commit is contained in:
parent
598de5b0d5
commit
785f8163ca
@ -229,7 +229,6 @@ deploymentConfigCli
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
testingCli.subcommand("logtest", "logtest").action(async (args) => {
|
||||
logger.trace("This is a trace message.");
|
||||
logger.info("This is an info message.");
|
||||
@ -248,6 +247,9 @@ testingCli
|
||||
if (t.excludeByDefault) {
|
||||
s += ` [excluded by default]`;
|
||||
}
|
||||
if (t.experimental) {
|
||||
s += ` [experimental]`;
|
||||
}
|
||||
console.log(s);
|
||||
}
|
||||
});
|
||||
@ -263,6 +265,9 @@ testingCli
|
||||
.flag("dryRun", ["--dry"], {
|
||||
help: "Only print tests that will be selected to run.",
|
||||
})
|
||||
.flag("experimental", ["--experimental"], {
|
||||
help: "Include tests marked as experimental",
|
||||
})
|
||||
.flag("quiet", ["--quiet"], {
|
||||
help: "Produce less output.",
|
||||
})
|
||||
@ -272,6 +277,7 @@ testingCli
|
||||
suiteSpec: args.runIntegrationtests.suites,
|
||||
dryRun: args.runIntegrationtests.dryRun,
|
||||
verbosity: args.runIntegrationtests.quiet ? 0 : 1,
|
||||
includeExperimental: args.runIntegrationtests.experimental ?? false,
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -202,3 +202,5 @@ export async function runKycTest(t: GlobalTestState) {
|
||||
}
|
||||
|
||||
runKycTest.suites = ["wallet"];
|
||||
// See bugs.taler.net/n/7599
|
||||
runKycTest.experimental = true;
|
@ -166,3 +166,5 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) {
|
||||
}
|
||||
|
||||
runWalletBackupBasicTest.suites = ["wallet", "wallet-backup"];
|
||||
// See https://bugs.taler.net/n/7598
|
||||
runWalletBackupBasicTest.experimental = true;
|
||||
|
@ -172,3 +172,5 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) {
|
||||
}
|
||||
|
||||
runWalletBackupDoublespendTest.suites = ["wallet", "wallet-backup"];
|
||||
// See https://bugs.taler.net/n/7598
|
||||
runWalletBackupDoublespendTest.experimental = true;
|
||||
|
@ -111,6 +111,7 @@ interface TestMainFunction {
|
||||
(t: GlobalTestState): Promise<void>;
|
||||
timeoutMs?: number;
|
||||
excludeByDefault?: boolean;
|
||||
experimental?: boolean;
|
||||
suites?: string[];
|
||||
}
|
||||
|
||||
@ -194,6 +195,7 @@ export interface TestRunSpec {
|
||||
includePattern?: string;
|
||||
suiteSpec?: string;
|
||||
dryRun?: boolean;
|
||||
includeExperimental: boolean;
|
||||
verbosity: number;
|
||||
}
|
||||
|
||||
@ -201,6 +203,7 @@ export interface TestInfo {
|
||||
name: string;
|
||||
suites: string[];
|
||||
excludeByDefault: boolean;
|
||||
experimental: boolean;
|
||||
}
|
||||
|
||||
function updateCurrentSymlink(testDir: string): void {
|
||||
@ -284,6 +287,9 @@ export async function runTests(spec: TestRunSpec) {
|
||||
if (testCase.excludeByDefault) {
|
||||
continue;
|
||||
}
|
||||
if (testCase.experimental && !spec.includeExperimental) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (spec.dryRun) {
|
||||
@ -441,6 +447,7 @@ export function getTestInfo(): TestInfo[] {
|
||||
name: getTestName(x),
|
||||
suites: x.suites ?? [],
|
||||
excludeByDefault: x.excludeByDefault ?? false,
|
||||
experimental: x.experimental ?? false,
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user