adds codecov.io report
Этот коммит содержится в:
родитель
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 @@
|
||||||
[](https://travis-ci.org/DATA-DOG/godog)
|
[](https://travis-ci.org/DATA-DOG/godog)
|
||||||
[](https://godoc.org/github.com/DATA-DOG/godog)
|
[](https://godoc.org/github.com/DATA-DOG/godog)
|
||||||
|
[](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{}
|
||||||
|
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче