Skip to content

Releases: gotestyourself/gotestsum

v1.6.3

29 Mar 22:52
73868ed
Compare
Choose a tag to compare

Changelog

73868ed Merge pull request #187 from ProjectFrank/main
9bf2c6d Use go1.16 for build and publish jobs in CI
e46e163 Merge pull request #182 from thaJeztah/bump_deps
ff836c1 go.mod: golang.org/x/tools v0.1.0
07a8c6d go.mod: github.com/jonboulle/clockwork v0.2.2
56352eb go.mod: github.com/google/go-cmp v0.5.5
ce534c7 go.mod: github.com/fatih/color v1.10.0
ade3e70 Merge pull request #181 from jkowalski/arm-release
2a9814c Added support for 'arm' binary release

v1.6.2

20 Feb 22:07
022dccf
Compare
Choose a tag to compare

Support installing with the new go1.16 go install.

Changelog

022dccf Merge pull request #179 from dnephin/support-go-install-latest
badd934 Replace spf13/pflag with dnephin/pflag
c1e2e92 Merge pull request #178 from dnephin/go1.16-release
66df551 ci: use official release of go1.16

v1.6.1

16 Jan 19:09
6d0e310
Compare
Choose a tag to compare

Changes

  • Add --max-fails flag to stop a test run after some number of failures
  • Properly reset the terminal when --watch exits
  • Add key shortcuts for --watch mode, to re-run the last test, and re-run with delve debugger
  • Properly close file handles used to create the list of directories for --watch, to prevent error on too many open file descriptors

Changelog

6d0e310 Merge pull request #174 from dnephin/wrap-errors-in-watch
20fb1ea Wrap a couple errors from filewatcher
22e9314 Merge pull request #173 from docwhat/pr/close-watch
e4c20b8 Don't sync read-only file handle
aed3bd5 ensure filehandles are closed
3c47e87 Merge pull request #169 from dnephin/ci-go-1.16
7414759 ci: add go1.16
4fc8ab6 Add watch debug mode to README
9c36896 Merge pull request #168 from dnephin/slowest-skip-subtests
fc388e3 slowest: skip root tests when subtests are slow
fcc882a Merge pull request #165 from dnephin/watch-debug-delve
e6cd46c Merge pull request #166 from dnephin/testcases_example
7b1a76c watch: set breakpoint on test function when debugging
d1d4c68 Try out a new pattern for large table tests
f3e8321 watch: move lastPath storage to handler
3ab60fc watch: Add support for debugging while watching
a6916e7 watch: make space for debug flag
2062ac3 Merge pull request #164 from dnephin/update-go-version-windows
d6ba8ba ci: try updating go version
76b46f9 Merge pull request #163 from dnephin/reset-term-on-idle-timeout
98ce04d watch: properly reset terminal after idle timeout
3a094ca Merge pull request #161 from dnephin/time-and-aggregate
273e0b2 internal/aggregate: extract some functions from cmd/tool/slowest
af85a09 Add TestCase.Time
700bc79 Merge pull request #159 from dnephin/max-fails
a0ef4c9 Merge pull request #160 from dnephin/watch-retest
c41d054 Add rerun for --watch mode
7e74fa1 Test that execution stops if ScanTestOutput errors
876c2f5 End a run when ScanTestOutput fails
3d0c6fa Add --max-fails flag
b081783 Merge pull request #158 from dnephin/add-main-branch-sync
7ccf086 Add github action to sync main

v0.6.0

25 Oct 18:01
a37fa33
Compare
Choose a tag to compare

Changes

  • Add --watch flag for running tests when a file is saved
  • Fix a panic caused by a missing action=run event, likely a bug in test2json or go test
  • Rename --no-summary to --hide-summary (--no-summary still works, but is hidden)
  • Make the summary a little more compact by removing some extra newlines, especially when using --hide-summary=output

Changelog

a37fa33 Merge pull request #156 from dnephin/fix-panic-in-fails-report
676e8e7 Fix a panic when 'go test' does not send an Action=run event for a test
485b2ea Fix a couple race conditions
8f9d58b Update gocmp, fixes a checkptr error
cde872b Merge pull request #157 from dnephin/fix-watch
d0804e6 filewatcher: only recurse when directory has a /... suffix
1c78e40 upgrade gotest.tools
c11beca filewatcher: fix event.Op comparison
a94234d Merge pull request #155 from dnephin/add-testname
ca01c79 testjson: create TestName
d52d240 Merge pull request #153 from dnephin/add-watch-flag
1c19d1b watch: move timer into filewatcher
8cd442a Add --watch flag for running tests when files change.
fddcbf4 Merge pull request #152 from dnephin/less-whitespace-in-summary
5c495de Remove the extra newline between summary sections
8efcfba Rename --no-summary to --hide-summary
1530e18 Remove extra newlines when no-summary=output
e3cd29c Merge pull request #151 from dnephin/move-run
60f382a Update golden files for new path
243e57f Move main cmd to ./cmd
915824d Move only main.go to ./cmd

