Source: https://seerepo.com/compare/gruntwork-io/terratest/vs/pingcap/tidb
Markdown source: https://seerepo.com/compare/gruntwork-io/terratest/vs/pingcap/tidb.md
Description: terratest and tidb share 9 technologies: s3, MySQL, Google, github.com/aws/aws-sdk-go-v2/credentials, github.com/Azure/azure-sdk-for-go/sdk/azidentity, github.com/Azure/azure-sdk-for-go/sdk/azcore, github.com/aws/aws-sdk-go-v2, github.com/aws/aws-sdk-go-v2/config, and github.com/aws/aws-sdk-go-v2/service/sts. Both are written in Go.

# terratest vs tidb

terratest and tidb share 9 technologies: s3, MySQL, Google, github.com/aws/aws-sdk-go-v2/credentials, github.com/Azure/azure-sdk-for-go/sdk/azidentity, github.com/Azure/azure-sdk-for-go/sdk/azcore, github.com/aws/aws-sdk-go-v2, github.com/aws/aws-sdk-go-v2/config, and github.com/aws/aws-sdk-go-v2/service/sts. Both are written in Go.

- [gruntwork-io/terratest](https://seerepo.com/r/gruntwork-io/terratest):  Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
- [pingcap/tidb](https://seerepo.com/r/pingcap/tidb): TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

## What they share and what sets them apart

- In common: s3, MySQL, Google, github.com/aws/aws-sdk-go-v2/credentials, github.com/Azure/azure-sdk-for-go/sdk/azidentity, github.com/Azure/azure-sdk-for-go/sdk/azcore, github.com/aws/aws-sdk-go-v2, github.com/aws/aws-sdk-go-v2/config, github.com/aws/aws-sdk-go-v2/service/sts
- Only in terratest: pgx, pq, Postgres, github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage, github.com/pquerna/otp, golang.org/x/oauth2, aws-lambda-go, github.com/sirupsen/logrus, github.com/aws/aws-sdk-go-v2/service/iam, github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6, github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault, github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor, github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6, github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources, github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions
- Only in tidb: net/http, Gorilla, TiDB, github.com/pingcap/kvproto, github.com/tikv/client-go/v2, github.com/tikv/pd/client, etcd, github.com/pingcap/badger, github.com/cockroachdb/pebble, github.com/aws/aws-sdk-go-v2/feature/s3/manager, Dgraph, github.com/Azure/azure-sdk-for-go/sdk/storage/azblob, github.com/coocood/freecache, github.com/jellydator/ttlcache/v3, github.com/ks3sdklib/aws-sdk-go, github.com/cheggaaa/pb/v3, github.com/cheynewallace/tabby, github.com/jedib0t/go-pretty/v6, github.com/vbauerster/mpb/v7, github.com/aliyun/credentials-go, github.com/go-ldap/ldap/v3, github.com/lestrrat-go/jwx/v2, openai-go, github.com/joho/sqltocsv, github.com/qri-io/jsonschema, go.uber.org/zap, github.com/pingcap/log, Prometheus, github.com/aws/aws-sdk-go-v2/service/cloudwatch, github.com/aws/aws-sdk-go-v2/service/ec2, github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common

## Side by side

| | terratest | tidb |
|---|---|---|
| Size | 118,216 lines written, 36 code files | 1,767,951 lines written, 1,558 code files |
| Who writes it | 0.1% of its commits signed by AI. With Claude Code and Amp | 0% of its commits signed by AI. With GitHub Copilot |
| Activity | Last push November 16, 2026, 2,959 commits, 7,992 stars | Last push November 18, 2026, 28,030 commits, 40,746 stars |
| Tests | 683 test files. 80.6% of its code files have a test that imports them | 2,905 test files. 90.2% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, terratest or tidb?

tidb, with 1,767,951 lines written; terratest has 118,216.

The proof: [pingcap/tidb's code at commit 31134f3](https://github.com/pingcap/tidb/tree/31134f349d73c8352d3fe44aa10a79da779b8c18)

### Which has more GitHub stars, terratest or tidb?

tidb, with 40,746 stars; terratest has 7,992.

The proof: [pingcap/tidb on GitHub](https://github.com/pingcap/tidb)

### Which has more tests, terratest or tidb?

tidb, with 2,905 test files; terratest has 683.

The proof: [pingcap/tidb's code at commit 31134f3](https://github.com/pingcap/tidb/tree/31134f349d73c8352d3fe44aa10a79da779b8c18)

### Which was updated more recently, terratest or tidb?

tidb: its last push was on November 18, 2026, and terratest's on November 16, 2026.

The proof: [pingcap/tidb's commits on GitHub](https://github.com/pingcap/tidb/commits)

### Which has more commits signed by AI, terratest or tidb?

terratest: an AI signed 0.1% of its commits, with Claude Code and Amp.

## Sources

- gruntwork-io/terratest: Read on November 18, 2026, at commit a0a921a (https://github.com/gruntwork-io/terratest/tree/a0a921a187ba8a50cc4fcda8496187ca10b2d9b5)
- pingcap/tidb: Read on November 18, 2026, at commit 31134f3 (https://github.com/pingcap/tidb/tree/31134f349d73c8352d3fe44aa10a79da779b8c18)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
