29 comments

  • OptionOfT 30 minutes ago

    The conversation is usually: devs can write their own tests. We don't need QA.

    And the first part is true. We can. But that's not why we have (had) QA.

    First: it's not the best use of our time. I believe dev and QA are separate skillset. Of course there is overlap.

    Second, and most important: it's a separate person, an additional person who can question the ticket, and who can question my translation of the ticket into software.

    And lastly: they don't suffer from the curse of knowledge on how I implemented the ticket.

    I miss my QA colleagues. When I joined my current employer there were 8 or so. Initially I was afraid to give them my work, afraid of bad feedback.

    Never have I met such graceful people who took the time in understanding something, and talking to me to figure out where there was a mismatch.

    And then they were deemed not needed.

      torginus 2 minutes ago

      I very rarely worked with good QA.

      In my mind a good QA understands the feature we're working on, deploys the correct version, thoroughly tests the feature understanding what it's supposed and not supposed to do, and if they happen to find a bug, they create a bug ticket where they describe the environment in full and what steps are necessary to reproduce it.

      For automation tests, very few are capable of writing tests that test the spec, not implementation, contain sound technical practices, and properly address flakiness.

      For example it's very common to see a test that clicks the login button and instead of waiting for the login, the wait 20 seconds. Which is both too much, and 1% of the time too little.

      Whenever I worked with devs, they almost always managed to do all this, sometimes they needed a bit of guidance, but that's it. Very very few QA ever did (not that they seemed to bothered by that).

      A lot of QA have expressed that devs 'look down' on them. I can't comment on that, but the signal-to-noise ratio of bug tickets is so low, that often it's you have to do their job and repeat everything as well.

      This has been a repeated experience for me with multiple companies and a lot of places don't have proper feedback loops, so it doesn't even bother them as they're not affected by the poor quality of bug reports, but devs have to spend the extra time.

  • tracerbulletx a minute ago

    My experience with this was great. It went really well. We also did our own ops with in a small boundary of systems organized based on domain. I felt total ownership for it, could fix anything in it, deploy anything with any release strategy, monitor anything, and because of that had very little anxiety about being on call for it, best environment I ever worked in.

  • terribleidea 6 minutes ago

    Most orgs I've worked for are so growth and product-focused that if you try adjusting your estimates to include proper testing, you get push back, and you have to ARGUE your case as to why a feature will take two weeks instead of one.

    This is the thing I hate the most about work, having to ARGUE with PMs because they can't accept an estimate, there's often some back-and-forth. "What if you do X instead?" "Team Y (always uses hacks and adds technical debt with every single feature they touch) did something similar in two days." But we're just communicating and adding transparency so that's good and it certainly doesn't matter that it starts taking up 4+ hours of your time in Slack conversations and meetings of people 'level setting' 'getting on the same page' trying to help you 'figure out' how to 'reduce scope' etc. etc.

    Also, I think testing via unit or integration tests should be standard regardless, and that isn't what I am thinking about here. I'm thinking about QA, the way QA does it. You hammer your feature with a bunch of weird bullshit like false and unexpected inputs, what happens if I refresh the page in strange ways, what happens if i make an update and force the cache to NOT clear, what happens if I drop my laptop in a dumpster while making the request from firefox and safari at the same time logged in as the same user, what happens if I turn off my internet in the middle of a file upload, and so on. When devs say that devs should be responsible for testing, they usually mean the former (unit and integration tests), and not this separate skillset of coming up with a bunch of weird edge cases for your code. And yes, unit tests SHOULD hit the edge cases, but QA is just better at it. You usually don't have engineers testing what happens when you try sending in Mandarin characters as input (unless they live in China, I guess). All of that effort should bring up your estimates because it is non-trivial. This is what getting rid of QA means, not happy path end-to-end testing plus some unit and integration tests.

  • sethammons 33 minutes ago

    While good points are made, I worry this gives the wrong impression. The paper doesn't say it is impossible, just hard. I have, very successfully, worked with dev owned testing.

    Why it worked: the team set the timelines for delivery of software, the team built their acceptance and integration tests based on system inputs and outputs based on the edges of their systems, the team owned being on-call, and the team automated as much as possible (no repeatable manual testing aside from sanity checks on first release).

    There was no QA person or team, but there was a quality focused dev on the team whose role was to ensure others kept the testing bar high. They ensured logs, metrics, and tests met the team bar. This role rotated.

    There was a ci/cd team. They made sure the test system worked, but teams maintained their own ci configuration. We used buildkite, so each project had its own buildkite.yml.

    The team was expected by eng leaders to set up basic testing before development. In one case, our team had to spend several sprints setting up generators to make the expected inputs and sinks to capture output. This was a flagship project and lots of future development was expected. It very much paid off.

    Our test approach was very much "slow is smooth and smooth is fast." We would deploy multiple times a day. Tests were 10 or so minutes and very comprehensive. If a bug got out, tests were updated. The tests were very reliable because the team prioritized them. Eventually people stopped even manually verifying their code because if the tests were green, you _knew_ it worked.

    Beyond our team, into the wider system, there was a light weight acceptance test setup and the team registered tests there, usually one per feature. This was the most brittle part because a failed test could be because another team or a system failure. But guess what? That is the same as production if not more noisy. So we had the same level of logging, metrics, and alerts (limited to business hours). Good logs would tell you immediately what was wrong. Automated alerts generally alerted the right team, and that team was responsible for a quick response.

    If a team was dropping the ball on system stability, that reflected bad on the team and they were to prioritize stability. It worked.

    Hands down the best dev org I have part of.

      regularfry 22 minutes ago

      I've worked in a strong dev-owned testing team too. The culture was a sort of positive can-I-catch-you-out competitiveness that can be quite hard to replicate, and there was no concept of any one person taking point on quality.

  • KingOfCoders 16 minutes ago

    Developers want things to work.

    QA wants things to break.

    What worked for me, devs write ALL the tests, QA does selective code reviews of those tests making devs write better tests.

    I also wrote the failure of Dev-Owned Testing: "Tests are bad for developers" https://www.amazingcto.com/tests-are-bad-for-developers/

  • thmpp an hour ago

    If as a developer you want to be seen as someone advancing and taking ownership and responsibility, testing must be part of the process. Sending an untested product or a product that you as a software engineer do not monitor, essentially means you can never be sure you created an actual correct product. That is no engineering. If the org guidelines prevent it, some cultural piece prevents it.

    Adding QA outside, which tests software regularly using different approaches, finding intersections etc. is a different topic. Both are necessary.

      sigmoid10 32 minutes ago

      The problem in big companies is that as a developer, you are usually several layers of people removed from the people actually using the product. Yes you can take ownership and implement unit tests and integration tests and e2e tests in your pipeline, to ensure the product works exactly as you intended. But that doesn't mean it works as management or marketing or the actual user intended.

  • kayo_20211030 an hour ago

    A nice piece that outlines all the challenges, the opportunities, and the cultural and social adjustments that need to be made within organizations to maximize the chance of left-shifted testing being successful.

    IMPO, as a developer, I see QA's role as being "auditors" with a mandate to set the guidelines, understand the process, and assess the outcomes. I'm wary of the foxes being completely responsible for guarding the hen-house unless the processes are structured and audited in a fundamentally different way. That takes fundamental organizational change.

  • donatj 3 minutes ago

    > The problem is not that dev-owned testing is a flawed idea, but that it is usually poorly planned

    In our case there was zero plan. One day they just let our entire QA team go. Literally no direction at all on how to deal with not having QA.

    It's been close to a year and we're still trying to figure out how to keep things from going on fire.

    For a while we were all testing each other's work. They're mad that this is slowing down our "velocity", and now they're pushing us to test our own work instead...

    Testing your own work is the kind of thing an imbecile recommends. I tested it while I wrote it. I thought it was good. Done. I have all the blind spots I had when I wrote it "testing it" after the fact.

  • weinzierl an hour ago

    The article argues that Dev-Owned testing isn't wrong but all the arguments it presents support that it is.

    I always understood shift-left as doing more tests earlier. That is pretty uncontroversial and where the article is still on the right track. It derails at the moment it equates shift-left with dev-owned testing - a common mistake.

    You can have quality owned by QA specialists in every development cycle and it is something that consistently works.

      TheSoftwareGuy an hour ago

      I'm interested, as I've never been in an org with QA specialists. What does that look like?

        bluGill 20 minutes ago

        You do everything the same as today. Then you turn it over to QA who keep finding weird things that you never thought of. QT finds more than half your written bugs (of course I don't write a bug everytime a unit test fails when doing TDD, but sometimes I find a bug in code I wrote a few weeks ago and I write that up so I can focus on the story I'm doing today and not forget about the bug)

        QA should not be replacing anything a developer does, it should be a supplement because you can't think of everything.

        We also use QA because we are making multi-million dollar embedded machines. One QA can put the code of 10 different developers on the machine and verify it works as well in the real world as it does in software simulation.

        weinzierl 37 minutes ago

        The are breakers. Good devs are makers.

        You can be both but I have yet to meet someone who is equally good in both mindsets.

  • __alexs an hour ago

    This just seems to be basically a blog post that somehow got published in ACM?

      pjdesno an hour ago

      No, they got it published in ACM SIGSOFT Software Engineering Notes.

      That's one of the things that publication is for.

      The paper is a well-supported (if not well-proofread) position paper, synthesizing the author's thoughts and others' prior work but not reporting any new experimental results or artifacts. The author isn't an academic, but someone at Amazon who has written nearly 20 articles like this, many reporting on the intersection of academic theory and the real world, all published in Software Engineering Notes.

      As an academic (in systems, not software engineering) who spent 15 years in industry before grad school, I think this perspective is valuable. In addition academics don't get much credit for this sort of article, so there are a lot fewer of them than there ought to be.

  • darkwater 9 minutes ago

    First they came with the NoOps movement, and you were happy cause those damned ops people were always complaining and slowing you down. I can manage .y infra!

    Then, they came with the dev-owned testing and fired all the QAs, and you were happy because they were always breaking your app and slowing you down. I can write my tests!

    Now, they are coming with LLM agents and you don't own the product...

  • brap an hour ago

    Do people actually send PRs with no tests? That is so bizarre to me

      pjdesno an hour ago

      If your review was based on features shipped, and your bosses let you send PRs with no tests, would you? And before you say "no" - would you still do that if your company used stack ranking, and you were worried about being at the bottom of the stack?

      Developers may understand that "XYZ is better", but if management provides enough incentives for "not XYZ", they're going to get "not XYZ".

        hamdingers 11 minutes ago

        Breaking prod repeatedly probably impacts your stack ranking too.

          Jtsummers 6 minutes ago

          Depends on how easily the failure is connected back to you personally. If you introduce a flaw this year and it breaks the system in two years, it won't fall back on you but the poor sap that triggered your bug.

      weinzierl 41 minutes ago

      > "Do people actually send PRs with no tests?"

      Rarely

      Do people send PRs with just enough mostly useless tests, just to tick the DoD boxes.

      All the time.

      xyzzy123 26 minutes ago

      It depends on the application but there are lots of situations where a proper test suite is 10x or more the development work of the feature. I've seen this most commonly with "heavy" integrations.

      A concrete example would be adding say saml+scim to a product; you can add a library and do a happy path test and call it a day. Maybe add a test against a captive idp in a container.

      But testing all the supported flows against each supported vendor becomes a major project in and of itself if you want to do it properly. The number of possible edge cases is extreme and automating deployment, updates and configuration of the peer products under test is a huge drag, especially if they are hostile to automation.

        vrighter 18 minutes ago

        Once, for a very very critical part of our product, apart from the usual tests, I ended up writing another implementation of the thing, completely separately from the original dev, before looking at his code. We then ran them side by side and ensured that all of their outputs matched perfectly.

        The "test implementation" ended up being more performant, and eventually the two implementations switched roles.

      brianwawok an hour ago

      When I spell text wrong! Or want to add a log. Lots of reasons something is too silly to need a test.

      liampulles 30 minutes ago

      I've seen it many times. I think it often arises in business that are not very technical at their core.

  • boxed 31 minutes ago

    I think they've got that the other way around.

  • mrits an hour ago

    Author-Owned proof reading is next