Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
My TickSpec.xunit boilerplate (just add .feature files as EmbeddedResources and group them into XXXFeatures.fs as in the example DiagnosticFeatures.fs file)
open TickSpec
open Features
module DiagnosticFeatures =
let ConnectivityFeature () =
generateScenariosFromEmbeddedFeatureFile "Connectivity"
let VersionFeature () =
generateScenariosFromEmbeddedFeatureFile "Version"
let IntegrityFeature () =
generateScenariosFromEmbeddedFeatureFile "Integrity"
open TickSpec
module Features =
let assembly = System.Reflection.Assembly.GetExecutingAssembly()
let stepDefinitions = new StepDefinitions(assembly.GetExportedTypes())
let generateScenariosFromEmbeddedFeatureFile embeddedDotFeatureFilename =
let source = embeddedDotFeatureFilename + ".feature"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.