UNPKG

cucumber-to-junit

Version:

Converts [Cucumber.js](https://github.com/cucumber/cucumber-js) json results files to JUnit XML.

23 lines (22 loc) 530 B
export interface StepResult { status: StepStatus; duration: number; error_message?: string; } export interface Step { result: StepResult; } export interface Scenario { id: string; name: string; steps: Step[]; } export interface Feature { name: string; elements: Scenario[]; } export declare type StepStatus = 'passed' | 'failed' | 'undefined' | 'skipped'; export declare type ScenarioType = 'scenario' | 'background'; export interface Scenario { type: ScenarioType; }