diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..a2939dd11 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,20 @@ +name-template: '$NEXT_MINOR_VERSION' +tag-template: '$NEXT_MINOR_VERSION' +categories: + - title: '🚀 New Features' + labels: + - 'type:new feature' + - title: '🔬 Improvements' + labels: + - 'type:enhancement' + - title: '🐞 Bug Fixes' + labels: + - 'type:bug' + +change-template: '* $TITLE (via #$NUMBER) - @$AUTHOR' +template: | + $CHANGES + + ## 👀 Links + + [Commits since $PREVIOUS_TAG](https://github.com/allure-framework/allure2/compare/$PREVIOUS_TAG...master) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..2d8054a53 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,21 @@ +name: Build + +on: + pull_request: + branches: + - '*' + push: + branches: + - 'master' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: ./gradlew build buildDeb buildRpm diff --git a/.github/workflows/labels-verify.yml b/.github/workflows/labels-verify.yml new file mode 100644 index 000000000..faf8586e1 --- /dev/null +++ b/.github/workflows/labels-verify.yml @@ -0,0 +1,13 @@ +name: "Verify type labels" + +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: zwaldowski/match-label-action@v2 + with: + allowed: 'type:bug, type:enhancement, type:new feature' \ No newline at end of file diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml new file mode 100644 index 000000000..363a31018 --- /dev/null +++ b/.github/workflows/release-draft.yml @@ -0,0 +1,14 @@ +name: Release Draft + +on: + push: + branches: + - master + +jobs: + update_draft_release: + runs-on: ubuntu-latest + steps: + - uses: toolmantim/release-drafter@v5.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..328968c95 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,60 @@ +name: Release + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - run: echo "::set-output name=version::${GITHUB_REF:10}" + id: release + - name: "Gradle Build" + run: ./gradlew build buildRpm buildDeb -Pversion=${{ steps.release.outputs.version }} + - name: "Gradle Publish to Bintray" + env: + BINTRAY_USER: ${{ secrets.BINTRAY_USER }} + BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }} + run: ./gradlew bintrayUpload -Pversion=${{ steps.release.outputs.version }} + - name: "Publish Deb to GitHub" + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./allure-commandline/build/distributions/allure_${{ steps.release.outputs.version }}-1_all.deb + asset_name: allure_${{ steps.release.outputs.version }}-1_all.deb + asset_content_type: application/octet-stream + - name: "Publish Rpm to GitHub" + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./allure-commandline/build/distributions/allure-${{ steps.release.outputs.version }}-1.noarch.rpm + asset_name: allure_${{ steps.release.outputs.version }}-1.noarch.rpm + asset_content_type: application/octet-stream + - name: "Publish Zip to GitHub" + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./allure-commandline/build/distributions/allure-commandline-${{ steps.release.outputs.version }}.zip + asset_name: allure-${{ steps.release.outputs.version }}.zip + asset_content_type: application/octet-stream + - name: "Publish Tgz to GitHub" + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./allure-commandline/build/distributions/allure-commandline-${{ steps.release.outputs.version }}.tgz + asset_name: allure-${{ steps.release.outputs.version }}.tgz + asset_content_type: application/octet-stream diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index f489d4066..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,52 +0,0 @@ -pipeline { - agent { label 'java' } - parameters { - booleanParam(name: 'RELEASE', defaultValue: false, description: 'Perform release?') - string(name: 'RELEASE_VERSION', defaultValue: '', description: 'Release version') - string(name: 'NEXT_VERSION', defaultValue: '', description: 'Next version (without SNAPSHOT)') - } - stages { - stage('Build') { - steps { - sh './gradlew build' - } - } - stage('Demo') { - steps { - sh 'allure-commandline/build/install/allure-commandline/bin/allure generate ' + - 'allure-generator/test-data/demo --clean -o build/report-demo' - publishHTML([reportName : 'Demo Report', reportDir: 'build/report-demo', reportFiles: 'index.html', - reportTitles: '', allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false]) - - sh 'allure-commandline/build/install/allure-commandline/bin/allure generate ' + - 'allure-generator/test-data/demo2 --clean -o build/report-demo2' - publishHTML([reportName : 'Demo2 Report', reportDir: 'build/report-demo2', reportFiles: 'index.html', - reportTitles: '', allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false]) - } - } - stage('Release') { - when { expression { return params.RELEASE } } - steps { - withCredentials([usernamePassword(credentialsId: 'qameta-ci_bintray', - usernameVariable: 'BINTRAY_USER', passwordVariable: 'BINTRAY_API_KEY')]) { - sshagent(['qameta-ci_ssh']) { - sh 'git checkout master && git pull origin master' - sh "./gradlew release -Prelease.useAutomaticVersion=true " + - "-Prelease.releaseVersion=${RELEASE_VERSION} " + - "-Prelease.newVersion=${NEXT_VERSION}-SNAPSHOT" - } - } - } - } - } - post { - always { - allure results: [[path: '**/build/allure-results']] - deleteDir() - } - failure { - slackSend message: "${env.JOB_NAME} - #${env.BUILD_NUMBER} failed (<${env.BUILD_URL}|Open>)", - color: 'danger', teamDomain: 'qameta', channel: 'allure', tokenCredentialId: 'allure-channel' - } - } -} diff --git a/allure-commandline/build.gradle.kts b/allure-commandline/build.gradle.kts index b12a57214..3aaa7e6f2 100644 --- a/allure-commandline/build.gradle.kts +++ b/allure-commandline/build.gradle.kts @@ -1,5 +1,10 @@ +import com.netflix.gradle.plugins.deb.Deb +import com.netflix.gradle.plugins.rpm.Rpm +import org.gradle.kotlin.dsl.support.unzipTo + plugins { application + id("nebula.ospackage") version "8.4.1" } description = "Allure Commandline" @@ -50,6 +55,55 @@ tasks.build { dependsOn(tasks.installDist) } +val preparePackageOutput by tasks.creating { + group = "Build" + dependsOn(tasks.assemble) + + doLast { + unzipTo(file("build/package"), tasks.distZip.get().archiveFile.get().asFile) + } +} + +ospackage { + val pack = "build/package/allure-${project.version}" + val dest = "/usr/share/allure" + + packageName = "allure" + addParentDirs = false + + os = org.redline_rpm.header.Os.LINUX + release = "1" + + requires("java8-runtime | java8-runtime-headless | " + + "openjdk8-jre-headless | openjdk-8-jre | openjdk-8-jdk | " + + "oracle-java8-installer | oracle-java8-installer") + + from("${pack}/bin", closureOf { + into("${dest}/bin") + fileMode = 0x168 + }) + from("${pack}/config", closureOf { + into("${dest}/config") + fileType = org.redline_rpm.payload.Directive.NOREPLACE + }) + from("${pack}/lib", closureOf { + into("${dest}/lib") + }) + from("${pack}/plugins", closureOf { + into("${dest}/plugins") + }) + link("/usr/bin/allure", "${dest}/bin/allure") + +} + +val buildDeb by tasks.existing(Deb::class) { + dependsOn(preparePackageOutput) +} + +val buildRpm by tasks.existing(Rpm::class) { + dependsOn(preparePackageOutput) +} + dependencies { allurePlugin(project(path = ":behaviors-plugin", configuration = "allurePlugin")) allurePlugin(project(path = ":custom-logo-plugin", configuration = "allurePlugin")) diff --git a/allure-generator/src/main/javascript/blocks/executor-icon/github.svg b/allure-generator/src/main/javascript/blocks/executor-icon/github.svg new file mode 100644 index 000000000..463c8b08b --- /dev/null +++ b/allure-generator/src/main/javascript/blocks/executor-icon/github.svg @@ -0,0 +1,4 @@ + + GitHub icon + + \ No newline at end of file diff --git a/allure-generator/src/main/javascript/blocks/executor-icon/styles.scss b/allure-generator/src/main/javascript/blocks/executor-icon/styles.scss index 1ff10257d..d290db152 100644 --- a/allure-generator/src/main/javascript/blocks/executor-icon/styles.scss +++ b/allure-generator/src/main/javascript/blocks/executor-icon/styles.scss @@ -20,6 +20,10 @@ &__gitlab { background-image: url(./gitlab.svg) } + + &__github { + background-image: url(./github.svg) + } } .executor { diff --git a/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs b/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs index 9f14182f4..e787c166d 100644 --- a/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs +++ b/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs @@ -3,7 +3,7 @@
{{t 'testResult.history.successRate'}} {{successRate}} {{#if history.statistic.total}} - ({{history.statistic.passed}} of {{history.statistic.total}}) + ({{t 'testResult.history.statistic' passed=history.statistic.passed total=history.statistic.total}}) {{/if}}
{{#each history.items}} @@ -11,17 +11,17 @@ {{else}}
{{status}} - {{date time.start}} at {{time time.start}} + {{t 'testResult.history.time' date=(date time.start) time=(time time.start)}}
{{/if}} {{/each}} {{else}} - No history information are available. + {{t 'testResult.history.empty'}} {{/if}} \ No newline at end of file diff --git a/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs b/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs index 8395e0ebd..7a8fdd708 100644 --- a/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs +++ b/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs @@ -3,7 +3,7 @@ {{#each retries}} {{status}} - {{date time.start}} at {{time time.start}} + {{t 'testResult.retries.time' time=(date time.start) date=(time time.start)}}
{{statusDetails}}
{{/each}} diff --git a/allure-generator/src/main/javascript/translations/en.json b/allure-generator/src/main/javascript/translations/en.json index a556efc8c..548261043 100644 --- a/allure-generator/src/main/javascript/translations/en.json +++ b/allure-generator/src/main/javascript/translations/en.json @@ -112,13 +112,17 @@ }, "history": { "name": "History", - "successRate": "Success rate" + "successRate": "Success rate", + "statistic": "{{passed}} of {{total}}", + "time": "{{date}} at {{time}}", + "empty": "No history information available." }, "owner": { "name": "Owner" }, "retries": { "name": "Retries", + "time": "{{date}} at {{time}}", "empty": "There is no information available about test retries" }, "parameters": { @@ -134,7 +138,10 @@ "name": "Execution", "setup": "Set up", "teardown": "Tear down", - "body": "Test body" + "body": "Test body", + "downloadAttachment": { + "tooltip": "Open attachment in new tab" + } }, "stats": { "count": { diff --git a/allure-generator/src/main/javascript/translations/fr.json b/allure-generator/src/main/javascript/translations/fr.json new file mode 100644 index 000000000..a142265b7 --- /dev/null +++ b/allure-generator/src/main/javascript/translations/fr.json @@ -0,0 +1,212 @@ +{ + "status": { + "failed": "Échoué", + "broken": "Cassé", + "passed": "Passé", + "skipped": "Ignoré", + "unknown": "Inconnu", + "flaky": "Le test est instable", + "newFailed": "Le test a échoué (nouveau)." + }, + "marks": { + "flaky": "Instable", + "newFailed": "Échoué (nouveau)" + }, + "sorter": { + "order": "ordre", + "name": "nom", + "duration": "durée", + "status": "statut" + }, + "tab": { + "overview": { + "name": "Aperçu" + }, + "categories": { + "name": "Catégories" + }, + "suites": { + "name": "Suites" + }, + "graph": { + "name": "Graphiques" + }, + "timeline": { + "name": "Chronologie", + "selected": "{{count}} test sélectionné ({{percent}}%) avec une durée supérieure à {{duration}}", + "selected_plural": "{{count}} tests sélectionnés ({{percent}}%) avec une durée supérieure à {{duration}}" + } + }, + "widget": { + "summary": { + "aggregatedName": "Rapport agrégé", + "launches": "lancement", + "launches_plural": "lancements", + "testResults": "cas de test", + "testResults_plural": "cas de test" + }, + "trend": { + "name": "Tendance" + }, + "categoriesTrend": { + "name": "Tendance des catégories" + }, + "durationTrend": { + "name": "Tendance de la durée" + }, + "retryTrend": { + "name": "Tendance des tentatives" + }, + "executors": { + "name": "Exécuteurs", + "unknown": "Inconnu", + "empty": "Aucune information à propos des exécuteurs des tests" + }, + "launches": { + "name": "Lancements", + "empty": "Aucune information à propos des lancements" + }, + "environment": { + "name": "Environnement", + "empty": "Aucune variable d'environnement", + "showAll": "Afficher tout" + }, + "suites": { + "name": "Suites" + }, + "categories": { + "name": "Catégories" + } + }, + "chart": { + "duration": { + "name": "Durée", + "empty": "Il n'y a rien à montrer" + }, + "trend": { + "empty": "Il n'y a rien à montrer" + }, + "severity": { + "name": "Sévérité" + }, + "status": { + "name": "Statut" + } + }, + "testResult": { + "status": { + "empty": "Détails du statut vide", + "trace": "Afficher la trace" + }, + "overview": { + "name": "Aperçu" + }, + "categories": { + "name": "Catégories" + }, + "description": { + "name": "Description" + }, + "duration": { + "name": "Durée" + }, + "history": { + "name": "Historique", + "successRate": "Taux de succès", + "statistic": "{{passed}} sur {{total}}", + "time": "{{date}} à {{time}}", + "empty": "Aucune information à propos de l'historique." + }, + "owner": { + "name": "Propriétaire" + }, + "retries": { + "name": "Tentatives", + "time": "{{date}} à {{time}}", + "empty": "Aucune information à propos des tentatives" + }, + "parameters": { + "name": "Paramètres" + }, + "links": { + "name": "Liens" + }, + "severity": { + "name": "Sévérité" + }, + "execution": { + "name": "Exécution", + "setup": "Pré exécution", + "teardown": "Post exécution", + "body": "Contenu du test", + "downloadAttachment": { + "tooltip": "Ouvrir la pièce jointe dans un nouvel onglet" + } + }, + "stats": { + "count": { + "steps": "{{count}} sous-étape", + "steps_plural": "{{count}} sous-étapes", + "attachments": "{{count}} pièce jointe", + "attachments_plural": "{{count}} pièces jointes", + "parameters": "{{count}} paramètre", + "parameters_plural": "{{count}} paramètres" + } + } + }, + "controls": { + "collapse": "Plier", + "expand": "Déplier", + "fullscreen": "Plein écran", + "language": "Changer de langue", + "clipboard": "Copier dans le presse-papier", + "clipboardSuccess": "Copié avec succès", + "clipboardError": "Impossible de copier vers le presse-papier. Cette fonction ne semble pas être supportée par votre navigateur", + "backto": "Retour vers" + }, + "errors": { + "missedAttachment": "Pièce jointe non trouvée", + "notFound": "Non trouvé" + }, + "component": { + "tree": { + "filter": "Statut", + "filter-marks": "Marques", + "groups": "Basculer les informations des groupes", + "download": "Télécharger le fichier CSV", + "empty": "Il n'y a aucun article", + "time": { + "total" : { + "name": "Total", + "tooltip": "Durée depuis le premier test démarré jusqu'au dernier test terminé" + }, + "max": { + "name": "Maximum", + "tooltip": "Durée la plus longue" + }, + "sum": { + "name": "Somme", + "tooltip": "Somme de toutes les durées" + } + }, + "filtered": { + "total": "{{count}} résultat de test", + "total_plural": "{{count}} résultats de test", + "shown": "{{count}} montré" + } + }, + "widgetStatus": { + "showAll": "Montrer tout", + "total": "{{count}} article au total", + "total_plural": "{{count}} articles au total" + }, + "statusToggle": { + "showCases": "Montrer les résultats de test avec le statut {{status}}", + "hideCases": "Cacher les résultats de test avec le statut {{status}}" + }, + "markToggle": { + "showCases": "Montrer les résultats de test marqués {{mark}}", + "hideCases": "Cacher les résultats de test marqués {{mark}}" + } + } +} diff --git a/allure-generator/src/main/javascript/translations/nl.json b/allure-generator/src/main/javascript/translations/nl.json index b1d1754c5..dce53faac 100644 --- a/allure-generator/src/main/javascript/translations/nl.json +++ b/allure-generator/src/main/javascript/translations/nl.json @@ -1,8 +1,8 @@ { "status": { "failed": "Gefaald", - "broken": "Kapot", - "passed": "Geslaagd", + "broken": "Defect", + "passed": "Succes", "skipped": "Overgeslagen", "unknown": "Onbekend", "flaky": "Test is instabiel", @@ -69,7 +69,7 @@ "environment": { "name": "Omgeving", "empty": "Er zijn geen omgevingsvariabelen", - "showAll": "Toon alle" + "showAll": "Toon alles" }, "suites": { "name": "Suites" @@ -111,15 +111,19 @@ "name": "Duur" }, "history": { - "name": "Historie", - "successRate": "Slagingsratio" + "name": "Geschiedenis", + "successRate": "Slagingsratio", + "statistic": "{{passed}} van {{total}}", + "time": "{{date}} om {{time}}", + "empty": "Geen historische gegevens beschikbaar." }, "owner": { "name": "Eigenaar" }, "retries": { - "name": "Nieuwe pogingen", - "empty": "Er is geen informatie over nieuwe testpogingen." + "name": "Pogingen", + "time": "{{date}} om {{time}}", + "empty": "Geen informatie beschikbaar." }, "parameters": { "name": "Parameters" @@ -134,7 +138,10 @@ "name": "Uitvoering", "setup": "Set up", "teardown": "Tear down", - "body": "Test body" + "body": "Test body", + "downloadAttachment": { + "tooltip": "Bijlage in een nieuw tabblad openen" + } }, "stats": { "count": { @@ -171,15 +178,15 @@ "time": { "total" : { "name": "Totaal", - "tooltip": "Duur van eerste test gestart tot laatste test beëindigd" + "tooltip": "Doorloop van eerste test gestart tot laatste test beëindigd" }, "max": { - "name": "Langstdurend", + "name": "Langste", "tooltip": "Duur van de langste test" }, "sum": { "name": "Som", - "tooltip": "Duur van alle tests opgeteld" + "tooltip": "Opgetelde duur van alle tests" } }, "filtered": { @@ -189,13 +196,13 @@ } }, "widgetStatus": { - "showAll": "Toon alles", + "showAll": "Toon alle", "total": "{{count}} item in totaal", "total_plural": "{{count}} items in totaal" }, "statusToggle": { "showCases": "Toon testresultaten met status ‘{{status}}’", - "hideCases": "Verberg testresultaten met status ’{{status}}’" + "hideCases": "Verberg testresultaten met status ‘{{status}}’" }, "markToggle": { "showCases": "Toon testresultaten gemarkeerd als ‘{{mark}}’", diff --git a/allure-generator/src/main/javascript/utils/translation.js b/allure-generator/src/main/javascript/utils/translation.js index 9160df9a5..c54b7e990 100644 --- a/allure-generator/src/main/javascript/utils/translation.js +++ b/allure-generator/src/main/javascript/utils/translation.js @@ -1,40 +1,41 @@ -import i18next from 'i18next'; -import settings from './settings'; - -export const LANGUAGES = [ - {id: 'en', title: 'English'}, - {id: 'ru', title: 'Русский'}, - {id: 'zh', title: '中文'}, - {id: 'de', title: 'Deutsch'}, - {id: 'nl', title: 'Nederlands'}, - {id: 'he', title: 'Hebrew'}, - {id: 'br', title: 'Brazil'}, - {id: 'pl', title: 'Polski'}, - {id: 'ja', title: '日本語'}, - {id: 'es', title: 'Español'}, - {id: 'kr', title: '한국어'}, -]; - -LANGUAGES - .map(lang => lang.id) - .forEach(lang => addTranslation(lang, require('../translations/' + lang))); - -export function initTranslations() { - return new Promise((resolve, reject) => { - i18next.init({ - lng: settings.get('language'), - interpolation: { - escapeValue: false - }, - fallbackLng: 'en' - }, err => err ? reject(err) : resolve()); - }); -} - -export function addTranslation(lang, json) { - i18next.on('initialized', () => { - i18next.services.resourceStore.addResourceBundle(lang, i18next.options.ns[0], json, true, true); - }); -} - -export default i18next; +import i18next from 'i18next'; +import settings from './settings'; + +export const LANGUAGES = [ + {id: 'en', title: 'English'}, + {id: 'ru', title: 'Русский'}, + {id: 'zh', title: '中文'}, + {id: 'de', title: 'Deutsch'}, + {id: 'nl', title: 'Nederlands'}, + {id: 'he', title: 'Hebrew'}, + {id: 'br', title: 'Brazil'}, + {id: 'pl', title: 'Polski'}, + {id: 'ja', title: '日本語'}, + {id: 'es', title: 'Español'}, + {id: 'kr', title: '한국어'}, + {id: 'fr', title: 'Français'}, +]; + +LANGUAGES + .map(lang => lang.id) + .forEach(lang => addTranslation(lang, require('../translations/' + lang))); + +export function initTranslations() { + return new Promise((resolve, reject) => { + i18next.init({ + lng: settings.get('language'), + interpolation: { + escapeValue: false + }, + fallbackLng: 'en' + }, err => err ? reject(err) : resolve()); + }); +} + +export function addTranslation(lang, json) { + i18next.on('initialized', () => { + i18next.services.resourceStore.addResourceBundle(lang, i18next.options.ns[0], json, true, true); + }); +} + +export default i18next; diff --git a/gradle.properties b/gradle.properties index b6141eca2..e98af38fc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version=2.13.6 +version=2.14-SNAPSHOT org.gradle.daemon=true org.gradle.parallel=true diff --git a/plugins/behaviors-plugin/src/dist/static/index.js b/plugins/behaviors-plugin/src/dist/static/index.js index 8b35e3f14..ecde54e57 100644 --- a/plugins/behaviors-plugin/src/dist/static/index.js +++ b/plugins/behaviors-plugin/src/dist/static/index.js @@ -1,164 +1,178 @@ -'use strict'; - -allure.api.addTranslation('en', { - tab: { - behaviors: { - name: 'Behaviors' - } - }, - widget: { - behaviors: { - name: 'Features by stories', - showAll: 'show all' - } - } -}); - -allure.api.addTranslation('ru', { - tab: { - behaviors: { - name: 'Функциональность' - } - }, - widget: { - behaviors: { - name: 'Функциональность', - showAll: 'показать все' - } - } -}); - -allure.api.addTranslation('zh', { - tab: { - behaviors: { - name: '功能' - } - }, - widget: { - behaviors: { - name: '特性场景', - showAll: '显示所有' - } - } -}); - -allure.api.addTranslation('de', { - tab: { - behaviors: { - name: 'Verhalten' - } - }, - widget: { - behaviors: { - name: 'Features nach Stories', - showAll: 'Zeige alle' - } - } -}); - -allure.api.addTranslation('nl', { - tab: { - behaviors: { - name: 'Functionaliteit' - } - }, - widget: { - behaviors: { - name: 'Features en story’s', - showAll: 'Toon alle' - } - } -}); - -allure.api.addTranslation('he', { - tab: { - behaviors: { - name: 'התנהגויות' - } - }, - widget: { - behaviors: { - name: 'תכונות לפי סיפורי משתמש', - showAll: 'הצג הכול' - } - } -}); - -allure.api.addTranslation('br', { - tab: { - behaviors: { - name: 'Comportamentos' - } - }, - widget: { - behaviors: { - name: 'Funcionalidades por história', - showAll: 'Mostrar tudo' - } - } -}); - -allure.api.addTranslation('ja', { - tab: { - behaviors: { - name: '振る舞い' - } - }, - widget: { - behaviors: { - name: 'ストーリー別の機能', - showAll: '全て表示' - } - } -}); - -allure.api.addTranslation('es', { - tab: { - behaviors: { - name: 'Funcionalidades' - } - }, - widget: { - behaviors: { - name: 'Funcionalidades por Historias de Usuario', - showAll: 'mostrar todo' - } - } -}); - -allure.api.addTranslation('kr', { - tab: { - behaviors: { - name: '동작' - } - }, - widget: { - behaviors: { - name: '스토리별 기능', - showAll: '전체 보기' - } - } -}); - -allure.api.addTab('behaviors', { - title: 'tab.behaviors.name', icon: 'fa fa-list', - route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', - onEnter: (function (testGroup, testResult, testResultTab) { - return new allure.components.TreeLayout({ - testGroup: testGroup, - testResult: testResult, - testResultTab: testResultTab, - tabName: 'tab.behaviors.name', - baseUrl: 'behaviors', - url: 'data/behaviors.json', - csvUrl: 'data/behaviors.csv' - }); - }) -}); - -allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({ - rowTag: 'a', - title: 'widget.behaviors.name', - baseUrl: 'behaviors', - showLinks: true -})); \ No newline at end of file +'use strict'; + +allure.api.addTranslation('en', { + tab: { + behaviors: { + name: 'Behaviors' + } + }, + widget: { + behaviors: { + name: 'Features by stories', + showAll: 'show all' + } + } +}); + +allure.api.addTranslation('ru', { + tab: { + behaviors: { + name: 'Функциональность' + } + }, + widget: { + behaviors: { + name: 'Функциональность', + showAll: 'показать все' + } + } +}); + +allure.api.addTranslation('zh', { + tab: { + behaviors: { + name: '功能' + } + }, + widget: { + behaviors: { + name: '特性场景', + showAll: '显示所有' + } + } +}); + +allure.api.addTranslation('de', { + tab: { + behaviors: { + name: 'Verhalten' + } + }, + widget: { + behaviors: { + name: 'Features nach Stories', + showAll: 'Zeige alle' + } + } +}); + +allure.api.addTranslation('nl', { + tab: { + behaviors: { + name: 'Functionaliteit' + } + }, + widget: { + behaviors: { + name: 'Features en story’s', + showAll: 'Toon alle' + } + } +}); + +allure.api.addTranslation('he', { + tab: { + behaviors: { + name: 'התנהגויות' + } + }, + widget: { + behaviors: { + name: 'תכונות לפי סיפורי משתמש', + showAll: 'הצג הכול' + } + } +}); + +allure.api.addTranslation('br', { + tab: { + behaviors: { + name: 'Comportamentos' + } + }, + widget: { + behaviors: { + name: 'Funcionalidades por história', + showAll: 'Mostrar tudo' + } + } +}); + +allure.api.addTranslation('ja', { + tab: { + behaviors: { + name: '振る舞い' + } + }, + widget: { + behaviors: { + name: 'ストーリー別の機能', + showAll: '全て表示' + } + } +}); + +allure.api.addTranslation('es', { + tab: { + behaviors: { + name: 'Funcionalidades' + } + }, + widget: { + behaviors: { + name: 'Funcionalidades por Historias de Usuario', + showAll: 'mostrar todo' + } + } +}); + +allure.api.addTranslation('kr', { + tab: { + behaviors: { + name: '동작' + } + }, + widget: { + behaviors: { + name: '스토리별 기능', + showAll: '전체 보기' + } + } +}); + +allure.api.addTranslation('fr', { + tab: { + behaviors: { + name: 'Comportements' + } + }, + widget: { + behaviors: { + name: 'Thèmes par histoires', + showAll: 'Montrer tout' + } + } +}); + +allure.api.addTab('behaviors', { + title: 'tab.behaviors.name', icon: 'fa fa-list', + route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', + onEnter: (function (testGroup, testResult, testResultTab) { + return new allure.components.TreeLayout({ + testGroup: testGroup, + testResult: testResult, + testResultTab: testResultTab, + tabName: 'tab.behaviors.name', + baseUrl: 'behaviors', + url: 'data/behaviors.json', + csvUrl: 'data/behaviors.csv' + }); + }) +}); + +allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({ + rowTag: 'a', + title: 'widget.behaviors.name', + baseUrl: 'behaviors', + showLinks: true +})); diff --git a/plugins/packages-plugin/src/dist/static/index.js b/plugins/packages-plugin/src/dist/static/index.js index db84e6897..03964b4f5 100644 --- a/plugins/packages-plugin/src/dist/static/index.js +++ b/plugins/packages-plugin/src/dist/static/index.js @@ -1,96 +1,104 @@ -'use strict'; - -allure.api.addTranslation('en', { - tab: { - packages: { - name: 'Packages' - } - } -}); - -allure.api.addTranslation('ru', { - tab: { - packages: { - name: 'Пакеты' - } - } -}); - -allure.api.addTranslation('zh', { - tab: { - packages: { - name: '包' - } - } -}); - -allure.api.addTranslation('de', { - tab: { - packages: { - name: 'Pakete' - } - } -}); - -allure.api.addTranslation('nl', { - tab: { - packages: { - name: 'Packages' - } - } -}); - -allure.api.addTranslation('he', { - tab: { - packages: { - name: 'חבילות' - } - } -}); - -allure.api.addTranslation('br', { - tab: { - packages: { - name: 'Pacotes' - } - } -}); - -allure.api.addTranslation('ja', { - tab: { - packages: { - name: 'パッケージ' - } - } -}); - -allure.api.addTranslation('es', { - tab: { - packages: { - name: 'Paquetes' - } - } -}); - -allure.api.addTranslation('kr', { - tab: { - packages: { - name: '패키지' - } - } -}); - -allure.api.addTab('packages', { - title: 'tab.packages.name', icon: 'fa fa-align-left', - route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', - onEnter: (function (testGroup, testResult, testResultTab) { - return new allure.components.TreeLayout({ - testGroup: testGroup, - testResult: testResult, - testResultTab: testResultTab, - tabName: 'tab.packages.name', - baseUrl: 'packages', - url: 'data/packages.json' - }); - }) -}); +'use strict'; + +allure.api.addTranslation('en', { + tab: { + packages: { + name: 'Packages' + } + } +}); + +allure.api.addTranslation('ru', { + tab: { + packages: { + name: 'Пакеты' + } + } +}); + +allure.api.addTranslation('zh', { + tab: { + packages: { + name: '包' + } + } +}); + +allure.api.addTranslation('de', { + tab: { + packages: { + name: 'Pakete' + } + } +}); + +allure.api.addTranslation('nl', { + tab: { + packages: { + name: 'Packages' + } + } +}); + +allure.api.addTranslation('he', { + tab: { + packages: { + name: 'חבילות' + } + } +}); + +allure.api.addTranslation('br', { + tab: { + packages: { + name: 'Pacotes' + } + } +}); + +allure.api.addTranslation('ja', { + tab: { + packages: { + name: 'パッケージ' + } + } +}); + +allure.api.addTranslation('es', { + tab: { + packages: { + name: 'Paquetes' + } + } +}); + +allure.api.addTranslation('kr', { + tab: { + packages: { + name: '패키지' + } + } +}); + +allure.api.addTranslation('fr', { + tab: { + packages: { + name: 'Paquets' + } + } +}); + +allure.api.addTab('packages', { + title: 'tab.packages.name', icon: 'fa fa-align-left', + route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', + onEnter: (function (testGroup, testResult, testResultTab) { + return new allure.components.TreeLayout({ + testGroup: testGroup, + testResult: testResult, + testResultTab: testResultTab, + tabName: 'tab.packages.name', + baseUrl: 'packages', + url: 'data/packages.json' + }); + }) +});