testify/assert
Stavros Ntentos 181cea6eab
impr: `CallerInfo` should print full paths to the terminal (#1201)
* impr: `CallerInfo` should print full paths to the terminal

I am proposing this simple change, which changes this output
```
--- FAIL: TestABC (0.00s)
    --- FAIL: TestABC/C (0.00s)
        /this/is/a/path/to/file_test.go:258:
            	Error Trace:	file_test.go:258
            	            				file_test.go:748
            	Error:      	Not equal:
...
```
to this:
```
--- FAIL: TestABC (0.00s)
    --- FAIL: TestABC/C (0.00s)
        /this/is/a/path/to/file_test.go:258:
            	Error Trace:	/this/is/a/path/to/file_test.go:258
            	            				/this/is/a/path/to/file_test.go:748
            	Error:      	Not equal:
...
```

With the latter output, it is much more straightforward to find the file
you are looking for, even though in the displayed case, the file is the same.

However, for VSCodium, the case is a little more helpful, since VSCodium's
terminal is smart enough to recognize the output, and make links out of that input.

Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>

* test: fix the tests that depended on the previous behavior

Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>

Co-authored-by: Stavros Ntentos <11300730-stavros-relex@users.noreply.gitlab.com>
2022-06-29 20:56:06 +10:00
..
assertion_compare.go Support comparing byte slice (#1202) 2022-06-21 14:54:58 +10:00
assertion_compare_can_convert.go assert: fix typo 2022-05-04 20:29:57 +10:00
assertion_compare_go1.17_test.go Support comparing byte slice (#1202) 2022-06-21 14:54:58 +10:00
assertion_compare_legacy.go Use cross Go version compatible build tag syntax 2022-02-15 20:26:04 +10:00
assertion_compare_test.go assert: guard CanConvert call in backward compatible wrapper 2022-02-15 20:26:04 +10:00
assertion_format.go Add WithinTimeRange method (#1188) 2022-06-28 21:14:39 +10:00
assertion_format.go.tmpl Fix vim-go integration and other editors 2018-02-02 18:39:40 +00:00
assertion_forward.go Add WithinTimeRange method (#1188) 2022-06-28 21:14:39 +10:00
assertion_forward.go.tmpl Fix vim-go integration and other editors 2018-02-02 18:39:40 +00:00
assertion_order.go fix msgAndArgs forwarding 2022-02-10 20:09:05 +10:00
assertion_order_test.go add tests for correct msgAndArgs forwarding 2022-02-10 20:09:05 +10:00
assertions.go impr: `CallerInfo` should print full paths to the terminal (#1201) 2022-06-29 20:56:06 +10:00
assertions_test.go fix: assert.MapSubset (or just support maps in assert.Subset) (#1178) 2022-06-28 21:24:53 +10:00
doc.go Merge pull request #196 from phemmer/remove-overview 2015-08-26 11:20:00 -07:00
errors.go Clean up golint warnings 2014-06-18 09:28:16 -06:00
forward_assertions.go Make _codegen its own module so that its dependencies do not pollute the root modules dependency graph 2019-12-09 10:12:49 -07:00
forward_assertions_test.go Add ErrorContains 2021-01-16 12:32:05 +11:00
http_assertions.go This reverts commit 0a813b5898. 2020-06-05 20:47:15 +10:00
http_assertions_test.go fix linting errors in /assert package 2021-08-24 21:55:23 +10:00