v0.5.4

09 Oct 05:23
55c3dab
Compare
Choose a tag to compare

Changelog

55c3dab Merge pull request #150 from dnephin/readme-and-testdata
493610c testjson: improve example in overview.
3c420fb Update readme
b353fec improvements to testjson/testdata packages
023c7ce Merge pull request #149 from dnephin/fix-rerun-with-compiled-bin
040d7f6 Fix rerun-fails with compiled test binary
b3209ee Merge pull request #147 from dnephin/signal-handler
028aabe Fix error in README
b2b4724 Add a signal handler to forward SIGINT to 'go test'
4761deb Make e2e tests less flaky
1363245 Merge pull request #143 from ondrej-fabry/patch-1
4bafc65 Merge pull request #146 from dnephin/remove-type-assert-for-pre-go1.12
78884b8 Move ExitError type check to test file.
7009f6a Update running-without-go.md

v0.5.3

01 Sep 03:13
7a46c48
Compare
Choose a tag to compare

Changes

  • Fixes a bug that caused --rerun-fails to exit with success when not all tests had passed, if multiple tests in a package were being rerun and on the last attempt the last test in the package passed, but others did not
  • Prevents the rerun-fails-report from being printed if the rerun is not performed due to too many initial failures

Changelog

7a46c48 Merge pull request #144 from dnephin/fix-retry-fails-err
998433a Don't print a rerun-fails report if there were too many failures
0ba6504 rerun-fails: Fix a bug that would result in a passed run
e1d4f60 Add a test for the rerun-fails where the last test passes
cd995f8 Use the new ExitError.ExitCode
5d0850c Merge pull request #142 from dnephin/go1.15
e342569 Add go1.15, remove go1.11
e076327 Fix README format example

v0.5.2

18 Jul 17:35
e2b19e1
Compare
Choose a tag to compare

Changes

  • --rerun-fails now reruns only the failed subtest (instead of the entire root test), by running each test individually instead of the failed tests in a package.
  • fixed a bug with --rerun-fails reporting, where any incomplete tests from the first run were reported to have been run and fail on each rerun.

Changelog

e2b19e1 Merge pull request #135 from dnephin/rerun-fails-only-subtests
a18b697 Update golden for new go1.14.6 output format
a4b69e7 Clear out running tests from each pkg
22714a3 Merge pull request #137 from SemanticallyNull/master
f9e3d29 build arm64 binaries
6c2d74f rerun-fails: Only rerun failed subtests
8979f92 fix tool/slowest examples

v0.5.1

24 Jun 17:57
14268d4
Compare
Choose a tag to compare

Changelog

14268d4 Merge pull request #134 from dnephin/rerun-summary
be1a9c8 Add reun-fails-report
9a2c7b4 Merge pull request #133 from dnephin/remove-pause-cont-from-summary-output
07020ae Merge pull request #132 from dnephin/improve-rerun
d704604 Remove PAUSE and CONT lines from summary output
a78bf96 Include run count in DONe line
83c209d Add RunID to testname format, and summary
1263c8c Refactor pkgPath+testname formatting for testname format
a256bea Rename format functions
18ce2af Exit rerun if exit status > 1

v0.5.0

17 Jun 03:33
b2e1ee6
Compare
Choose a tag to compare

New Features

Bug fixes

  • when the same test case appears multiple times in the input (possibly because of -count=n) the output of each will be preserved. Previously only the last test case output was saved.
  • fixed a bug where the output of a skipped sub-test would be lost

Changelog

