Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None

    Description

      Some test suites are not using junit reporter like others. For example, Admission Controller etc.

      Below code has been used to generate the xml based report for test suites and has a prerequisite to create the log dir before in hand (it happens in MakeFile). As part of this jira, need to see if there is a way to create directory automatically if possible.

      ginkgo.ReportAfterSuite("TestBasicScheduling", func(report ginkgo.Report) {
      err := reporters.GenerateJUnitReportWithConfig(
      report,
      filepath.Join(configmanager.YuniKornTestConfig.LogDir, "basic_scheduling_junit.xml"),
      reporters.JunitReportConfig

      {OmitSpecLabels: true}

      ,
      )
      Ω(err).NotTo(HaveOccurred())
      })
      gomega.RegisterFailHandler(ginkgo.Fail)
      ginkgo.RunSpecs(t, "TestBasicScheduling", ginkgo.Label("TestBasicScheduling"))

      Attachments

        Issue Links

          Activity

            People

              samhxwu Hsuan Zong Wu
              mani Manikandan R
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: