gotestyourself / gotestsum

'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results.
Apache License 2.0
1.99k stars 118 forks source link

Updates to dependencies and GitHub workflows #390

Closed gaby closed 4 months ago

gaby commented 4 months ago

Note: The following tests are failing:

=== RUN   TestE2E_RerunFails/first_run_has_errors,_abort_rerun
    main_e2e_test.go:69: assertion failed: 
        --- expected
        +++ actual
        @@ -1,6 +1,11 @@
        +FAIL testjson/internal/broken
        +
        +=== Failed
        +=== FAIL: testjson/internal/broken 
        +FAIL   gotest.tools/gotestsum/testjson/internal/broken [build failed]

         === Errors
         ../testjson/internal/broken/broken.go:5:21: undefined: somepackage

        -DONE 0 tests, 1 error
        +DONE 0 tests, 1 failure, 1 error

        You can run 'go test . -update' to automatically update testdata/e2e/expected/TestE2E_RerunFails/first_run_has_errors,_abort_rerun to the new expected value.'

--- FAIL: TestE2E_RerunFails/first_run_has_errors,_abort_rerun (0.06s)
FAIL cmd.TestE2E_RerunFails/first_run_has_errors,_abort_rerun (0.06s)
=== RUN   TestE2E_RerunFails
--- FAIL: TestE2E_RerunFails (1.66s)
FAIL cmd.TestE2E_RerunFails (1.66s)
FAIL cmd

=== Skipped
=== SKIP: testjson TestNewDotFormatter (0.00s)
WARN Failed to detect terminal width for dots format, error: inappropriate ioctl for device
    dotformat_test.go:135: !ok: no terminal width

=== SKIP: testjson TestGetPkgPathPrefix/with_go_path (0.00s)
    pkgpathprefix_test.go:22: isGoModuleEnabled()

=== Failed
=== FAIL: cmd TestE2E_RerunFails/first_run_has_errors,_abort_rerun (0.06s)
    main_e2e_test.go:69: assertion failed: 
        --- expected
        +++ actual
        @@ -1,6 +1,11 @@
        +FAIL testjson/internal/broken
        +
        +=== Failed
        +=== FAIL: testjson/internal/broken 
        +FAIL   gotest.tools/gotestsum/testjson/internal/broken [build failed]

         === Errors
         ../testjson/internal/broken/broken.go:5:21: undefined: somepackage

        -DONE 0 tests, 1 error
        +DONE 0 tests, 1 failure, 1 error

        You can run 'go test . -update' to automatically update testdata/e2e/expected/TestE2E_RerunFails/first_run_has_errors,_abort_rerun to the new expected value.'

=== FAIL: cmd TestE2E_RerunFails (1.66s)
gaby commented 4 months ago

@dnephin Can you take a look at this PR

dnephin commented 4 months ago

Ah, the go/version package is too new as well. We need a separate file for the import.

gaby commented 4 months ago

Ah, the go/version package is too new as well. We need a separate file for the import.

Yeah, go/version is only available in 1.22 or higher.

https://pkg.go.dev/go/version?tab=versions

gaby commented 4 months ago

All jobs are green! 💪

dnephin commented 4 months ago

Thank you again for the PR!

gaby commented 4 months ago

Thank you again for the PR!

Thanks for the awesome tool! 💪