b2e1ee6 Merge pull request #117 from dnephin/0.5-docs
e8b4148 readme: add docs for features new in version 0.5
e55d7aa Merge pull request #129 from gotestyourself/rerun-fails
f93909c Add test to cover rerun with errors
bb6a8a5 rerun: add done line, and only warn on exit !{0,1}
e8026de check goTestExitErr before rerun
ccefcdd Cancel re-run if there are any errors.
3381e15 Fix packages flag
dcc31b5 Merge pull request #126 from dnephin/rerun-fails
96d3338 Fix -run flag building to not prefix match
5cc60e2 Add an e2e test for rerun-fails
8440739 Improve rerun flags
d1c4fe0 cmd: Add tests for usage text
935c88f Return artificial events to Handler for missing events
6c51314 Add rerun-fails feature
41d5687 Merge pull request #125 from dnephin/bug-repeated-test-case-output
9252745 Remove hasSubTestSkipped
dff8591 Fix test failures caused by adding a new field to Package
c6c06f8 Use an ID to index TestCase output
02c7a08 Test for repeated output
157775e Merge pull request #123 from dnephin/bug-missing-skip-msg
271af14 Merge pull request #122 from dnephin/remove-test-flag-special
c983e4c summary: Fixed missing skip message bug
1aea7ad Update pflag to remove the -test.x flag dropping
6e7e5ad Merge pull request #121 from dnephin/small-improvements-to-slowest
e8f847b cmd/tool/slowest: Improve help text
427c049 Merge pull request #120 from dnephin/small-improvements-to-slowest
9b2aef1 Better docs for testjson package
0a6ff94 Merge pull request #76 from dnephin/add-post-run-command
8be9d46 Add a sample post-hook-command for osx notifications
fdfcf36 Change post-run-hook to use string command
8c90dec Add post-run-command hook
bbd252b Merge pull request #115 from thaJeztah/replace_more_syscall
145a546 Use golang.org/x/sys/windows.GetConsoleScreenBufferInfo
eae3dbf Merge pull request #112 from thaJeztah/detect_terminal
f722162 Update github.com/fatih/color to latest
aa182bc Windows: use golang.org/x/sys to detect Terminal
04af7e1 Merge pull request #114 from thaJeztah/bump_pkg_errors
d8d6815 update pkg/errors to v0.9.1
1b26a76 Merge pull request #113 from dnephin/do-improvements
daa669f do: use GOLANG_VERSION arg
2ddfdd2 Merge pull request #111 from dnephin/use-plsdo
454e0db Replace dobi with plsdo
729c5b2 Merge pull request #107 from dnephin/mark-slowest-tests
e9510d9 cmd/tools/slowest: Support build tags
9a46ae9 Fix linter issues
471a59a Don't attempt to format a non-format string
7a39237 Aggregate elapsed time when there are multiple runs
afef6d5 Add a preset for testing.Short
82aae80 Handle tests in external test packages
d8df6c0 Remove subtests from the list to skip
157af96 cmd/tool/slowest: add jsonfile flag
ddc609f cmd/tool/slowest: AST rewrite for slowest tests
2cc4019 cmd/tool/slowest: Add a skeleton for a new command
ab93a78 Merge pull request #110 from dnephin/remove-logrus-dep
6cbcac1 Remove logrus dependency
fe46a0a Merge pull request #108 from wfscheper/pre-commit-hook-config
d6f4eb9 Add a pre-commit hook configuration
6878800 Merge pull request #106 from dnephin/tests-can-have-more-than-2-framing-events
8ee9a8b Change label for incomplete tests
9b766e9 Tests can have more than 2 framing lines

v0.4.2

21 Apr 01:24
32e482f
Compare
Choose a tag to compare

This release attempts to work around a bug in test2json and handle a change in test2json behaviour introduced in go1.14.

Changelog

32e482f Merge pull request #102 from dnephin/print-missing-output
cacb835 summary: mitigate test2json bug causing missing test output
2403f71 summary: only filter out framing messages that match the test name
1233c41 store test output by rootTestName->subTestNames->output
08303fe Merge pull request #104 from dnephin/fix-missing-output-on-panic
db873a2 Print incomplete tests as failures
f25c369 Merge pull request #103 from dnephin/linter-whitelist
1dfd4a8 Use an explicit list of linters
0f3ab42 Merge pull request #98 from dnephin/update-docs
7abd97c Add -t flag to test2json examples
b348b74 Merge pull request #91 from dnephin/go1.14
79cca92 Remove go1.10 from CI and remove Gopkg files
16cca0b Add go1.14 to CI
938d36e Update to gotest.tools/v3
b9c9035 Merge pull request #89 from dnephin/restore-original-dots-format
85ca9e9 windows golden
183b435 Restore old format for dots
9a4b2e3 Re-add the original dots format