Join us

Caching Golang tests in CI

Caching Golang tests in CI

Airplane uses Golang and runs unit tests through CI on their monorepo. They improved test speed by using go test caching, reducing test duration from minutes to seconds. The caching feature considers code changes, environment variables, and file access. By preserving the cache directory in CI, test results can be cached across runs, but there are caveats like writing files, altering environment variables, and changing fixture timestamps.


Let's keep in touch!

Stay updated with my latest posts and news. I share insights, updates, and exclusive content.

By subscribing, you share your email with @faun and accept our Terms & Privacy. Unsubscribe anytime.

Give a Pawfive to this post!


Only registered users can post comments. Please, login or signup.

Start blogging about your favorite technologies, reach more readers and earn rewards!

Join other developers and claim your FAUN.dev account now!

Avatar

The FAUN

@faun
A worldwide community of developers and DevOps enthusiasts!
Developer Influence
3k

Influence

302k

Total Hits

1

Posts