-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
468 additions
and
272 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Allure Report | ||
run-name: $ is creating Allure report 🚀 | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- '!main' | ||
|
||
jobs: | ||
autotests: | ||
name: Run tests and generate Allure Report | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Java 21 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 21 | ||
cache: 'maven' | ||
distribution: 'zulu' | ||
|
||
- name: Run Test | ||
run: ./mvnw verify | ||
continue-on-error: true | ||
|
||
- name: Setup Allure History | ||
uses: actions/[email protected] | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
|
||
- name: Generate Allure Report | ||
uses: simple-elf/[email protected] | ||
if: always() | ||
with: | ||
allure_results: target/allure-results | ||
allure_history: allure-history | ||
|
||
- name: Publish Allure Report | ||
if: always() | ||
uses: peaceiris/[email protected] | ||
env: | ||
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PUBLISH_BRANCH: gh-pages | ||
PUBLISH_DIR: allure-history |
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,8 +1,34 @@ | ||
#Allure | ||
.allure | ||
/*/allure-results/ | ||
|
||
# Idea files | ||
.idea | ||
#Maven | ||
target | ||
|
||
#Gradle | ||
.gradle | ||
build | ||
.gradletasknamecache | ||
|
||
#IDEA | ||
.idea/* | ||
*.iml | ||
*.ipr | ||
|
||
#Eclipse | ||
*.settings | ||
*.classpath | ||
*.project | ||
*.pydevproject | ||
|
||
#Netbeans | ||
**/nbproject/private/ | ||
**/nbproject/Makefile-*.mk | ||
**/nbproject/Package-*.bash | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ | ||
|
||
# Maven files | ||
target | ||
#Mac OS | ||
.DS_Store |
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,2 @@ | ||
--add-opens=java.base/java.lang=ALL-UNNAMED | ||
--add-opens=java.base/java.io=ALL-UNNAMED |
Binary file not shown.
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 +1,18 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar |
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 |
---|---|---|
@@ -1,26 +1,5 @@ | ||
### Allure JUnit5 Example (using Maven) | ||
# Example | ||
|
||
Clone the repo: | ||
|
||
```bash | ||
$ git clone [email protected]:allure-examples/allure-junit5-example.git | ||
``` | ||
|
||
Then build the project (build requires JDK 1.8 or higher): | ||
|
||
```bash | ||
$ ./mvnw clean verify | ||
``` | ||
|
||
Then, to build Allure report run | ||
|
||
```bash | ||
$ ./mvnw allure:report | ||
``` | ||
|
||
In order to view the report run | ||
|
||
```bash | ||
$ ./mvnw allure:serve | ||
``` | ||
Example of Allure Report usage with JUnit 5 (Jupiter), Kotlin and Maven | ||
|
||
The generated report is available here: [https://allure-examples.github.io/junit5-kotlin-maven](https://allure-examples.github.io/junit5-kotlin-maven/) |
Oops, something went wrong.