Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/framework/Reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class ScenarioResult {
public results: Result[] = [];
public error?: Error;


constructor(test: TestScenario, testee: Testee) {
this.test = test;
this.testee = testee;
Expand Down
10 changes: 6 additions & 4 deletions src/framework/Testee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,16 @@ export class Testee { // TODO unified with testbed interface
} catch (e) {
await testee.initialize(description.program, description.args ?? []).catch((o) => Promise.reject(o));
}
}).catch((e: Error) => {
scenarioResult.error = e;
}).catch((e: Error|string) => {
if(typeof e === 'string') scenarioResult.error = new Error(e);
else scenarioResult.error = e;
});

await this.run('Get source mapping', testee.connector.timeout, async function () {
map = await testee.mapper.map(description.program);
}).catch((e: Error) => {
scenarioResult.error = e;
}).catch((e: Error|string) => {
if(typeof e === 'string') scenarioResult.error = new Error(e);
else scenarioResult.error = e;
});

if (scenarioResult.error) {
Expand Down