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.


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 account now!

Avatar

The FAUN

@faun
A worldwide community of developers and DevOps enthusiasts!
User Popularity
2k

Influence

242k

Total Hits

1

Posts