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

Juni5 tests with csvsource annotation are not identifying as tests

XMLWordPrintable

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

      @ParameterizedTest(name = "{1}")
      @CsvFileSource(resources = "/inputs.csv", numLinesToSkip = 1, maxCharsPerColumn = 999999999)
      @Test
      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]
      [INFO] Results:
      [INFO]
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      [INFO]
      [JENKINS] Recording test results

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

              Created:
              Updated: