You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Craig Condit (Jira)" <ji...@apache.org> on 2023/04/20 19:03:00 UTC
[jira] [Resolved] (YUNIKORN-1649) Use Junit reporter in all suites
[ https://issues.apache.org/jira/browse/YUNIKORN-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Craig Condit resolved YUNIKORN-1649.
------------------------------------
Fix Version/s: 1.3.0
Target Version: 1.3.0
Resolution: Fixed
Merged to master. Thanks [~samhxwu] for the contribution!
> Use Junit reporter in all suites
> --------------------------------
>
> Key: YUNIKORN-1649
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1649
> Project: Apache YuniKorn
> Issue Type: Sub-task
> Reporter: Manikandan R
> Assignee: Wu hsuang zong
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.3.0
>
>
> 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"))
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org