Skip to content
Testing·Advanced·Conceptual·1 min read

Why should baselines be captured in CI rather than on a developer's machine?

Short interview answer

Different operating systems and GPUs render text and anti-aliasing slightly differently, so a baseline from a Mac will show spurious diffs when compared against a Linux CI render. Generating and comparing baselines in the same environment removes that entire class of noise.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Visual and snapshot testing

Related questions