code: protected void generateTapPerClass(Result result) {
  
          Map<String, List<JUnitTestData>> testsByClass = new HashMap<>();
  
          for (JUnitTestData testMethod : testMethodsList) {
              String className = TapJUnitUtil.extractClassName(testMethod
                      .getDescription());
              testsByClass.computeIfAbsent(className, k -> new ArrayList<>())
                      .add(testMethod);
          }
  
          testsByClass.forEach((className, testMethods) -> {
              final TestSet testSet = new TestSet();
              testSet.setPlan(new Plan(testMethods.size()));
  
              testMethods.forEach(testMethod -> {
                  TestResult tapTestResult = TapJUnitUtil.generateTAPTestResult(
                          testMethod, 1, isYaml());
                  testSet.addTestResult(tapTestResult);
              });
  
              File output = new File(System.getProperty("tap.junit.results",
                      "target/"), className + ".tap");
              tapProducer.dump(testSet, output);
          });
      }
docs: Generate tap file for a class
  
  @param result