Improvements for task plot2html
CLI command `task plot2html' is renamed to `task report', however old name is still available for compatibility. HTML output of benchmark results is reworked: * scenario select dropdown is changed to aside menu, with scenarios methods grouped by classes * initially select scenario from URL hash * scenario results are divided into tabs * new layout and styling, from bootstrap framework * jQuery is removed * AngularJS is used for rendering all the data Change-Id: I00db7016900952f397681045ff99d07a0714fafe
This commit is contained in:
parent
6883dadce4
commit
f6650be203
@ -48,7 +48,7 @@ mkdir -p rally-plot/extra
|
||||
cp $BASE/new/rally/tests/ci/rally-gate/index.html rally-plot/extra/index.html
|
||||
cp $SCENARIO rally-plot/task.txt
|
||||
tar -czf rally-plot/plugins.tar.gz -C $RALLY_PLUGINS_DIR .
|
||||
rally task plot2html --out rally-plot/results.html
|
||||
rally task report --out rally-plot/results.html
|
||||
gzip -9 rally-plot/results.html
|
||||
rally task results | python -m json.tool > rally-plot/results.json
|
||||
gzip -9 rally-plot/results.json
|
||||
|
@ -61,15 +61,16 @@ class TaskTestCase(unittest.TestCase):
|
||||
rally("task start --task %s" % config.filename)
|
||||
self.assertIn("result", rally("task results"))
|
||||
|
||||
def test_plot2html(self):
|
||||
def test_report(self):
|
||||
rally = utils.Rally()
|
||||
cfg = self._get_sample_task_config()
|
||||
config = utils.TaskConfig(cfg)
|
||||
html_file = "/tmp/test_plot.html"
|
||||
rally("task start --task %s" % config.filename)
|
||||
if os.path.exists("/tmp/test_plot.html"):
|
||||
os.remove("/tmp/test_plot.html")
|
||||
rally("task plot2html /tmp/test_plot")
|
||||
self.assertTrue(os.path.exists("/tmp/test_plot.html"))
|
||||
if os.path.exists(html_file):
|
||||
os.remove(html_file)
|
||||
rally("task report /tmp/test_plot")
|
||||
self.assertTrue(os.path.exists(html_file))
|
||||
|
||||
def test_delete(self):
|
||||
rally = utils.Rally()
|
||||
|
Loading…
x
Reference in New Issue
Block a user