Header menu logo FCQRS

FeatureTest Module

 TickSpec -> Expecto bridge. Feature files load from embedded resources in
 the CALLER's assembly and scenarios group by their Gherkin `Rule:` into
 nested test lists.

 Focus and pending are driven by Gherkin tags — TickSpec merges feature-
 and rule-level tags into every scenario's Tags, so the tag works at any
 level:
   @focus    -> Expecto Focused (only focused tests run; the rest report
                as skipped)
   @pending  -> Expecto Pending (never runs, reported as pending)
 A feature whose scenarios are ALL pending (e.g. one `@pending` above
 `Feature:`) is built from its parsed SOURCE without binding any steps, so
 a spec written ahead of its implementation joins the suite as pending
 scenarios instead of failing step binding. Scenario-level `@pending`
 still requires the feature's other steps to bind. The legacy `_` name
 prefix also focuses a feature or scenario.

 Every entry point takes the assembly holding the steps and feature
 resources explicitly. Resolving it here (GetExecutingAssembly) would bind
 to THIS library once it ships as a compiled package, silently scanning an
 assembly with no steps — pass your test assembly instead, typically
 `Assembly.GetExecutingAssembly()` at the call site.

Functions and values

Function or value Description

createTest assembly resourcePrefix baseFeatureName

Full Usage: createTest assembly resourcePrefix baseFeatureName

Parameters:
    assembly : Assembly
    resourcePrefix : string
    baseFeatureName : string

Returns: Test
 Test tree for `{resourcePrefix}.{baseFeatureName}.feature` embedded in
 `assembly` — steps are discovered in the same assembly:
   createTest (Assembly.GetExecutingAssembly()) "MyApp" "login"
assembly : Assembly
resourcePrefix : string
baseFeatureName : string
Returns: Test

featureFromEmbeddedResource assembly fullResourceName

Full Usage: featureFromEmbeddedResource assembly fullResourceName

Parameters:
    assembly : Assembly
    fullResourceName : string

Returns: Feature

Parse one feature from an embedded resource, binding its steps to definitions found in the same assembly.

assembly : Assembly
fullResourceName : string
Returns: Feature

testListFromFeature feature

Full Usage: testListFromFeature feature

Parameters:
Returns: Test

Expecto test tree for a BOUND feature: scenarios grouped by `Rule:`, focus/pending from tags and the `_` prefix.

feature : Feature
Returns: Test

Type something to start searching.