11 Commits

Author SHA1 Message Date
Olivier Mengué
603c2a0348 assert,require: enable parallel testing on (almost) all top tests
Enable parallel testing for almost all tests in packages 'assert' and
'require' by calling t.Parallel() as the first line of the test.

A few tests are incompatible and will be fixed separately. They are
marked with a FIXME.
Incompatible tests: TestFileExists, TestNoFileExists, TestDirExists,
TestNoDirExists.

Before:
  $ go test -count=10 ./assert ./require
  ok  	github.com/stretchr/testify/assert	7.575s
  ok  	github.com/stretchr/testify/require	1.501s

After:
  $ go test -count=10 ./assert ./require
  ok  	github.com/stretchr/testify/assert	1.703s
  ok  	github.com/stretchr/testify/require	1.245s
2025-05-23 16:17:12 +02:00
Ilia Kravets
c29de71342 add tests for correct msgAndArgs forwarding
len(msgAndArgs)>1 should lead to fmt.Sprintf()
2022-02-10 20:09:05 +10:00
Menno
ab6dc32628 fix linting errors in /assert package 2021-08-24 21:55:23 +10:00
alexpantyukhin
cf221cc875 add tests and fix message 2020-08-14 20:45:51 +10:00
alexpantyukhin
a9284e66a9 add assertion order 2020-08-14 20:45:51 +10:00
alexpantyukhin
6be346c1f1 rename order files to compare files 2020-03-09 08:00:09 +11:00
Alexander Pantyukhin
2ca25e3fac fix for assertions 2020-03-06 19:44:08 +11:00
Alexander Pantyukhin
ec73f449b3 add new tests 2020-03-06 19:44:08 +11:00
Alexander Pantyukhin
ad53dbbf0a put constants instead of values. 2020-03-06 19:44:08 +11:00
alexpantyukhin
c106be4ce3 refactoring of assertion_order 2020-03-06 19:44:08 +11:00
apantykhin
3f658bd5ac add comparison 2019-02-19 09:07:39 -07:00