smartystreets / goconvey

Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
http://smartystreets.github.io/goconvey/
Other
8.23k stars 554 forks source link

couldn't handle this stray line: verbose: print additional output, v1.8.1 #682

Closed aukgit closed 9 months ago

aukgit commented 9 months ago

Hi @riannucci, @msabramo, @vrecan

It works nicely in the windows breaks in Ubuntu.

Go mod

module gitlab.com/auk-go/core

go 1.17.8

require (
    github.com/smarty/assertions v1.15.1
    github.com/smartystreets/goconvey v1.8.1
)

require (
    github.com/gopherjs/gopherjs v1.17.2 // indirect
    github.com/jtolds/gls v4.20.0+incompatible // indirect
)

Steps to Reproduce

  1. cd tests
  2. run goconvey

Source Code:

core.zip

Failing source code: https://gitlab.com/auk-go/core/-/tree/feature/v1.4.5/tests/integratedtests/chmodhelpertests?ref_type=heads

$ goconvey
2023/11/17 19:17:04 goconvey.go:61: Initial configuration: [host: 127.0.0.1] [port: 8080] [poll: 250ms] [cover: true]
2023/11/17 19:17:04 tester.go:19: Now configured to test 10 packages concurrently.
2023/11/17 19:17:04 goconvey.go:178: Serving HTTP at: http://127.0.0.1:8080
2023/11/17 19:17:04 goconvey.go:105: Launching browser on 127.0.0.1:8080
2023/11/17 19:17:04 integration.go:122: File system state modified, publishing current folders... 0 22070639550
2023/11/17 19:17:04 goconvey.go:118: Received request from watcher to execute tests...
2023/11/17 19:17:04 goconvey.go:111: exec: "xdg-open": executable file not found in $PATH
2023/11/17 19:17:04 goconvey.go:113:
2023/11/17 19:17:04 executor.go:69: Executor status: 'executing'
2023/11/17 19:17:04 coordinator.go:46: Executing concurrent tests: gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: flag provided but not defined: -i
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: Usage of /tmp/go-build1912814286/b001/chmodhelpertests.test:
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -convey-json
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: When true, emits results in JSON blocks. Default: 'false'
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -convey-silent
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: When true, all output from GoConvey is suppressed.
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -convey-story
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: When true, emits story output, otherwise emits dot output. When not provided, this flag mirrors the value of the '-test.v' flag
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.bench regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: run only benchmarks matching regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.benchmem
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: print memory allocations for benchmarks
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.benchtime d
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: run each benchmark for duration d (default 1s)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.blockprofile file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write a goroutine blocking profile to file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.blockprofilerate rate
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: set blocking profile rate (see runtime.SetBlockProfileRate) (default 1)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.count n
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: run tests and benchmarks n times (default 1)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.coverprofile file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write a coverage profile to file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.cpu list
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: comma-separated list of cpu counts to run each test with
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.cpuprofile file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write a cpu profile to file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.failfast
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: do not start new tests after the first test failure
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.fullpath
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: show full file names in error messages
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.fuzz regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: run the fuzz test matching regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.fuzzcachedir string
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: directory where interesting fuzzing inputs are stored (for use only by cmd/go)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.fuzzminimizetime value
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: time to spend minimizing a value after finding a failing input (default 1m0s)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.fuzztime value
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: time to spend fuzzing; default is to run indefinitely
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.fuzzworkerPotential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: coordinate with the parent process to fuzz random values (for use only by cmd/go)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.gocoverdir string
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write coverage intermediate files to this directory
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.list regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: list tests, examples, and benchmarks matching regexp then exit
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.memprofile file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write an allocation profile to file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.memprofilerate rate
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: set memory allocation profiling rate (see runtime.MemProfileRate)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.mutexprofile string
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write a mutex contention profile to the named file after execution
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.mutexprofilefraction int
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: if >= 0, calls runtime.SetMutexProfileFraction() (default 1)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.outputdir dir
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write profiles to dir
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.paniconexit0
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: panic on call to os.Exit(0)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.parallel nPotential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: run at most n tests in parallel (default 6)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.run regexpPotential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: run only tests and examples matching regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.short
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: run smaller test suite to save time
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.shuffle string
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: randomize the execution order of tests and benchmarks (default "off")
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.skip regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: do not list or run tests matching regexp
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.testlogfile file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write test action log to file (for use only by cmd/go)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.timeout d Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: panic test binary after duration d (default 0, timeout disabled)
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.trace filePotential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: write an execution trace to file
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: -test.v
Potential error parsing output of gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests ; couldn't handle this stray line: verbose: print additional output
2023/11/17 19:17:05 parser.go:24: [failed]: gitlab.com/auk-go/core/tests/integratedtests/chmodhelpertests
2023/11/17 19:17:05 executor.go:69: Executor status: 'idle'

Ref

aukgit commented 9 months ago

I have managed to solve it.

Solution

  1. Go to the root of the repo, perform
    • go mod tidy
  2. go get github.com/smartystreets/goconvey/convey
    • go mod tidy
aukgit commented 9 months ago

Running now image