task report: generate a JUnit report
This allows users to feed reports to tools such as Jenkins. Change-Id: I55f5fa282af8a8130be5c07bcdf8030fc591f6b7 Implements: blueprint task-report-junit
This commit is contained in:
parent
bdbe13ba3a
commit
ca17f8a8c2
@ -29,7 +29,7 @@ _rally()
|
||||
OPTS["task_delete"]="--force --uuid"
|
||||
OPTS["task_detailed"]="--uuid --iterations-data"
|
||||
OPTS["task_list"]="--deployment --all-deployments --status --uuids-only"
|
||||
OPTS["task_report"]="--tasks --out --open"
|
||||
OPTS["task_report"]="--tasks --out --open --html --junit"
|
||||
OPTS["task_results"]="--uuid"
|
||||
OPTS["task_sla_check"]="--uuid --json"
|
||||
OPTS["task_start"]="--deployment --task --task-args --task-args-file --tag --no-use --abort-on-sla-failure"
|
||||
@ -78,4 +78,4 @@ _rally()
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
complete -F _rally rally
|
||||
complete -F _rally rally
|
@ -138,6 +138,12 @@ class TaskTestCase(unittest.TestCase):
|
||||
rally.gen_report_path(extension="html")))
|
||||
self.assertRaises(utils.RallyCliError,
|
||||
rally, "task report --report %s" % FAKE_TASK_UUID)
|
||||
rally("task report --junit --out %s" %
|
||||
rally.gen_report_path(extension="junit"))
|
||||
self.assertTrue(os.path.exists(
|
||||
rally.gen_report_path(extension="junit")))
|
||||
self.assertRaises(utils.RallyCliError,
|
||||
rally, "task report --report %s" % FAKE_TASK_UUID)
|
||||
|
||||
def test_report_bunch_uuids(self):
|
||||
rally = utils.Rally()
|
||||
|
Loading…
Reference in New Issue
Block a user