Skip to content

Commit

Permalink
update 2023-11-07T20:35:04
Browse files Browse the repository at this point in the history
  • Loading branch information
qameta-ci committed Nov 7, 2023
1 parent 7051eda commit 7241029
Show file tree
Hide file tree
Showing 12 changed files with 468 additions and 272 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/allure-report.yml
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
34 changes: 30 additions & 4 deletions .gitignore
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
2 changes: 2 additions & 0 deletions .mvn/jvm.config
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 modified .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
19 changes: 18 additions & 1 deletion .mvn/wrapper/maven-wrapper.properties
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2018 Qameta Software
Copyright 2023 Qameta Software Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
27 changes: 3 additions & 24 deletions README.md
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/)
Loading

0 comments on commit 7241029

Please sign in to comment.