1.0.10 • Published 10 months ago

custom-gherkin-utils v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.10

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago