@testmanlabs/testman-feature
v1.0.10
Published
A feature management library for Testman Labs
Downloads
732
Maintainers
Readme
Testman Feature
A feature management library for Testman Labs. This library helps in processing feature files for test case management with custom fields.
Installation
npm install @testmanlabs/testman-feature
Usage
import { FeatureToJSON, IFieldMaps, IFeatureElement, IFeatureScenario, IFeatureToJSON } from '@testmanlabs/testman-feature';
// Example usage
const featureData: IFeatureToJSON = FeatureToJSON('path/to/feature/file');
console.log(featureData);
API
Functions
*FeatureToJSON(filePath: string): IFeatureToJSON Converts a feature file to a JSON object.
filePath:
The path to the feature file.
Interfaces
**IFieldMaps**
Represents a map of fields.
**IFeatureElement**
Represents a feature element.
**IFeatureScenario**
Represents a feature scenario.
**IFeatureToJSON**
Extends IFeatureScenario and includes an array of IFeatureElement.