Skip to content

Commit

Permalink
Merge pull request #73 from jsGiven/fixup_generate_jgiven_report
Browse files Browse the repository at this point in the history
Fixup generate jgiven report
  • Loading branch information
flegall committed Oct 9, 2016
2 parents eafa171 + 65163dc commit be41930
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions js-given/src/generateJGivenReport.js
Expand Up @@ -15,13 +15,18 @@ import type {StepModel} from './jgivenReport/StepModel';
export const JGIVEN_APP_VERSION = '0.12.1';

export default async function start(): Promise<void> {
console.log('Installing JGiven report app');
await installJGivenReportApp();
console.log('Done installing JGiven report app');

console.log('Generating JGiven report data');
generateJGivenReportDataFiles();
console.log('Done generating JGiven report data');
try {
console.log('Installing JGiven report app');
await installJGivenReportApp();
console.log('Done installing JGiven report app');

console.log('Generating JGiven report data');
generateJGivenReportDataFiles();
console.log('Done generating JGiven report data');
} catch (error) {
console.log(error);
process.exit(-1);
}
}

export async function installJGivenReportApp(reportPrefix: string = '.'): Promise<void> {
Expand Down

0 comments on commit be41930

Please sign in to comment.