@allurereport/web-allure2 3.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.cjs +18 -0
- package/.eslintrc.cjs +125 -0
- package/README.md +27 -0
- package/dist/multi/154.app-9ac9d027.js +1 -0
- package/dist/multi/216.app-9ac9d027.js +1 -0
- package/dist/multi/232.app-9ac9d027.js +1 -0
- package/dist/multi/250.app-9ac9d027.js +1 -0
- package/dist/multi/256.app-9ac9d027.js +1 -0
- package/dist/multi/301.app-9ac9d027.js +1 -0
- package/dist/multi/323.app-9ac9d027.js +1 -0
- package/dist/multi/353.app-9ac9d027.js +1 -0
- package/dist/multi/411d15fc5bb62472eea6ead4fb276ca9.ico +0 -0
- package/dist/multi/564.app-9ac9d027.js +1 -0
- package/dist/multi/594.app-9ac9d027.js +1 -0
- package/dist/multi/623.app-9ac9d027.js +1 -0
- package/dist/multi/7.app-9ac9d027.js +1 -0
- package/dist/multi/729.app-9ac9d027.js +1 -0
- package/dist/multi/783.app-9ac9d027.js +1 -0
- package/dist/multi/826.app-9ac9d027.js +1 -0
- package/dist/multi/925.app-9ac9d027.js +1 -0
- package/dist/multi/app-9ac9d027.js +2 -0
- package/dist/multi/app-9ac9d027.js.LICENSE.txt +29 -0
- package/dist/multi/checkmark-c1a9ce12.svg +8 -0
- package/dist/multi/manifest.json +27 -0
- package/dist/multi/sort-down-icon-41195b0d.svg +8 -0
- package/dist/multi/sort-icon-fddc6c81.svg +8 -0
- package/dist/multi/sort-up-icon-d5bc65f6.svg +8 -0
- package/dist/multi/sprite.svg +4 -0
- package/dist/multi/styles-9ac9d027.css +558 -0
- package/dist/multi/vertical-5e6d1df4.png +0 -0
- package/dist/single/411d15fc5bb62472eea6ead4fb276ca9.ico +0 -0
- package/dist/single/app-f726ff87.js +2 -0
- package/dist/single/app-f726ff87.js.LICENSE.txt +29 -0
- package/dist/single/checkmark-c1a9ce12.svg +8 -0
- package/dist/single/manifest.json +10 -0
- package/dist/single/sort-down-icon-41195b0d.svg +8 -0
- package/dist/single/sort-icon-fddc6c81.svg +8 -0
- package/dist/single/sort-up-icon-d5bc65f6.svg +8 -0
- package/dist/single/sprite.svg +4 -0
- package/dist/single/styles-f726ff87.css +558 -0
- package/package.json +107 -0
- package/src/app.js +69 -0
- package/src/assets/icons/allure-logo.svg +45 -0
- package/src/assets/icons/bamboo.svg +31 -0
- package/src/assets/icons/bitbucket.svg +10 -0
- package/src/assets/icons/bomb.svg +7 -0
- package/src/assets/icons/broken.svg +10 -0
- package/src/assets/icons/bug.svg +10 -0
- package/src/assets/icons/chevron-down.svg +10 -0
- package/src/assets/icons/chevron-left.svg +10 -0
- package/src/assets/icons/chevron-right-fat.svg +10 -0
- package/src/assets/icons/chevron-right.svg +10 -0
- package/src/assets/icons/chevron-up.svg +10 -0
- package/src/assets/icons/circleci.svg +1 -0
- package/src/assets/icons/close.svg +10 -0
- package/src/assets/icons/collapse.svg +5 -0
- package/src/assets/icons/compare.svg +10 -0
- package/src/assets/icons/copy.svg +11 -0
- package/src/assets/icons/csv.svg +13 -0
- package/src/assets/icons/download.svg +11 -0
- package/src/assets/icons/draggable.svg +15 -0
- package/src/assets/icons/expand.svg +5 -0
- package/src/assets/icons/failed.svg +10 -0
- package/src/assets/icons/file.svg +3 -0
- package/src/assets/icons/folder.svg +10 -0
- package/src/assets/icons/github.svg +4 -0
- package/src/assets/icons/gitlab.svg +12 -0
- package/src/assets/icons/graphs.svg +11 -0
- package/src/assets/icons/history.svg +11 -0
- package/src/assets/icons/image.svg +3 -0
- package/src/assets/icons/info.svg +12 -0
- package/src/assets/icons/jenkins.svg +327 -0
- package/src/assets/icons/jobs.svg +12 -0
- package/src/assets/icons/link.svg +11 -0
- package/src/assets/icons/list.svg +13 -0
- package/src/assets/icons/maximize.svg +11 -0
- package/src/assets/icons/new-broken.svg +6 -0
- package/src/assets/icons/new-failed.svg +6 -0
- package/src/assets/icons/new-passed.svg +5 -0
- package/src/assets/icons/overview.svg +5 -0
- package/src/assets/icons/passed.svg +10 -0
- package/src/assets/icons/pdf.svg +13 -0
- package/src/assets/icons/refresh.svg +4 -0
- package/src/assets/icons/retries.svg +11 -0
- package/src/assets/icons/save.svg +10 -0
- package/src/assets/icons/skipped.svg +3 -0
- package/src/assets/icons/sort-down.svg +10 -0
- package/src/assets/icons/sort-up.svg +10 -0
- package/src/assets/icons/sort.svg +11 -0
- package/src/assets/icons/table.svg +10 -0
- package/src/assets/icons/task.svg +11 -0
- package/src/assets/icons/teamcity.svg +40 -0
- package/src/assets/icons/timeline.svg +12 -0
- package/src/assets/icons/tree.svg +10 -0
- package/src/assets/icons/txt.svg +11 -0
- package/src/assets/icons/unknown.svg +10 -0
- package/src/behaviors/ClipboardBehavior.js +34 -0
- package/src/behaviors/DownloadBehavior.js +42 -0
- package/src/behaviors/GaBehavior.js +27 -0
- package/src/behaviors/LoadBehavior.js +18 -0
- package/src/behaviors/TooltipBehavior.js +25 -0
- package/src/behaviors/index.js +7 -0
- package/src/blocks/alert/styles.scss +8 -0
- package/src/blocks/arrow/styles.scss +21 -0
- package/src/blocks/attachment-row/attachment-row.hbs +34 -0
- package/src/blocks/attachment-row/styles.scss +71 -0
- package/src/blocks/bar/styles.scss +22 -0
- package/src/blocks/button/styles.scss +60 -0
- package/src/blocks/clipboard-copy/clipboard-copy.hbs +5 -0
- package/src/blocks/executor-icon/bamboo.svg +31 -0
- package/src/blocks/executor-icon/bitbucket.svg +10 -0
- package/src/blocks/executor-icon/circleci.svg +1 -0
- package/src/blocks/executor-icon/default-icon.png +0 -0
- package/src/blocks/executor-icon/github.svg +4 -0
- package/src/blocks/executor-icon/gitlab.svg +12 -0
- package/src/blocks/executor-icon/jenkins.svg +327 -0
- package/src/blocks/executor-icon/styles.scss +15 -0
- package/src/blocks/executor-icon/teamcity.svg +40 -0
- package/src/blocks/island/styles.scss +7 -0
- package/src/blocks/label/styles.scss +15 -0
- package/src/blocks/link/styles.scss +10 -0
- package/src/blocks/pane/styles.scss +52 -0
- package/src/blocks/pane-header/pane-header.hbs +15 -0
- package/src/blocks/parameters-table/parameters-table.hbs +10 -0
- package/src/blocks/parameters-table/styles.scss +22 -0
- package/src/blocks/spinner/styles.scss +30 -0
- package/src/blocks/splash/styles.scss +13 -0
- package/src/blocks/status-details/status-details.hbs +13 -0
- package/src/blocks/status-details/styles.scss +32 -0
- package/src/blocks/step-stats/step-stats.hbs +15 -0
- package/src/blocks/step-stats/styles.scss +19 -0
- package/src/blocks/table/sort-down-icon.svg +1 -0
- package/src/blocks/table/sort-icon.svg +1 -0
- package/src/blocks/table/sort-up-icon.svg +1 -0
- package/src/blocks/table/sortable-col.hbs +4 -0
- package/src/blocks/table/styles.scss +64 -0
- package/src/blocks/tabs/styles.scss +29 -0
- package/src/blocks/tabs/tabs.hbs +5 -0
- package/src/blocks/text/styles.scss +5 -0
- package/src/blocks/widget/draggable.svg +1 -0
- package/src/blocks/widget/styles.scss +76 -0
- package/src/components/attachment/AttachmentView.hbs +58 -0
- package/src/components/attachment/AttachmentView.js +90 -0
- package/src/components/attachment/styles.scss +78 -0
- package/src/components/empty/EmptyView.hbs +3 -0
- package/src/components/empty/EmptyView.js +18 -0
- package/src/components/empty/styles.scss +4 -0
- package/src/components/error-splash/ErrorSplashView.hbs +4 -0
- package/src/components/error-splash/ErrorSplashView.js +19 -0
- package/src/components/error-splash/styles.scss +4 -0
- package/src/components/graph-base/BaseChartView.hbs +5 -0
- package/src/components/graph-base/BaseChartView.js +78 -0
- package/src/components/graph-base/styles.scss +66 -0
- package/src/components/graph-duration-chart/DurationChartView.js +100 -0
- package/src/components/graph-pie-chart/PieChartView.js +155 -0
- package/src/components/graph-severity-chart/SeverityChartView.js +100 -0
- package/src/components/graph-trend-chart/TrendChartView.js +202 -0
- package/src/components/graph-trend-chart/styles.scss +16 -0
- package/src/components/graph-trend-chart/trend-tooltip.hbs +9 -0
- package/src/components/language-select/LanguageSelectView.hbs +5 -0
- package/src/components/language-select/LanguageSelectView.js +42 -0
- package/src/components/language-select/checkmark.svg +1 -0
- package/src/components/language-select/styles.scss +34 -0
- package/src/components/loader/LoaderView.hbs +6 -0
- package/src/components/loader/LoaderView.js +21 -0
- package/src/components/loader/styles.scss +26 -0
- package/src/components/marks-toggle/MarksToggleView.hbs +14 -0
- package/src/components/marks-toggle/MarksToggleView.js +41 -0
- package/src/components/marks-toggle/styles.scss +38 -0
- package/src/components/modal/ModalView.hbs +13 -0
- package/src/components/modal/ModalView.js +43 -0
- package/src/components/modal/styles.scss +31 -0
- package/src/components/node-search/NodeSearchView.hbs +4 -0
- package/src/components/node-search/NodeSearchView.js +32 -0
- package/src/components/node-search/styles.scss +29 -0
- package/src/components/node-sorter/NodeSorterView.hbs +22 -0
- package/src/components/node-sorter/NodeSorterView.js +43 -0
- package/src/components/node-sorter/styles.scss +26 -0
- package/src/components/popover/PopoverView.js +8 -0
- package/src/components/popover/styles.scss +32 -0
- package/src/components/side-by-side/SideBySideView.hbs +2 -0
- package/src/components/side-by-side/SideBySideView.js +42 -0
- package/src/components/side-by-side/styles.scss +59 -0
- package/src/components/side-by-side/vertical.png +0 -0
- package/src/components/side-nav/SideNavView.hbs +39 -0
- package/src/components/side-nav/SideNavView.js +81 -0
- package/src/components/side-nav/styles.scss +118 -0
- package/src/components/status-toggle/StatusToggleView.hbs +16 -0
- package/src/components/status-toggle/StatusToggleView.js +42 -0
- package/src/components/status-toggle/styles.scss +35 -0
- package/src/components/testresult/TestResultView.hbs +32 -0
- package/src/components/testresult/TestResultView.js +90 -0
- package/src/components/testresult/styles.scss +29 -0
- package/src/components/testresult-execution/TestResultExecutionView.hbs +13 -0
- package/src/components/testresult-execution/TestResultExecutionView.js +85 -0
- package/src/components/testresult-execution/stages-block.hbs +47 -0
- package/src/components/testresult-execution/steps-list.hbs +31 -0
- package/src/components/testresult-execution/styles.scss +70 -0
- package/src/components/testresult-overview/TestResultOverviewView.hbs +8 -0
- package/src/components/testresult-overview/TestResultOverviewView.js +46 -0
- package/src/components/testresult-overview/styles.scss +22 -0
- package/src/components/testresult-tree/TestResultTreeView.js +60 -0
- package/src/components/tooltip/TooltipView.js +111 -0
- package/src/components/tooltip/styles.scss +43 -0
- package/src/components/tree/TreeView.hbs +9 -0
- package/src/components/tree/TreeView.js +200 -0
- package/src/components/tree/styles.scss +141 -0
- package/src/components/tree/tree-group.hbs +36 -0
- package/src/components/tree/tree-leaf.hbs +53 -0
- package/src/components/tree/tree-time.hbs +6 -0
- package/src/components/tree-view-container/TreeViewContainer.hbs +34 -0
- package/src/components/tree-view-container/TreeViewContainer.js +103 -0
- package/src/components/tree-view-container/styles.scss +38 -0
- package/src/components/widget-status/WidgetStatusView.hbs +21 -0
- package/src/components/widget-status/WidgetStatusView.js +17 -0
- package/src/components/widgets-grid/WidgetsGridView.js +90 -0
- package/src/components/widgets-grid/styles.scss +34 -0
- package/src/data/localstorage/LocalStorageModel.js +23 -0
- package/src/data/testresult/TestResultModel.js +36 -0
- package/src/data/tree/TreeCollection.js +153 -0
- package/src/data/tree/comparator.js +63 -0
- package/src/data/tree/filter.js +66 -0
- package/src/data/trend/TrendCollection.js +36 -0
- package/src/data/widgets/WidgetsModel.js +25 -0
- package/src/decorators/index.js +53 -0
- package/src/favicon.ico +0 -0
- package/src/helpers/allure-icon.js +228 -0
- package/src/helpers/and.js +3 -0
- package/src/helpers/angle.js +15 -0
- package/src/helpers/arrow.js +17 -0
- package/src/helpers/b.js +6 -0
- package/src/helpers/concat.js +3 -0
- package/src/helpers/date.js +11 -0
- package/src/helpers/default.js +8 -0
- package/src/helpers/duration.js +60 -0
- package/src/helpers/eq.js +3 -0
- package/src/helpers/fileicon.js +5 -0
- package/src/helpers/filesize.js +8 -0
- package/src/helpers/gt.js +3 -0
- package/src/helpers/inc.js +3 -0
- package/src/helpers/is-def.js +3 -0
- package/src/helpers/job-icon.js +8 -0
- package/src/helpers/linky.js +7 -0
- package/src/helpers/not.js +3 -0
- package/src/helpers/or.js +3 -0
- package/src/helpers/sort-class.js +6 -0
- package/src/helpers/statistic-bar.js +12 -0
- package/src/helpers/status-bar.js +14 -0
- package/src/helpers/t.js +5 -0
- package/src/helpers/text-with-links.js +18 -0
- package/src/helpers/time.js +18 -0
- package/src/helpers/timeago.js +10 -0
- package/src/index.html +17 -0
- package/src/index.js +52 -0
- package/src/layouts/application/AppLayout.hbs +2 -0
- package/src/layouts/application/AppLayout.js +50 -0
- package/src/layouts/application/styles.scss +17 -0
- package/src/layouts/error/ErrorLayout.js +11 -0
- package/src/layouts/overview/OverviewLayout.js +8 -0
- package/src/layouts/testresult/TestResultLayout.js +43 -0
- package/src/layouts/tree/TreeLayout.js +45 -0
- package/src/mixins.scss +128 -0
- package/src/pluginApi.js +26 -0
- package/src/plugins/.eslintrc +5 -0
- package/src/plugins/default/index.js +11 -0
- package/src/plugins/screen-diff/index.js +186 -0
- package/src/plugins/screen-diff/styles.css +30 -0
- package/src/plugins/tab-behaviors/index.js +239 -0
- package/src/plugins/tab-category/index.js +15 -0
- package/src/plugins/tab-graph/GraphCollection.js +12 -0
- package/src/plugins/tab-graph/GraphLayout.js +17 -0
- package/src/plugins/tab-graph/index.js +8 -0
- package/src/plugins/tab-packages/index.js +137 -0
- package/src/plugins/tab-suites/index.js +15 -0
- package/src/plugins/tab-timeline/TimelineLayout.js +18 -0
- package/src/plugins/tab-timeline/TimelineView.hbs +17 -0
- package/src/plugins/tab-timeline/TimelineView.js +250 -0
- package/src/plugins/tab-timeline/index.js +12 -0
- package/src/plugins/tab-timeline/styles.scss +76 -0
- package/src/plugins/testresult-category/CategoryView.hbs +6 -0
- package/src/plugins/testresult-category/CategoryView.js +17 -0
- package/src/plugins/testresult-category/index.js +3 -0
- package/src/plugins/testresult-description/DescriptionView.hbs +4 -0
- package/src/plugins/testresult-description/DescriptionView.js +16 -0
- package/src/plugins/testresult-description/index.js +3 -0
- package/src/plugins/testresult-duration/DurationView.hbs +7 -0
- package/src/plugins/testresult-duration/DurationView.js +16 -0
- package/src/plugins/testresult-duration/index.js +3 -0
- package/src/plugins/testresult-history/HistoryView.hbs +27 -0
- package/src/plugins/testresult-history/HistoryView.js +33 -0
- package/src/plugins/testresult-history/index.js +3 -0
- package/src/plugins/testresult-history/styles.scss +10 -0
- package/src/plugins/testresult-links/LinksView.hbs +17 -0
- package/src/plugins/testresult-links/LinksView.js +17 -0
- package/src/plugins/testresult-links/index.js +3 -0
- package/src/plugins/testresult-links/styles.scss +19 -0
- package/src/plugins/testresult-owner/OwnerView.hbs +4 -0
- package/src/plugins/testresult-owner/OwnerView.js +17 -0
- package/src/plugins/testresult-owner/index.js +3 -0
- package/src/plugins/testresult-parameters/ParametersView.hbs +13 -0
- package/src/plugins/testresult-parameters/ParametersView.js +22 -0
- package/src/plugins/testresult-parameters/index.js +3 -0
- package/src/plugins/testresult-parameters/styles.scss +8 -0
- package/src/plugins/testresult-retries/RetriesView.hbs +13 -0
- package/src/plugins/testresult-retries/RetriesView.js +28 -0
- package/src/plugins/testresult-retries/index.js +3 -0
- package/src/plugins/testresult-retries/styles.scss +11 -0
- package/src/plugins/testresult-severity/SeverityView.hbs +4 -0
- package/src/plugins/testresult-severity/SeverityView.js +17 -0
- package/src/plugins/testresult-severity/index.js +3 -0
- package/src/plugins/testresult-tags/TagsView.hbs +5 -0
- package/src/plugins/testresult-tags/TagsView.js +17 -0
- package/src/plugins/testresult-tags/index.js +3 -0
- package/src/plugins/widget-categories/index.js +12 -0
- package/src/plugins/widget-categories-trend/CategoriesTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-categories-trend/CategoriesTrendWidgetView.js +33 -0
- package/src/plugins/widget-categories-trend/index.js +4 -0
- package/src/plugins/widget-categories-trend/styles.scss +6 -0
- package/src/plugins/widget-duration/DurationWidgetView.hbs +4 -0
- package/src/plugins/widget-duration/DurationWidgetView.js +23 -0
- package/src/plugins/widget-duration/index.js +3 -0
- package/src/plugins/widget-duration-trend/DurationTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-duration-trend/DurationTrendWidgetView.js +49 -0
- package/src/plugins/widget-duration-trend/index.js +4 -0
- package/src/plugins/widget-duration-trend/styles.scss +6 -0
- package/src/plugins/widget-environment/EnvironmentWidget.hbs +27 -0
- package/src/plugins/widget-environment/EnvironmentWidget.js +25 -0
- package/src/plugins/widget-environment/index.js +3 -0
- package/src/plugins/widget-executor/ExecutorsWidgetView.hbs +40 -0
- package/src/plugins/widget-executor/ExecutorsWidgetView.js +8 -0
- package/src/plugins/widget-executor/index.js +3 -0
- package/src/plugins/widget-history-trend/HistoryTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-history-trend/HistoryTrendWidgetView.js +30 -0
- package/src/plugins/widget-history-trend/index.js +6 -0
- package/src/plugins/widget-history-trend/styles.scss +6 -0
- package/src/plugins/widget-launch/LaunchesWidgetView.hbs +23 -0
- package/src/plugins/widget-launch/LaunchesWidgetView.js +8 -0
- package/src/plugins/widget-launch/index.js +3 -0
- package/src/plugins/widget-retry-trend/RetryTrendWidgetView.hbs +4 -0
- package/src/plugins/widget-retry-trend/RetryTrendWidgetView.js +33 -0
- package/src/plugins/widget-retry-trend/index.js +4 -0
- package/src/plugins/widget-retry-trend/styles.scss +6 -0
- package/src/plugins/widget-severity/SeverityWidgetView.hbs +4 -0
- package/src/plugins/widget-severity/SeverityWidgetView.js +23 -0
- package/src/plugins/widget-severity/index.js +3 -0
- package/src/plugins/widget-status/StatusWidgetView.hbs +4 -0
- package/src/plugins/widget-status/StatusWidgetView.js +44 -0
- package/src/plugins/widget-status/index.js +3 -0
- package/src/plugins/widget-suites/index.js +12 -0
- package/src/plugins/widget-summary/SummaryWidgetView.hbs +20 -0
- package/src/plugins/widget-summary/SummaryWidgetView.js +33 -0
- package/src/plugins/widget-summary/index.js +3 -0
- package/src/plugins/widget-summary/styles.scss +14 -0
- package/src/router.js +52 -0
- package/src/rtl.scss +19 -0
- package/src/styles.scss +91 -0
- package/src/translations/az.json +217 -0
- package/src/translations/br.json +205 -0
- package/src/translations/de.json +205 -0
- package/src/translations/en.json +222 -0
- package/src/translations/es.json +209 -0
- package/src/translations/fr.json +217 -0
- package/src/translations/he.json +205 -0
- package/src/translations/isv.json +216 -0
- package/src/translations/ja.json +210 -0
- package/src/translations/kr.json +210 -0
- package/src/translations/nl.json +217 -0
- package/src/translations/pl.json +220 -0
- package/src/translations/ru.json +215 -0
- package/src/translations/sv.json +222 -0
- package/src/translations/tr.json +217 -0
- package/src/translations/zh.json +191 -0
- package/src/utils/arrays.js +3 -0
- package/src/utils/attachmentType.js +101 -0
- package/src/utils/clipboard.js +38 -0
- package/src/utils/escape.js +5 -0
- package/src/utils/gtag.js +8 -0
- package/src/utils/highlight.js +14 -0
- package/src/utils/hotkeys.js +25 -0
- package/src/utils/loading.js +9 -0
- package/src/utils/marks.js +1 -0
- package/src/utils/pluginsRegistry.js +56 -0
- package/src/utils/settings.js +4 -0
- package/src/utils/settingsFactory.js +149 -0
- package/src/utils/sorting.js +21 -0
- package/src/utils/statuses.js +1 -0
- package/src/utils/translation.js +63 -0
- package/src/variables.scss +71 -0
- package/types.d.ts +5 -0
- package/webpack/utils.js +10 -0
- package/webpack.config.js +127 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import $ from "jquery";
|
|
3
|
+
import { className, on } from "@/decorators/index.js";
|
|
4
|
+
import router from "@/router.js";
|
|
5
|
+
import template from "./RetriesView.hbs";
|
|
6
|
+
import "./styles.scss";
|
|
7
|
+
|
|
8
|
+
@className("test-result-retries")
|
|
9
|
+
class RetriesView extends View {
|
|
10
|
+
template = template;
|
|
11
|
+
|
|
12
|
+
serializeData() {
|
|
13
|
+
const extra = this.model.get("extra");
|
|
14
|
+
const retries = extra ? extra.retries : null;
|
|
15
|
+
return {
|
|
16
|
+
cls: this.className,
|
|
17
|
+
retries: retries,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@on("click .retry-row")
|
|
22
|
+
onRetryClick(e) {
|
|
23
|
+
const uid = $(e.currentTarget).data("uid");
|
|
24
|
+
router.toUrl(`#testresult/${uid}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default RetriesView;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import { className } from "@/decorators/index.js";
|
|
3
|
+
import template from "./SeverityView.hbs";
|
|
4
|
+
|
|
5
|
+
@className("pane__section")
|
|
6
|
+
class SeverityView extends View {
|
|
7
|
+
template = template;
|
|
8
|
+
|
|
9
|
+
serializeData() {
|
|
10
|
+
const extra = this.model.get("extra");
|
|
11
|
+
return {
|
|
12
|
+
severity: extra ? extra.severity : null,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default SeverityView;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import { className } from "@/decorators/index.js";
|
|
3
|
+
import template from "./TagsView.hbs";
|
|
4
|
+
|
|
5
|
+
@className("pane__section")
|
|
6
|
+
class TagsView extends View {
|
|
7
|
+
template = template;
|
|
8
|
+
|
|
9
|
+
serializeData() {
|
|
10
|
+
const extra = this.model.get("extra");
|
|
11
|
+
return {
|
|
12
|
+
tags: extra ? extra.tags : null,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default TagsView;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import WidgetStatusView from "@/components/widget-status/WidgetStatusView.js";
|
|
2
|
+
|
|
3
|
+
allure.api.addWidget(
|
|
4
|
+
"widgets",
|
|
5
|
+
"categories",
|
|
6
|
+
WidgetStatusView.extend({
|
|
7
|
+
rowTag: "a",
|
|
8
|
+
title: "widget.categories.name",
|
|
9
|
+
baseUrl: "categories",
|
|
10
|
+
showLinks: true,
|
|
11
|
+
}),
|
|
12
|
+
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import { scaleOrdinal } from "d3-scale";
|
|
3
|
+
import { interpolateYlOrRd } from "d3-scale-chromatic";
|
|
4
|
+
import { range } from "underscore";
|
|
5
|
+
import TrendChartView from "@/components/graph-trend-chart/TrendChartView.js";
|
|
6
|
+
import { className, regions } from "@/decorators/index.js";
|
|
7
|
+
import template from "./CategoriesTrendWidgetView.hbs";
|
|
8
|
+
import "./styles.scss";
|
|
9
|
+
|
|
10
|
+
@regions({
|
|
11
|
+
chart: ".categories-trend__chart",
|
|
12
|
+
})
|
|
13
|
+
@className("categories-trend")
|
|
14
|
+
class CategoriesTrendWidgetView extends View {
|
|
15
|
+
template = template;
|
|
16
|
+
|
|
17
|
+
onRender() {
|
|
18
|
+
const keys = this.model.sortedKeysByLastValue();
|
|
19
|
+
const colors = scaleOrdinal(range(0, 1, 1 / keys.length).map((d) => interpolateYlOrRd(1 - d)));
|
|
20
|
+
this.showChildView(
|
|
21
|
+
"chart",
|
|
22
|
+
new TrendChartView({
|
|
23
|
+
model: this.model,
|
|
24
|
+
keys,
|
|
25
|
+
colors,
|
|
26
|
+
hideLines: true,
|
|
27
|
+
hidePoints: true,
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default CategoriesTrendWidgetView;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import DurationChartView from "@/components/graph-duration-chart/DurationChartView.js";
|
|
3
|
+
import { className, regions } from "@/decorators/index.js";
|
|
4
|
+
import template from "./DurationWidgetView.hbs";
|
|
5
|
+
|
|
6
|
+
@className("duration-widget")
|
|
7
|
+
@regions({
|
|
8
|
+
chart: ".duration-widget__content",
|
|
9
|
+
})
|
|
10
|
+
class DurationWidgetView extends View {
|
|
11
|
+
template = template;
|
|
12
|
+
|
|
13
|
+
onRender() {
|
|
14
|
+
this.showChildView(
|
|
15
|
+
"chart",
|
|
16
|
+
new DurationChartView({
|
|
17
|
+
model: this.model.get("items"),
|
|
18
|
+
}),
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default DurationWidgetView;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import { interpolateRgb } from "d3-interpolate";
|
|
3
|
+
import { scaleLinear, scaleOrdinal } from "d3-scale";
|
|
4
|
+
import { last } from "underscore";
|
|
5
|
+
import TrendChartView from "@/components/graph-trend-chart/TrendChartView.js";
|
|
6
|
+
import { className, regions } from "@/decorators/index.js";
|
|
7
|
+
import duration from "@/helpers/duration.js";
|
|
8
|
+
import template from "./DurationTrendWidgetView.hbs";
|
|
9
|
+
import "./styles.scss";
|
|
10
|
+
|
|
11
|
+
@regions({
|
|
12
|
+
chart: ".duration-trend__chart",
|
|
13
|
+
})
|
|
14
|
+
@className("duration-trend")
|
|
15
|
+
class DurationTrendWidgetView extends View {
|
|
16
|
+
template = template;
|
|
17
|
+
|
|
18
|
+
onRender() {
|
|
19
|
+
const key = "duration";
|
|
20
|
+
const values = this.model.map((model) => model.get("data")[key]);
|
|
21
|
+
const lastExtremum = Math.min(
|
|
22
|
+
...[(d) => d >= 0, (d) => d <= 0].map((op) =>
|
|
23
|
+
values.reduce((m, c, i) => (op(c - values[i - 1]) ? i : m), last(values)),
|
|
24
|
+
),
|
|
25
|
+
);
|
|
26
|
+
const amplitude = Math.max(...values) - Math.min(...values);
|
|
27
|
+
const lastDelta = values[lastExtremum] - last(values);
|
|
28
|
+
|
|
29
|
+
const level = scaleLinear().domain([0, Math.max(amplitude, 0.25 * Math.max(...values))]);
|
|
30
|
+
|
|
31
|
+
level.range(lastDelta > 0 ? ["#c4cac6", "#31a354"] : ["#cdc5c4", "#e34a33"]).interpolate(interpolateRgb);
|
|
32
|
+
|
|
33
|
+
const colors = scaleOrdinal().range([level(Math.abs(lastDelta))]);
|
|
34
|
+
|
|
35
|
+
this.showChildView(
|
|
36
|
+
"chart",
|
|
37
|
+
new TrendChartView({
|
|
38
|
+
model: this.model,
|
|
39
|
+
hidePoints: true,
|
|
40
|
+
hideLines: true,
|
|
41
|
+
colors,
|
|
42
|
+
keys: [key],
|
|
43
|
+
yTickFormat: (d) => duration(d, 2),
|
|
44
|
+
}),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default DurationTrendWidgetView;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<h2 class="widget__title">
|
|
2
|
+
{{t 'widget.environment.name'}}
|
|
3
|
+
</h2>
|
|
4
|
+
{{#if items}}
|
|
5
|
+
<div class="table table_hover widget__table">
|
|
6
|
+
{{#each items}}
|
|
7
|
+
<div class="{{b "table" "row"}}" disabled>
|
|
8
|
+
<div class="{{b "table" "col"}} long-line">
|
|
9
|
+
{{name}}
|
|
10
|
+
</div>
|
|
11
|
+
<div class="{{b "table" "col"}} long-line">
|
|
12
|
+
{{#each values}}
|
|
13
|
+
{{linky this}}{{#unless @last}},<br>{{/unless}}
|
|
14
|
+
{{/each}}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
{{/each}}
|
|
18
|
+
{{#if overLimit}}
|
|
19
|
+
<a class="{{b "table" "row"}} clickable environment-widget__expand">
|
|
20
|
+
<div class="{{b "table" "col" center=true}}">{{t 'widget.environment.showAll'}}</div>
|
|
21
|
+
</a>
|
|
22
|
+
{{/if}}
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
{{else}}
|
|
26
|
+
<div class="widget__noitems">{{t 'widget.environment.empty'}}</div>
|
|
27
|
+
{{/if}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import { on } from "@/decorators/index.js";
|
|
3
|
+
import template from "./EnvironmentWidget.hbs";
|
|
4
|
+
|
|
5
|
+
export default class EnvironmentWidget extends View {
|
|
6
|
+
template = template;
|
|
7
|
+
|
|
8
|
+
initialize() {
|
|
9
|
+
this.listLimit = 5;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@on("click .environment-widget__expand")
|
|
13
|
+
onExpandClick() {
|
|
14
|
+
this.listLimit = this.model.get("items").length;
|
|
15
|
+
this.render();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
serializeData() {
|
|
19
|
+
const items = this.model.get("items");
|
|
20
|
+
return {
|
|
21
|
+
items: items.slice(0, this.listLimit),
|
|
22
|
+
overLimit: items.length > this.listLimit,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<h2 class="widget__title">
|
|
2
|
+
{{t 'widget.executors.name'}}
|
|
3
|
+
</h2>
|
|
4
|
+
<div class="table table_hover widget__table">
|
|
5
|
+
{{#if items}}
|
|
6
|
+
{{#each items}}
|
|
7
|
+
<span class="table__row">
|
|
8
|
+
<div class="{{b 'table' 'col'}} executor">
|
|
9
|
+
<div class="executor-icon">
|
|
10
|
+
{{job-icon type width="32px" height="32px"}}
|
|
11
|
+
<span>{{name}}</span>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
{{#if buildName}}
|
|
15
|
+
<div class="{{b 'table' 'col' right=true}} executor">
|
|
16
|
+
{{#if buildUrl}}
|
|
17
|
+
<a class="link" href="{{buildUrl}}">
|
|
18
|
+
{{buildName}}
|
|
19
|
+
{{allure-icon "link" noTooltip=true width="12px" height="12px"}}
|
|
20
|
+
</a>
|
|
21
|
+
{{else}}
|
|
22
|
+
{{buildName}}
|
|
23
|
+
{{/if}}
|
|
24
|
+
|
|
25
|
+
</div>
|
|
26
|
+
{{else}}
|
|
27
|
+
<div class="{{b 'table' 'col' right=true}}">
|
|
28
|
+
{{t 'widget.executors.unknown'}}
|
|
29
|
+
</div>
|
|
30
|
+
{{/if}}
|
|
31
|
+
</span>
|
|
32
|
+
{{/each}}
|
|
33
|
+
{{else}}
|
|
34
|
+
<div class="table__row">
|
|
35
|
+
<div class="{{b 'table' 'col' center=true}}">
|
|
36
|
+
{{t 'widget.executors.empty'}}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
{{/if}}
|
|
40
|
+
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import { scaleOrdinal } from "d3-scale";
|
|
3
|
+
import TrendChartView from "@/components/graph-trend-chart/TrendChartView.js";
|
|
4
|
+
import { className, regions } from "@/decorators/index.js";
|
|
5
|
+
import { values } from "@/utils/statuses.js";
|
|
6
|
+
import template from "./HistoryTrendWidgetView.hbs";
|
|
7
|
+
import "./styles.scss";
|
|
8
|
+
|
|
9
|
+
@regions({
|
|
10
|
+
chart: ".history-trend__chart",
|
|
11
|
+
})
|
|
12
|
+
@className("history-trend")
|
|
13
|
+
class HistoryTrendWidgetView extends View {
|
|
14
|
+
template = template;
|
|
15
|
+
|
|
16
|
+
onRender() {
|
|
17
|
+
this.showChildView(
|
|
18
|
+
"chart",
|
|
19
|
+
new TrendChartView({
|
|
20
|
+
model: this.model,
|
|
21
|
+
hideLines: true,
|
|
22
|
+
hidePoints: true,
|
|
23
|
+
colors: scaleOrdinal(["#fd5a3e", "#ffd050", "#97cc64", "#aaa", "#d35ebe"]).domain(values),
|
|
24
|
+
keys: values,
|
|
25
|
+
}),
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default HistoryTrendWidgetView;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import TrendCollection from "@/data/trend/TrendCollection.js";
|
|
2
|
+
import HistoryTrendWidgetView from "./HistoryTrendWidgetView.js";
|
|
3
|
+
|
|
4
|
+
allure.api.addWidget("widgets", "history-trend", HistoryTrendWidgetView, TrendCollection);
|
|
5
|
+
|
|
6
|
+
allure.api.addWidget("graph", "history-trend", HistoryTrendWidgetView, TrendCollection);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<h2 class="widget__title">
|
|
2
|
+
{{t 'widget.launches.name'}}
|
|
3
|
+
</h2>
|
|
4
|
+
<div class="table table_hover widget__table">
|
|
5
|
+
{{#if items}}
|
|
6
|
+
{{#each items}}
|
|
7
|
+
<div class="table__row">
|
|
8
|
+
<div class="{{b 'table' 'col'}}">
|
|
9
|
+
{{name}}
|
|
10
|
+
</div>
|
|
11
|
+
<div class="{{b 'table' 'col'}}">
|
|
12
|
+
{{status-bar statistic}}
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
{{/each}}
|
|
16
|
+
{{else}}
|
|
17
|
+
<div class="table__row">
|
|
18
|
+
<div class="{{b 'table' 'col' center=true}}">
|
|
19
|
+
{{t 'widget.launches.empty'}}
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
{{/if}}
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import { scaleOrdinal } from "d3-scale";
|
|
3
|
+
import { interpolateYlOrRd } from "d3-scale-chromatic";
|
|
4
|
+
import TrendChartView from "@/components/graph-trend-chart/TrendChartView.js";
|
|
5
|
+
import { className, regions } from "@/decorators/index.js";
|
|
6
|
+
import template from "./RetryTrendWidgetView.hbs";
|
|
7
|
+
import "./styles.scss";
|
|
8
|
+
|
|
9
|
+
@regions({
|
|
10
|
+
chart: ".retry-trend__chart",
|
|
11
|
+
})
|
|
12
|
+
@className("retry-trend")
|
|
13
|
+
class RetryTrendWidgetView extends View {
|
|
14
|
+
template = template;
|
|
15
|
+
|
|
16
|
+
onRender() {
|
|
17
|
+
const { retry, run } = this.model.last().get("data");
|
|
18
|
+
const retriesPercent = Math.min(0.3 + Math.min(retry, run) / run, 1);
|
|
19
|
+
const colors = scaleOrdinal(["#4682b4", interpolateYlOrRd(retriesPercent)]);
|
|
20
|
+
this.showChildView(
|
|
21
|
+
"chart",
|
|
22
|
+
new TrendChartView({
|
|
23
|
+
model: this.model,
|
|
24
|
+
keys: ["run", "retry"],
|
|
25
|
+
colors,
|
|
26
|
+
hideLines: true,
|
|
27
|
+
hidePoints: true,
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default RetryTrendWidgetView;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { View } from "backbone.marionette";
|
|
2
|
+
import SeverityChartView from "@/components/graph-severity-chart/SeverityChartView.js";
|
|
3
|
+
import { className, regions } from "@/decorators/index.js";
|
|
4
|
+
import template from "./SeverityWidgetView.hbs";
|
|
5
|
+
|
|
6
|
+
@className("severity-widget")
|
|
7
|
+
@regions({
|
|
8
|
+
chart: ".severity-widget__content",
|
|
9
|
+
})
|
|
10
|
+
class SeverityWidgetView extends View {
|
|
11
|
+
template = template;
|
|
12
|
+
|
|
13
|
+
onRender() {
|
|
14
|
+
this.showChildView(
|
|
15
|
+
"chart",
|
|
16
|
+
new SeverityChartView({
|
|
17
|
+
model: this.model.get("items"),
|
|
18
|
+
}),
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default SeverityWidgetView;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Model } from "backbone";
|
|
2
|
+
import { View } from "backbone.marionette";
|
|
3
|
+
import PieChartView from "@/components/graph-pie-chart/PieChartView.js";
|
|
4
|
+
import { className, regions } from "@/decorators/index.js";
|
|
5
|
+
import template from "./StatusWidgetView.hbs";
|
|
6
|
+
|
|
7
|
+
@className("status-widget")
|
|
8
|
+
@regions({
|
|
9
|
+
chart: ".status-widget__content",
|
|
10
|
+
})
|
|
11
|
+
class StatusWidgetView extends View {
|
|
12
|
+
template = template;
|
|
13
|
+
|
|
14
|
+
onRender() {
|
|
15
|
+
this.showChildView(
|
|
16
|
+
"chart",
|
|
17
|
+
new PieChartView({
|
|
18
|
+
model: this.getStatusChartData(),
|
|
19
|
+
showLegend: true,
|
|
20
|
+
}),
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
getStatusChartData() {
|
|
25
|
+
this.items = this.model.get("items");
|
|
26
|
+
const statistic = this.items.reduce(
|
|
27
|
+
(stats, testResult) => {
|
|
28
|
+
stats[testResult.status.toLowerCase()]++;
|
|
29
|
+
return stats;
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
total: this.items.length,
|
|
33
|
+
failed: 0,
|
|
34
|
+
broken: 0,
|
|
35
|
+
skipped: 0,
|
|
36
|
+
passed: 0,
|
|
37
|
+
unknown: 0,
|
|
38
|
+
},
|
|
39
|
+
);
|
|
40
|
+
return new Model({ statistic });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default StatusWidgetView;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import WidgetStatusView from "@/components/widget-status/WidgetStatusView.js";
|
|
2
|
+
|
|
3
|
+
allure.api.addWidget(
|
|
4
|
+
"widgets",
|
|
5
|
+
"suites",
|
|
6
|
+
WidgetStatusView.extend({
|
|
7
|
+
rowTag: "a",
|
|
8
|
+
title: "widget.suites.name",
|
|
9
|
+
baseUrl: "suites",
|
|
10
|
+
showLinks: true,
|
|
11
|
+
}),
|
|
12
|
+
);
|