Этот коммит содержится в:
gedi 2015-06-10 16:15:01 +03:00
родитель aa08819bb3
коммит 6182dc5d72
13 изменённых файлов: 72 добавлений и 9 удалений

1
.gitignore предоставленный Обычный файл
Просмотреть файл

@ -0,0 +1 @@
/cmd/godog/godog

12
.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 ./...

28
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.

22
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? Its 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"

Просмотреть файл

@ -1,5 +1,5 @@
package main
func main() {
// well, not runnable yet
}

Просмотреть файл

@ -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

Просмотреть файл

@ -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) {

Просмотреть файл

@ -7,7 +7,7 @@ import (
"strings"
"unicode"
"github.com/l3pp4rd/go-behat/gherkin/lexer"
"github.com/DATA-DOG/godog/gherkin/lexer"
)
type Tag string

Просмотреть файл

@ -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{

Просмотреть файл

@ -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{

Просмотреть файл

@ -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) {

Просмотреть файл

@ -1 +1 @@
package behat
package godog

Просмотреть файл

@ -1,4 +1,4 @@
package behat
package godog
import "regexp"