if your e2e test has a sleep(5000) in it thats not a test…
if your e2e test has a sleep(5000) in it thats not a test, thats a prayer with a timeout
Unit, integration and end-to-end testing: tools, strategies and keeping suites fast.
if your e2e test has a sleep(5000) in it thats not a test, thats a prayer with a timeout
Qué onda raza. Después del post del martes maldito (el test que solo fallaba los martes, búsquenlo) varios me preguntaron por DM cómo le hacemos para mantener 900 tests e2e sin volvernos locos. Aquí va lo que neta nos funcionó. Nada de magia, pura chamba. 1. Deja de usar waitForTimeout Si tienes await page.waitForTimeout(3000) , ya perdiste. En tu máquina 3 segundos sobran, en CI con 2 CPUs no alcanzan. Usa las…
Story from March that I promised a few people. Clocks go back again on the 25th, so this is the right week. I work from Enugu for a London fintech. Nigeria is UTC+1 all year, no daylight saving. London is UTC+0 in winter and UTC+1 in summer. Our partner bank sends a settlement file per "London business day", midnight to midnight London time. Our reconciliation job builds the same window on our side and matches…
We have 12 services now (dont ask how, it happened over three years and two reorgs). The e2e suite is slow and flaky because it needs everything up at once, and the integration bugs we do catch are mostly "service A renamed a field and service B found out in production". Ive been reading about consumer driven contracts with Pact. Has anyone rolled it out across a bunch of teams? Specifically: did teams actually keep…
Honest question. In my team all the testing is on the target hardware: flash, run, look at the logs and the scope. We have some integration tests on a HIL bench but zero unit tests. When I propose unit tests, the people say is impossible because the code touch registers everywhere. Is a codebase of around 60k lines of C, STM32, FreeRTOS. The drivers call the HAL directly from the application logic in many places.…
Hello everyone) I collect flaky test causes like other people collect stamps. Here is my bingo card from the last 4 years. All real, all happened to me or my team. If you get a full row in one sprint, you deserve a day off. Row 1: Time 1. Test uses real current time. Fails at midnight, at end of month, on DST change. Fix: freeze time. In Playwright page.clock.setFixedTime() , in Jest or Vitest fake timers with a…
Quick context: 12 people, 5 engineers including me, TypeScript monorepo, Postgres, Vitest. In Q2 we had a mandate (from me, honestly 😅) to "use AI to fix our test debt". Coverage was 41% and our investors' tech DD person had made a face. What we did Every engineer used an AI assistant to generate tests for untested modules, about 30 minutes a day. Rule: tests must pass and get reviewed in the PR like any other…
Story time 😅. Friday 4pm, release for our Australian client at 5pm. Everything is green. Dev team already ordered bubble tea to celebrate. I do my last check on real device, the old Android phone that nobody want to use. Checkout button not work. Tap, nothing happen. On iPhone fine, on Chrome desktop fine, on the dev laptop of course fine. "Works on my machine" 3 times in 10 minutes. I write in channel: "Release…
promised this one ages ago so here it is. We had an end to end test for policy renewals. It ran every night at half twelve: create a policy starting today, jump forward a year, check the renewal quote and the end date. Green for months. Then one night at the end of October it went red, a policy that started on the 26th came out with an end date of the 25th the following year. Next night green again. Classic flake,…
ok this one took me 3 weeks and I need to share it because neta I still don't believe it. Context: I do QA automation for a US insurance app, Playwright + TypeScript, around 900 e2e tests that run every night on CI at 2am Central. We had one test, renew policy shows correct premium , that started failing. Not every night. Some nights. Rerun, it pass. Classic flaky, we put it on the quarantine list and move on. Then…
Ive been the person who gets pinged when CI goes red for about six years now, first in a fintech and now in insurance. After a while you notice the flakes arent random. They come in the same handful of flavours. Heres my list, roughly in order of how often I see them. 1. Racing the UI The test clicks before the button is ready, or reads text before the request came back. The fix people reach for is a sleep. Dont. In…
Dev: cannot reproduce Me: send video, steps, console log, HAR file, browser version, device model, screen size, battery percentage, moon phase Dev: cannot reproduce on my machine Me: so I send you my machine?? 🐞😅
Hello everyone, first post here 🐞. I am QA in Hanoi, we test web app for one Japanese client and one Australian client. This week I found a bug that is so funny I want to share. Symptom: Japanese client say "birthday field always say Invalid date". Australian client no problem. Dev team test it, no problem. Of course "cannot reproduce" 😅 First everybody think timezone, because it is always timezone. Not timezone.…
Good evening. Several members asked me in the comments what a "normal day" is like at a Japanese system integrator (we say SIer). I will try to explain honestly. I am sorry for my poor English and for the length. I wrote it on the train. 7:40 I take the train from my home in Sakai to the office in Umeda. It is crowded, but it is very punctual. The train is the most reliable system in my life, I think. 8:45 Chōrei…