From 44b2cb9b0136634643d343251b870aa349d570cc Mon Sep 17 00:00:00 2001 From: szymonprz Date: Fri, 11 Aug 2017 17:21:16 +0200 Subject: [PATCH] json formatter: add type to scenario (#893) --- src/formatter/json_formatter.js | 3 ++- src/formatter/json_formatter_spec.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/formatter/json_formatter.js b/src/formatter/json_formatter.js index 59386bcf3..a10026397 100644 --- a/src/formatter/json_formatter.js +++ b/src/formatter/json_formatter.js @@ -123,7 +123,8 @@ export default class JsonFormatter extends Formatter { keyword: 'Scenario', line: pickle.locations[0].line, name: pickle.name, - tags: this.getTags(pickle) + tags: this.getTags(pickle), + type: 'scenario' } } diff --git a/src/formatter/json_formatter_spec.js b/src/formatter/json_formatter_spec.js index 39d63f621..175c941c3 100644 --- a/src/formatter/json_formatter_spec.js +++ b/src/formatter/json_formatter_spec.js @@ -85,6 +85,7 @@ describe('JsonFormatter', function() { keyword: 'Scenario', line: 4, name: 'my scenario', + type: 'scenario', steps: [ { arguments: [],