NewsCrawler.org

Fixing chronically failing E2E tests at Knowledge Work by improving notifications

E2E テストの割れ窓を無くした話
Image: zenn.dev

Knowledge Work's platform team describes how it fixed its automated tests, which run daily in CI to catch regressions: E2E[1] tests control a browser like a user, AIT[2] tests call the APIs the frontend uses, and SIT[3] tests call internal APIs through an SDK. Failures were posted to Slack, but E2E and some AIT tests had failed so often that red results had become normal, which the author calls a "broken windows" state[4].

The team changed notifications so that each development team gets its own channel and mentions the whole team, not only frontend, QA or backend roles. Test results are now stored in the internal data platform and visualized with Lightdash. Each team also receives a daily Slack report where a failing day shows red, so a longer red run means a test has been left unfixed for longer.

The teams set a goal for September: no test of any product fails for five business days in a row, summed up as "five reds in a row is game over." According to the author, by September every test was fixed within a few days, and he believes the changes made tests easier to act on. The report also gained messages such as "Revival!" when a test returns to green and "ALL GREEN" when all tests pass.

Read the original zenn.dev

Sources

  • Zenn JA

    E2E テストの割れ窓を無くした話

    8 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page