diff --git a/overview.html b/overview.html index 7667190..9e94107 100644 --- a/overview.html +++ b/overview.html @@ -3,7 +3,6 @@ Test Runs Overview - + @@ -42,15 +60,40 @@

Completed Tests

No completed tests found.

{{/tests}} {{#tests}} -

Category: {{category}}

- {{#group}}

Test: {{name}}

- - {{/group}} + {{/tests}} + \ No newline at end of file diff --git a/src/controller.ts b/src/controller.ts index 263d7df..7a4fc41 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -371,12 +371,13 @@ export class Controller { ...run, link: `${baseUrl}/${run.id}/${(run.status === TestRunStatus.done ? 'results/' : 'jmeter.log')}`, text: run.status === TestRunStatus.done ? 'results' : 'output', + stats: run.status === TestRunStatus.done ? `${baseUrl}/${run.id}/stats.xml` : null, })); const runsGroupedByCategory = _.groupBy(runs, (run: { category?: string }) => run.category); - const runsByCategoryAndName = _.keys(runsGroupedByCategory).map(x => { + const runsByCategoryAndName = _.orderBy(_.keys(runsGroupedByCategory)).map(x => { const categoryGroupedByName = _.groupBy(runsGroupedByCategory[x] || [], (run: { name: string }) => run.name); - const categoryByName = _.keys(categoryGroupedByName).map(x => ({ name: x, group: categoryGroupedByName[x] || [] })); + const categoryByName = _.orderBy(_.keys(categoryGroupedByName)).map(x => ({ name: x, group: categoryGroupedByName[x] || [] })); return { category: x, group: categoryByName }; });