• SeductiveTortoise@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 days ago

      Their solution was to remove them from the pipeline. And I wondered why test coverage went down in SonarQube.

      0.9% is not a lot of coverage, let me tell you that.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        So I was given a project after a major part of it was made by an AI fanatic coworker and right before delivery, we were asked to make some specific types of documentation to submit.
        One of which included code coverage reports.

        The party receiving the documentation then said that they need 100% test coverage…
        Of a GUI application that interfaces with multiple proprietary devices over serial port, network, USB etc and is dependent upon the physical environment to get all code paths.

        I just gave that all to the AI fanatic coworker and am not even planning on reading the test code.
        If the program itself satisfies my logical requirements, I’ll ask him to change the test code to match the changed application code.

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            Whenever I have something to doubt, I make a test executable.
            But for GUI stuff, it has mostly been manually verified tests and not really in the tests configuration of cmake.

            I have seen automated GUI tests of Okular and I don’t want to have to implement them myself on a project that will have someone randomly ask during the acceptance procedure to change how a feature works.

            • SeductiveTortoise@piefed.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 days ago

              I prefer a mixture. I think automated tests are extremely helpful. But you should also use the application and create a test protocol you can follow again and again.