Skip to content

Tags

#testing

Unit, integration and end-to-end testing: tools, strategies and keeping suites fast.

16 posts

Posts tagged #testing

  1. Article

    5 cosas que hacen tus tests de Playwright flaky (y cómo arreglarlas sin poner sleep)

    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…

    Luis Treviño10likes10comments

  2. Experience

    Our reconciliation job was wrong every day for a week because London changed its clocks

    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…

    Emeka Nwosu21likes8comments

  3. Question

    Contract testing across 12 services: is Pact worth it or overkill?

    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…

    Siobhan O'Rourke3likes4comments

  4. Question

    How do you unit test firmware? We test almost nothing on host

    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.…

    Diego Ramírez3likes3comments

  5. Article

    Flaky test bingo: 12 squares I have seen in real life (with fixes)

    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…

    Iryna Melnyk27likes11comments

  6. Article

    We let AI write our tests for a quarter. Coverage went up, confidence did not

    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…

    Deniz Yıldırım30likes9comments

  7. Experience

    I blocked the release on Friday and whole team look at me like I kill their cat

    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…

    Trần Phương Thảo28likes12comments

  8. Experience

    the renewal test that only failed one night a year

    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,…

    Siobhan O'Rourke3likes3comments

  9. Experience

    The test that only failed on Tuesdays (yes, only Tuesdays)

    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…

    Luis Treviño38likes15comments

  10. Article

    the 5 kinds of flaky test i keep meeting, and what actually fixes them

    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…

    Siobhan O'Rourke5likes5comments

  11. Experience

    Bug of the week: date field only broken for Japanese users (and it was not timezone)

    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.…

    Trần Phương Thảo24likes8comments

  12. Experience

    A normal day at a Japanese SIer, explained as politely as I can

    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…

    Kazuhiro Yamamoto13likes10comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.