adds codecov.io report
Этот коммит содержится в:
родитель
2e189ad0f9
коммит
601d087173
3 изменённых файлов: 23 добавлений и 4 удалений
|
@ -5,14 +5,15 @@ go:
|
|||
- 1.7
|
||||
- tip
|
||||
|
||||
go_import_path: github.com/DATA-DOG/godog
|
||||
|
||||
install: go install github.com/DATA-DOG/godog/cmd/godog
|
||||
|
||||
script:
|
||||
# run standard go tests
|
||||
- go vet ./...
|
||||
- go fmt ./...
|
||||
- go test -v
|
||||
- go test -race
|
||||
- go test -race -coverprofile=coverage.txt -covermode=atomic
|
||||
|
||||
# run features
|
||||
- godog --format=progress --concurrency=4
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[](https://travis-ci.org/DATA-DOG/godog)
|
||||
[](https://godoc.org/github.com/DATA-DOG/godog)
|
||||
[](https://codecov.io/github/DATA-DOG/godog)
|
||||
|
||||
# Godog
|
||||
|
||||
|
|
|
@ -4,13 +4,30 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"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) {
|
||||
c := &suiteContext{}
|
||||
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче