Skip to content

build tags? #154

@johnknl

Description

@johnknl

I separate different kinds of tests using build tags, eg:

// +build functional

package main

import (
	"fmt"
	"github.com/DATA-DOG/godog"
)
...
func FeatureContext(s *godog.Suite) {
	s.Step(`^there are (\d+) godogs$`, thereAreGodogs)
	s.Step(`^I eat (\d+)$`, iEat)
	s.Step(`^there should be (\d+) remaining$`, thereShouldBeRemaining)

	s.BeforeScenario(func(interface{}) {
		Godogs = 0 // clean the state before every scenario
	})
}
...

when I run godog without args, it cannot find the context initializer. Is there any way to make this work with godog?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions