Этот коммит содержится в:
gedi 2016-12-03 12:12:30 +02:00
родитель 2e189ad0f9
коммит 601d087173
3 изменённых файлов: 23 добавлений и 4 удалений

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

@ -5,14 +5,15 @@ go:
- 1.7 - 1.7
- tip - tip
go_import_path: github.com/DATA-DOG/godog
install: go install github.com/DATA-DOG/godog/cmd/godog install: go install github.com/DATA-DOG/godog/cmd/godog
script: script:
# run standard go tests # run standard go tests
- go vet ./... - go vet ./...
- go fmt ./... - go fmt ./...
- go test -v - go test -race -coverprofile=coverage.txt -covermode=atomic
- go test -race
# run features after_success:
- godog --format=progress --concurrency=4 - bash <(curl -s https://codecov.io/bash)

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

@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/DATA-DOG/godog.svg?branch=master)](https://travis-ci.org/DATA-DOG/godog) [![Build Status](https://travis-ci.org/DATA-DOG/godog.svg?branch=master)](https://travis-ci.org/DATA-DOG/godog)
[![GoDoc](https://godoc.org/github.com/DATA-DOG/godog?status.svg)](https://godoc.org/github.com/DATA-DOG/godog) [![GoDoc](https://godoc.org/github.com/DATA-DOG/godog?status.svg)](https://godoc.org/github.com/DATA-DOG/godog)
[![codecov.io](https://codecov.io/github/DATA-DOG/godog/branch/master/graph/badge.svg)](https://codecov.io/github/DATA-DOG/godog)
# Godog # Godog

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

@ -4,13 +4,30 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt" "fmt"
"os"
"path/filepath" "path/filepath"
"strconv" "strconv"
"strings" "strings"
"testing"
"github.com/DATA-DOG/godog/gherkin" "github.com/DATA-DOG/godog/gherkin"
) )
func TestMain(m *testing.M) {
status := RunWithOptions("godogs", func(s *Suite) {
SuiteContext(s)
}, Options{
Format: "progress",
Paths: []string{"features"},
Concurrency: 4,
})
if st := m.Run(); st > status {
status = st
}
os.Exit(status)
}
func SuiteContext(s *Suite) { func SuiteContext(s *Suite) {
c := &suiteContext{} c := &suiteContext{}