1.0.10 • Published 4 months ago

custom-gherkin-utils v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Custom Gherkin Utils šŸ„’

šŸš€ Custom Gherkin Utils is a utility for processing Gherkin feature files, designed to:

  • Split feature files into multiple files when they contain multiple Scenario Outlines
  • Convert Scenario Outlines into Scenarios by replacing example placeholders- Preserve all Gherkin capabilities

šŸ“Œ Features

āœ”ļø Converts Scenario Outline to Scenario
āœ”ļø Replaces <placeholders> with Example values
āœ”ļø Preserves Feature and Scenario Tags
āœ”ļø Keeps Background steps intact
āœ”ļø Maintains Data Tables (| column | value |)
āœ”ļø Preserves Doc Strings (""" text """)
āœ”ļø Handles Rule: blocks properly
āœ”ļø Removes Examples: after conversion
āœ”ļø Includes Jest tests for validation


šŸ”§ Usage

import { processFeatureFiles, performSetup } from "custom-gherkin-utils";

async function run() {
  await performSetup({cleanTmpSpecDirectory: true, sourceSpecDirectory:'./samplefiles',tmpSpecDirectory:'./tmp', tagExpression: '@ruleTag3' }); // Split feature files in to individual ones
  
  await processFeatureFiles("./features/**/*.feature");  // Convert scenario outlines to scenario by replacing place holders
}

run();
1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.10

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago