Skip to content

Commit abd46f1

Browse files
committed
add setup tests
Signed-off-by: shmck <[email protected]>
1 parent 16e42f1 commit abd46f1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/validate.ts

+14-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ async function validate(args: string[]) {
111111
// run test
112112
console.info("Running setup test");
113113
// expect fail
114-
// await runTest();
114+
const { stdout, stderr } = await runTest();
115+
if (stdout) {
116+
console.error(
117+
`Expected ${step.id} setup tests to fail, but passed`
118+
);
119+
console.log(stdout);
120+
}
115121
}
116122

117123
if (stepSolutionCommits) {
@@ -129,7 +135,13 @@ async function validate(args: string[]) {
129135
// run test
130136
console.info("Running solution test");
131137
// expect pass
132-
await runTest();
138+
const { stdout, stderr } = await runTest();
139+
if (stderr) {
140+
console.error(
141+
`Expected ${step.id} solution tests to pass, but failed`
142+
);
143+
console.log(stderr);
144+
}
133145
}
134146
}
135147
}

0 commit comments

Comments
 (0)