gpc-scenario-outline-numbering
v1.0.0
Published
This precompiler can add numbering column to Examples tables, and apply formatting to the name of the Scenario Outline.
Downloads
2
Readme
gpc-scenario-outline-numbering
This precompiler can add numbering column to Examples tables, and apply formatting to the name of the Scenario Outline.
Usage
'use strict';
const compiler = require('gherking');
const ScenarioOutlineNumbering = require('gpc-scenario-outline-numbering');
let ast = await compiler.load('./features/src/login.feature');
ast = compiler.process(
ast,
new ScenarioOutlineNumbering({
// config
})
);
await compiler.save('./features/dist/login.feature', ast, {
lineBreak: '\r\n'
});
'use strict';
import {load, process, save} from "gherking";
import ScenarioOutlineNumbering = require("gpc-scenario-outline-numbering");
let ast = await load("./features/src/login.feature");
ast = process(
ast,
new ScenarioOutlineNumbering({
// config
})
);
await save('./features/dist/login.feature', ast, {
lineBreak: '\r\n'
});
This package uses debug for logging, use gpc:scenario-outline-numbering
:
DEBUG=gpc:scenario-outline-numbering* gherking ...
For detailed documentation see the TypeDocs documentation.