Skip to content

Commit

Permalink
update "Write and run unit tests" chapter (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo authored Jul 26, 2023
1 parent bb48c55 commit cbad214
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/get-started/write-and-run-unit-tests.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Write and run unit tests

The TiDB project runs unit tests using [testify](https://github.com/stretchr/testify).
The Golang testing framework provides several functionalities and conventions that help structure and execute tests efficiently. To enhance its assertion and mocking capabilities, we use the [`testify`](https://github.com/stretchr/testify) library.

You may find tests using [pingcap/check](http://github.com/pingcap/check) which is a fork of [go-check/check](https://github.com/go-check/check), but since that framework is poorly maintained, we are migrating to testify.

You can check the background and progress on the migration [tracking issue](https://github.com/pingcap/tidb/issues/26022).
> You may find tests using [pingcap/check](http://github.com/pingcap/check) which is a fork of [go-check/check](https://github.com/go-check/check) in release branches before `release-6.1`, but since that framework is poorly maintained, we are migrated to testify from `release-6.1`.
> You can check the background and progress on the migration [tracking issue](https://github.com/pingcap/tidb/issues/26022).
## How to write unit tests

Expand Down

0 comments on commit cbad214

Please sign in to comment.