feat: add conformance tests for SEP-1699 SSE polling (#47)
This commit is contained in:
parent
314f0f6d89
commit
f0e948187d
1 changed files with 1938 additions and 337 deletions
|
|
@ -204,11 +204,14 @@ program
|
|||
'Suite to run: "active" (default, excludes pending), "all", or "pending"',
|
||||
'active'
|
||||
)
|
||||
.option('--verbose', 'Show verbose output (JSON instead of pretty print)')
|
||||
.action(async (options) => {
|
||||
try {
|
||||
// Validate options with Zod
|
||||
const validated = ServerOptionsSchema.parse(options);
|
||||
|
||||
const verbose = options.verbose ?? false;
|
||||
|
||||
// If a single scenario is specified, run just that one
|
||||
if (validated.scenario) {
|
||||
const result = await runServerConformanceTest(
|
||||
|
|
@ -218,7 +221,8 @@ program
|
|||
|
||||
const { failed } = printServerResults(
|
||||
result.checks,
|
||||
result.scenarioDescription
|
||||
result.scenarioDescription,
|
||||
verbose
|
||||
);
|
||||
process.exit(failed > 0 ? 1 : 0);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue