Skip to content

Fix error-expecting test handling in CLI and server runners - #105

Open
bryantaustin13 wants to merge 1 commit into
cqframework:mainfrom
bryantaustin13:error-expecting-tests
Open

Fix error-expecting test handling in CLI and server runners#105
bryantaustin13 wants to merge 1 commit into
cqframework:mainfrom
bryantaustin13:error-expecting-tests

Conversation

@bryantaustin13

Copy link
Copy Markdown
Contributor

Outputless tests marked invalid="true"/"semantic" are no longer skipped —
they expect an engine error. Add responseIndicatesError() to detect errors
via a non-2xx status or an "evaluation error" parameter, and route both the
CLI (test-runner) and server (test-execution-service) paths through it;
guard cvl.parse against an undefined expected value.

Also set axios validateStatus so the CLI no longer throws on non-2xx,
matching the fetch path (a non-2xx previously scored "error" on the CLI but
"pass"/"fail" on the server).

Update run-tests.test.ts to build the results-shared mock from importActual
so the new responseIndicatesError export survives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant