github.com/data-DOG/godog@v0.7.9/godog.go (about)

     1  /*
     2  Package godog is the official Cucumber BDD framework for Golang, it merges specification
     3  and test documentation into one cohesive whole.
     4  
     5  Godog does not intervene with the standard "go test" command and it's behavior.
     6  You can leverage both frameworks to functionally test your application while
     7  maintaining all test related source code in *_test.go files.
     8  
     9  Godog acts similar compared to go test command. It uses go
    10  compiler and linker tool in order to produce test executable. Godog
    11  contexts needs to be exported same as Test functions for go test.
    12  
    13  For example, imagine you’re about to create the famous UNIX ls command.
    14  Before you begin, you describe how the feature should work, see the example below..
    15  
    16  Example:
    17  	Feature: ls
    18  	  In order to see the directory structure
    19  	  As a UNIX user
    20  	  I need to be able to list the current directory's contents
    21  
    22  	  Scenario:
    23  		Given I am in a directory "test"
    24  		And I have a file named "foo"
    25  		And I have a file named "bar"
    26  		When I run ls
    27  		Then I should get output:
    28  		  """
    29  		  bar
    30  		  foo
    31  		  """
    32  
    33  Now, wouldn’t it be cool if something could read this sentence and use it to actually
    34  run a test against the ls command? Hey, that’s exactly what this package does!
    35  As you’ll see, Godog is easy to learn, quick to use, and will put the fun back into tests.
    36  
    37  Godog was inspired by Behat and Cucumber the above description is taken from it's documentation.
    38  */
    39  package godog
    40  
    41  // Version of package - based on Semantic Versioning 2.0.0 http://semver.org/
    42  const Version = "v0.7.9"