From 6182dc5d729b8d1cde43f93f7777181bac0dcc05 Mon Sep 17 00:00:00 2001 From: gedi Date: Wed, 10 Jun 2015 16:15:01 +0300 Subject: [PATCH] give a project name --- .gitignore | 1 + .travis.yml | 12 ++++++++++++ LICENSE | 28 ++++++++++++++++++++++++++++ README.md | 22 ++++++++++++++++++++++ cmd/{behat => godog}/main.go | 2 +- gherkin/ast.go | 2 +- gherkin/ast_test.go | 2 +- gherkin/parse.go | 2 +- gherkin/parse_feature_test.go | 2 +- gherkin/parse_steps_test.go | 2 +- gherkin/parse_test.go | 2 +- runner.go | 2 +- steps.go | 2 +- 13 files changed, 72 insertions(+), 9 deletions(-) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 README.md rename cmd/{behat => godog}/main.go (52%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6b9e24 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cmd/godog/godog diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..523ab9d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: go +go: + - 1.3 + - 1.4 + - release + - tip + +script: + - go get -t ./... + + - go test -v ./... + - go test -race ./... diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f767265 --- /dev/null +++ b/LICENSE @@ -0,0 +1,28 @@ +The three clause BSD license (http://en.wikipedia.org/wiki/BSD_licenses) + +Copyright (c) 2015, DataDog.lt team +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* The name DataDog.lt may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d0fdfff --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# Godog + +**Godog** is an open source behavior-driven development framework for [golang][golang] programming language. +What is behavior-driven development, you ask? It’s the idea that you start by writing human-readable sentences that +describe a feature of your application and how it should work, and only then implement this behavior in software. + +The project is inspired by [behat][behat] and [cucumber][cucumber] and is based on cucumber [gherkin specification][gherkin]. + +### Be aware that + +The work is still in progress and is not functional yet, neither it is intended for production usage. +The general public API may brake. + +### License + +Licensed under the [three clause BSD license][license] + +[golang]: https://golang.org/ "GO programming language" +[behat]: http://docs.behat.org/ "Behavior driven development framework for PHP" +[cucumber]: https://cucumber.io/ "Behavior driven development framework for Ruby" +[gherkin]: https://cucumber.io/docs/reference "Gherkin feature file language" +[license]: http://en.wikipedia.org/wiki/BSD_licenses "The three clause BSD license" diff --git a/cmd/behat/main.go b/cmd/godog/main.go similarity index 52% rename from cmd/behat/main.go rename to cmd/godog/main.go index 7905807..1e96901 100644 --- a/cmd/behat/main.go +++ b/cmd/godog/main.go @@ -1,5 +1,5 @@ package main func main() { - + // well, not runnable yet } diff --git a/gherkin/ast.go b/gherkin/ast.go index 7ffc7f7..2866031 100644 --- a/gherkin/ast.go +++ b/gherkin/ast.go @@ -1,6 +1,6 @@ package gherkin -import "github.com/l3pp4rd/go-behat/gherkin/lexer" +import "github.com/DATA-DOG/godog/gherkin/lexer" type item struct { next, prev *item diff --git a/gherkin/ast_test.go b/gherkin/ast_test.go index 52059a0..eda2f9b 100644 --- a/gherkin/ast_test.go +++ b/gherkin/ast_test.go @@ -3,7 +3,7 @@ package gherkin import ( "testing" - "github.com/l3pp4rd/go-behat/gherkin/lexer" + "github.com/DATA-DOG/godog/gherkin/lexer" ) func (a *AST) assertMatchesTypes(expected []lexer.TokenType, t *testing.T) { diff --git a/gherkin/parse.go b/gherkin/parse.go index 77a40a2..06e2fec 100644 --- a/gherkin/parse.go +++ b/gherkin/parse.go @@ -7,7 +7,7 @@ import ( "strings" "unicode" - "github.com/l3pp4rd/go-behat/gherkin/lexer" + "github.com/DATA-DOG/godog/gherkin/lexer" ) type Tag string diff --git a/gherkin/parse_feature_test.go b/gherkin/parse_feature_test.go index c8ae653..6dc2cd7 100644 --- a/gherkin/parse_feature_test.go +++ b/gherkin/parse_feature_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/l3pp4rd/go-behat/gherkin/lexer" + "github.com/DATA-DOG/godog/gherkin/lexer" ) var testFeatureSamples = map[string]string{ diff --git a/gherkin/parse_steps_test.go b/gherkin/parse_steps_test.go index 8ccd15c..ad669cc 100644 --- a/gherkin/parse_steps_test.go +++ b/gherkin/parse_steps_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/l3pp4rd/go-behat/gherkin/lexer" + "github.com/DATA-DOG/godog/gherkin/lexer" ) var testStepSamples = map[string]string{ diff --git a/gherkin/parse_test.go b/gherkin/parse_test.go index a073e1c..38abf0c 100644 --- a/gherkin/parse_test.go +++ b/gherkin/parse_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/l3pp4rd/go-behat/gherkin/lexer" + "github.com/DATA-DOG/godog/gherkin/lexer" ) func (s *Scenario) assertHasTag(tag string, t *testing.T) { diff --git a/runner.go b/runner.go index 6832c0f..5d7c8c5 100644 --- a/runner.go +++ b/runner.go @@ -1 +1 @@ -package behat +package godog diff --git a/steps.go b/steps.go index 6b8186e..b973f28 100644 --- a/steps.go +++ b/steps.go @@ -1,4 +1,4 @@ -package behat +package godog import "regexp"