Skip to content

Commit

Permalink
feat: output a test_result files per testsuite (#560)
Browse files Browse the repository at this point in the history
* feat: output a test_result files per testsuite

close #441

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>

* feat: add venom.outputdir var

close #492

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>

* feat: venom.x.log if venom.log exists

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault authored Aug 3, 2022
1 parent 719a164 commit f6b7419
Show file tree
Hide file tree
Showing 9 changed files with 587 additions and 591 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,16 +528,18 @@ testcases:

Builtin variables:

* {{.venom.testsuite}}
* {{.venom.datetime}}
* {{.venom.executable}}
* {{.venom.libdir}}
* {{.venom.outputdir}}
* {{.venom.testcase}}
* {{.venom.teststep.number}}
* {{.venom.testsuite.filename}}
* {{.venom.testsuite.shortName}}
* {{.venom.testsuite.workdir}}
* {{.venom.testcase}}
* {{.venom.teststep.number}}
* {{.venom.datetime}}
* {{.venom.testsuite}}
* {{.venom.timestamp}}
* {{.venom.executable}}
* {{.venom.libdir}}


## Assertions

Expand Down
4 changes: 3 additions & 1 deletion cmd/venom/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
venom
bin
*.yml
.venomrc
*.xml
*.log
.venomrc
2 changes: 1 addition & 1 deletion cmd/venom/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ var Cmd = &cobra.Command{
}

elapsed := time.Since(start)
if err := v.OutputResult(*tests, elapsed); err != nil {
if err := v.OutputResult(elapsed); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(2)
return err
Expand Down
111 changes: 57 additions & 54 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,88 +1,91 @@
module github.com/ovh/venom

go 1.17
go 1.18

require (
github.com/Azure/go-amqp v0.13.7
github.com/Shopify/sarama v1.27.2
github.com/alexbrainman/odbc v0.0.0-20210605012845-39f8520b0d5f
github.com/antonfisher/nested-logrus-formatter v1.3.0
github.com/Shopify/sarama v1.35.0
github.com/alexbrainman/odbc v0.0.0-20211220213544-9c9a2e61c5e2
github.com/antonfisher/nested-logrus-formatter v1.3.1
github.com/confluentinc/bincover v0.2.0
github.com/eclipse/paho.mqtt.golang v1.3.4
github.com/eclipse/paho.mqtt.golang v1.4.1
github.com/fatih/color v1.13.0
github.com/fsamin/go-dump v1.4.1
github.com/fullstorydev/grpcurl v1.7.0
github.com/garyburd/redigo v1.6.2
github.com/fsamin/go-dump v1.5.0
github.com/fullstorydev/grpcurl v1.8.6
github.com/garyburd/redigo v1.6.3
github.com/ghodss/yaml v1.0.0
github.com/go-sql-driver/mysql v1.5.0
github.com/go-testfixtures/testfixtures/v3 v3.4.1
github.com/golang/protobuf v1.4.3
github.com/go-sql-driver/mysql v1.6.0
github.com/go-testfixtures/testfixtures/v3 v3.8.1
github.com/golang/protobuf v1.5.2
github.com/google/go-github v17.0.0+incompatible
github.com/gosimple/slug v1.9.0
github.com/gosimple/slug v1.12.0
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf
github.com/jhump/protoreflect v1.7.0
github.com/jmoiron/sqlx v1.2.0
github.com/jhump/protoreflect v1.12.0
github.com/jmoiron/sqlx v1.3.5
github.com/landoop/schema-registry v0.0.0-20190327143759-50a5701c1891
github.com/lib/pq v1.8.0
github.com/linkedin/goavro/v2 v2.10.0
github.com/mattn/go-shellwords v1.0.10
github.com/lib/pq v1.10.6
github.com/linkedin/goavro/v2 v2.11.1
github.com/mattn/go-shellwords v1.0.12
github.com/mattn/go-zglob v0.0.3
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/mapstructure v1.3.3
github.com/mitchellh/mapstructure v1.5.0
github.com/mndrix/tap-go v0.0.0-20171203230836-629fa407e90b
github.com/ovh/cds/sdk/interpolate v0.0.0-20220131161934-68475820df4d
github.com/ovh/cds/sdk/interpolate v0.0.0-20220801141832-203422993fef
github.com/ovh/go-ovh v1.1.0
github.com/pkg/errors v0.9.1
github.com/rubenv/sql-migrate v0.0.0-20200616145509-8d140a17f351
github.com/rubenv/sql-migrate v1.1.2
github.com/sclevine/agouti v3.0.1-0.20180306165625-6ada53bb069e+incompatible
github.com/sijms/go-ora v0.0.0-20201108135513-712ea4f3d160
github.com/sirupsen/logrus v1.7.0
github.com/spf13/cast v1.4.1
github.com/spf13/cobra v1.1.1
github.com/sijms/go-ora v1.2.1
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cast v1.5.0
github.com/spf13/cobra v1.5.0
github.com/spf13/pflag v1.0.5
github.com/streadway/amqp v1.0.0
github.com/stretchr/testify v1.6.1
github.com/stretchr/testify v1.8.0
github.com/yesnault/go-imap v0.0.0-20160710142244-eb9bbb66bd7b
golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
google.golang.org/grpc v1.30.0
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
golang.org/x/net v0.0.0-20220728211354-c7608f3a8462
google.golang.org/grpc v1.48.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/aokoli/goutils v1.1.0 // indirect
github.com/aokoli/goutils v1.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/eapache/go-resiliency v1.2.0 // indirect
github.com/eapache/go-resiliency v1.3.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
github.com/eapache/queue v1.1.0 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/huandu/xstrings v1.2.0 // indirect
github.com/go-gorp/gorp/v3 v3.0.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/gosimple/unidecode v1.0.1 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jcmturner/gofork v1.0.0 // indirect
github.com/klauspost/compress v1.11.0 // indirect
github.com/mattn/go-colorable v0.1.11 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
github.com/jcmturner/gofork v1.7.6 // indirect
github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/klauspost/compress v1.15.9 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
github.com/mxk/go-imap v0.0.0-20150429134902-531c36c3f12d // indirect
github.com/onsi/ginkgo v1.14.2 // indirect
github.com/onsi/gomega v1.10.3 // indirect
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.20.0 // indirect
github.com/pierrec/lz4/v4 v4.1.15 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/smartystreets/assertions v1.2.0 // indirect
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220731174439-a90be440212d // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940 // indirect
google.golang.org/protobuf v1.23.0 // indirect
gopkg.in/gorp.v1 v1.7.2 // indirect
gopkg.in/ini.v1 v1.57.0 // indirect
gopkg.in/jcmturner/aescts.v1 v1.0.1 // indirect
gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect
gopkg.in/jcmturner/gokrb5.v7 v7.5.0 // indirect
gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit f6b7419

Please sign in to comment.