Skip to content
Permalink
Browse files
fix(reporting): do not include the tags in the name of the json repor…
…t if the scenario doesn't have

affects: @serenity-js/core
  • Loading branch information
jan-molak committed Sep 27, 2017
1 parent 9fdbea0 commit 1b0371ea306e5aa299145f6f7a40fb7ba52cffd8
Showing 1 changed file with 1 addition and 1 deletion.
@@ -58,7 +58,7 @@ export class SerenityBDDReporter implements StageCrewMember {

function reportFileNameFor(scene: SceneReport): string {
const id = scene.id,
tags = scene.tags.map(t => `${t.type}:${t.name}`).join('-');
tags = (scene.tags || []).map(t => `${t.type}:${t.name}`).join('-');

return Md5.hashStr(`${id}-${tags}`) + '.json';
}

0 comments on commit 1b0371e

Please sign in to comment.