Skip to content

This precompiler can add numbering column to Examples tables, and apply formatting to the name of the Scenario Outline.

License

Notifications You must be signed in to change notification settings

gherking/gpc-scenario-outline-numbering

Repository files navigation

gpc-scenario-outline-numbering

Downloads Version@npm Version@git CI Docs

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.