Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69550

Juni5 tests with csvsource annotation are not identifying as tests


      The test-class is having only one method for data driven framework.

      @ParameterizedTest(name = "{1}")
      @CsvFileSource(resources = "/inputs.csv", numLinesToSkip = 1, maxCharsPerColumn = 999999999)
      void attributeTest(String ip, String type) {
      if (type != null)

      { // do something }




      here, the @Test annotation is not used, this piece of code works in IDE, but while running in Jenkins it is not identifying it as a test method.

      [INFO] -------------------------------------------------------
      [INFO] T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Results:
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      [JENKINS] Recording test results

            pjhampton pete hampton
            purvi purvi pipaliya
            0 Vote for this issue
            1 Start watching this issue