Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies updated, output dir cleanup fixed, tests fixed, system t… #52

Merged
merged 4 commits into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build

on:
pull_request:
branches:
- '*'
push:
branches:
- '*'

jobs:
build71:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: shivammathur/setup-php@v2
with:
php-version: '7.1.3'
- name: Install
run: composer update
- name: Test
run: composer test
build72:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
- name: Install
run: composer update
- name: Test
run: composer test
build73:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
- name: Install
run: composer update
- name: Test
run: composer test
build74:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install
run: composer update
- name: Test
run: composer test
build80:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Install
run: composer update
- name: Test
run: composer test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ vendor/*
composer.phar
composer.lock
nbproject
/build
.phpunit.result.cache
79 changes: 53 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,56 @@
{
"name": "allure-framework/allure-phpunit",
"keywords":["phpunit", "testing", "report", "steps", "attachments", "cases", "allure"],
"description": "A PHPUnit adapter for Allure report.",
"homepage": "http://allure.qatools.ru/",
"license": "Apache-2.0",
"authors": [
{
"name": "Ivan Krutov",
"email": "vania-pooh@yandex-team.ru",
"role": "Developer"
}
],
"support": {
"email": "allure@yandex-team.ru",
"source": "https://github.com/allure-framework/allure-phpunit"
},
"require": {
"php": ">=7.1.0",
"phpunit/phpunit": ">=7.0.0",
"mikey179/vfsStream": "1.*",
"allure-framework/allure-php-api": "~1.1.0"
},
"autoload": {
"psr-0": {
"Yandex": "src/"
}
"name": "allure-framework/allure-phpunit",
"keywords": [
"phpunit",
"testing",
"report",
"steps",
"attachments",
"cases",
"allure"
],
"description": "A PHPUnit adapter for Allure report.",
"homepage": "http://allure.qatools.ru/",
"license": "Apache-2.0",
"authors": [
{
"name": "Ivan Krutov",
"email": "vania-pooh@yandex-team.ru",
"role": "Developer"
}
],
"support": {
"email": "allure@yandex-team.ru",
"source": "https://github.com/allure-framework/allure-phpunit"
},
"require": {
"php": ">=7.1",
"allure-framework/allure-php-api": "^1.3",
"phpunit/phpunit": "^7.2 | ^8 | ^9"
},
"require-dev": {
"ext-dom": "*",
"mikey179/vfsstream": "^1"
},
"autoload": {
"psr-0": {
"Yandex": "src/"
}
},
"autoload-dev": {
"psr-0": {
"Yandex": "test/"
}
},
"scripts": {
"test-unit": "vendor/bin/phpunit",
"test-report": [
"vendor/bin/phpunit --configuration=phpunit.report.xml --stderr 2> /dev/null; exit 0",
"vendor/bin/phpunit --testsuite=report"
],
"test": [
"@test-unit",
"@test-report"
]
}
}
3 changes: 0 additions & 3 deletions phpunit.php

This file was deleted.

20 changes: 20 additions & 0 deletions phpunit.report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.2/phpunit.xsd"
colors="true"
defaultTestSuite="generate-report">
<testsuites>
<testsuite name="generate-report">
<directory>test/Yandex/Allure/Report/Generate</directory>
</testsuite>
</testsuites>
<listeners>
<listener class="Yandex\Allure\PhpUnit\AllurePhpUnit">
<arguments>
<string>build/allure-results</string>
<boolean>true</boolean>
</arguments>
</listener>
</listeners>
</phpunit>
24 changes: 10 additions & 14 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="true"
bootstrap="phpunit.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.0/phpunit.xsd"
colors="true"
defaultTestSuite="adapter">
<testsuites>
<testsuite name="Allure PHPUnit Adapter Tests">
<testsuite name="adapter">
<directory>test/Yandex/Allure/Adapter/</directory>
</testsuite>
<testsuite name="report">
<directory>test/Yandex/Allure/Report/Check/</directory>
</testsuite>
</testsuites>
</phpunit>
</phpunit>
Loading