---
title: "Recycle your tests: many shades of green"
description: "trivago reuses a small subset of its existing Selenium/Cucumber end-to-end scenarios (via its internal framework trupi) for three extra jobs by adding Gherkin tags rather than new test code."
url: "https://swe.quest/articles/recycle-your-tests-many-shades-of-green-4564b5fe718b0f4b"
canonical: "https://tech.trivago.com/post/2026-11-12-recycle-your-tests-many-shades-of-green/"
source: "trivago tech"
published: "2026-11-12"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["testing","observability","web-performance","ci-cd"]
---

# Recycle your tests: many shades of green

A post on [trivago tech](https://swe.quest/sources/trivago.md), published 2026-11-12, 6 min read, Case study. Original: [https://tech.trivago.com/post/2026-11-12-recycle-your-tests-many-shades-of-green/](https://tech.trivago.com/post/2026-11-12-recycle-your-tests-many-shades-of-green/)

## Summary

trivago reuses a small subset of its existing Selenium/Cucumber end-to-end scenarios (via its internal framework trupi) for three extra jobs by adding Gherkin tags rather than new test code. The jobs are synthetic monitoring of production every 10 minutes across three GCP regions with Slack alerts, collecting lab-style RUM metrics (CSS/JS/image sizes, GraphQL call counts) after each release, and checking stage stability after backend changes. Running so many tests against stage degraded it, so the lesson is to reuse selectively. Recyclable tests share a few traits: configurable targets, no side effects, safe repetition, meaningful assertions, visible failures, and a small, fast footprint.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- end-to-end testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- Cucumber/Gherkin tags
- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

trupi, Selenium, Cucumber, Gherkin, GitHub Actions, Grafana, GraphQL

## Related posts

- [How we migrated our acceptance tests to use Synthetic Monitoring](https://swe.quest/articles/how-we-migrated-our-acceptance-tests-to-use-synthetic-monitoring-2bb2c26bbe1e995a.md): Datadog Engineering · 2023-06-30 · Medium · 8 min read · Testing, CI/CD, Developer productivity, Frontend
  Datadog's Frontend Developer Experience team replaced a flaky, hand-scripted Puppeteer acceptance test suite (565 tests, 100k lines, 6 CI jobs, 35 machine-minutes per commit) with recorded Synthetic Monitoring tests run from CI via a new CLI, synthetics-ci, later generalized into datadog-ci.
- [End-to-end test probes with Playwright](https://swe.quest/articles/end-to-end-test-probes-with-playwright-7071f390329a920e.md): Zalando Engineering · 2024-07-18 · Medium · 6 min read · Testing, Observability, Frontend, TypeScript
  Zalando turned its end-to-end tests into production probes: a small set of Playwright scenarios covering critical customer journeys runs every 30 minutes and pages on-call when it fails.
- [How we raised mobile end-to-end test stability to 98%](https://swe.quest/articles/how-we-raised-mobile-end-to-end-test-stability-to-98-ca68fcd3c9f171ff.md): Shopify Engineering · 2026-08-12 · Medium · 6 min read · Testing, Mobile, CI/CD, Computer vision, React
  Shopify rebuilt its mobile end-to-end test framework as an opinionated wrapper over Appium, raising test stability from 50% to 98% and returning the suite to blocking PR checks.
- [Monitor your CI performance using Sentry](https://swe.quest/articles/monitor-your-ci-performance-using-sentry-bda7e20d9e49dda7.md): Sentry · 2026-11-10 · Medium · 4 min read · CI/CD, Observability, Developer productivity
  Sentry's tracing model can represent GitHub Actions workflows as traces, with each job's steps as spans, so slow steps and run-to-run variance show up the same way they would for an API request.
- [Infrastructure Observability for Changing the Spend Curve](https://swe.quest/articles/infrastructure-observability-for-changing-the-spend-curve-815f49a6391b6804.md): Slack Engineering · 2021-10-07 · Medium · 10 min read · CI/CD, Cost optimization, Observability, Resilience, Capacity planning
  Slack bent the growth curve of its webapp CI spend, which had been rising about 10% month over month, by using observability (dashboards, metrics and tracing) to drive three changes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
