generated from pagopa-archive/template-java-microservice
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from pagopa/allure-integration-reports
feat: adding allure integration reports
- Loading branch information
Showing
11 changed files
with
648 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM alpine:latest | ||
|
||
ARG ALLURE_RELEASE=2.25.0 | ||
ARG ALLURE_REPO=https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline | ||
COPY generate_allure_report.sh generate_allure_report.sh | ||
|
||
RUN apk update && \ | ||
apk add ca-certificates && \ | ||
update-ca-certificates && \ | ||
apk add openssl && \ | ||
apk add unzip && \ | ||
apk add --no-cache openjdk8-jre-base | ||
|
||
RUN wget ${ALLURE_REPO}/${ALLURE_RELEASE}/allure-commandline-${ALLURE_RELEASE}.tgz -O allure-commandline.tgz | ||
RUN tar -zxvf allure-commandline.tgz -C /opt/ | ||
RUN ln -s /opt/allure-${ALLURE_RELEASE}/bin/allure /usr/bin/allure | ||
RUN rm allure-commandline.tgz | ||
|
||
RUN allure --version | ||
CMD ["sh", "generate_allure_report.sh"] | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# generate allure report | ||
allure generate /app/allure/results -o /app/allure/reports --clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# example: sh ./run_integration_test.sh <local|dev|uat|prod> | ||
# example: sh ./run_integration_test.sh <local|dev|uat|prod> <old|allure> | ||
set -e | ||
|
||
ENVIRONMENT=$1 | ||
TYPE=$2 | ||
|
||
# run integration tests | ||
cd ./src || exit | ||
yarn install | ||
yarn add @azure/data-tables | ||
yarn test:"$1" | ||
yarn test-"$TYPE":"$ENVIRONMENT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.