Skip to content

Commit 02a352d

Browse files
authored
bump deps, fix tests (via allure-framework#52)
1 parent 87e4887 commit 02a352d

File tree

12 files changed

+820
-127
lines changed

12 files changed

+820
-127
lines changed

.github/workflows/build.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
push:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build71:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: '7.1.3'
19+
- name: Install
20+
run: composer update
21+
- name: Test
22+
run: composer test
23+
build72:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: '7.2'
30+
- name: Install
31+
run: composer update
32+
- name: Test
33+
run: composer test
34+
build73:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v1
38+
- uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: '7.3'
41+
- name: Install
42+
run: composer update
43+
- name: Test
44+
run: composer test
45+
build74:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v1
49+
- uses: shivammathur/setup-php@v2
50+
with:
51+
php-version: '7.4'
52+
- name: Install
53+
run: composer update
54+
- name: Test
55+
run: composer test
56+
build80:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v1
60+
- uses: shivammathur/setup-php@v2
61+
with:
62+
php-version: '8.0'
63+
- name: Install
64+
run: composer update
65+
- name: Test
66+
run: composer test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ vendor/*
44
composer.phar
55
composer.lock
66
nbproject
7+
/build
8+
.phpunit.result.cache

composer.json

Lines changed: 53 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,56 @@
11
{
2-
"name": "allure-framework/allure-phpunit",
3-
"keywords":["phpunit", "testing", "report", "steps", "attachments", "cases", "allure"],
4-
"description": "A PHPUnit adapter for Allure report.",
5-
"homepage": "http://allure.qatools.ru/",
6-
"license": "Apache-2.0",
7-
"authors": [
8-
{
9-
"name": "Ivan Krutov",
10-
"email": "[email protected]",
11-
"role": "Developer"
12-
}
13-
],
14-
"support": {
15-
"email": "[email protected]",
16-
"source": "https://github.com/allure-framework/allure-phpunit"
17-
},
18-
"require": {
19-
"php": ">=7.1.0",
20-
"phpunit/phpunit": ">=7.0.0",
21-
"mikey179/vfsStream": "1.*",
22-
"allure-framework/allure-php-api": "~1.1.0"
23-
},
24-
"autoload": {
25-
"psr-0": {
26-
"Yandex": "src/"
27-
}
2+
"name": "allure-framework/allure-phpunit",
3+
"keywords": [
4+
"phpunit",
5+
"testing",
6+
"report",
7+
"steps",
8+
"attachments",
9+
"cases",
10+
"allure"
11+
],
12+
"description": "A PHPUnit adapter for Allure report.",
13+
"homepage": "http://allure.qatools.ru/",
14+
"license": "Apache-2.0",
15+
"authors": [
16+
{
17+
"name": "Ivan Krutov",
18+
"email": "[email protected]",
19+
"role": "Developer"
20+
}
21+
],
22+
"support": {
23+
"email": "[email protected]",
24+
"source": "https://github.com/allure-framework/allure-phpunit"
25+
},
26+
"require": {
27+
"php": ">=7.1",
28+
"allure-framework/allure-php-api": "^1.3",
29+
"phpunit/phpunit": "^7.2 | ^8 | ^9"
30+
},
31+
"require-dev": {
32+
"ext-dom": "*",
33+
"mikey179/vfsstream": "^1"
34+
},
35+
"autoload": {
36+
"psr-0": {
37+
"Yandex": "src/"
2838
}
39+
},
40+
"autoload-dev": {
41+
"psr-0": {
42+
"Yandex": "test/"
43+
}
44+
},
45+
"scripts": {
46+
"test-unit": "vendor/bin/phpunit",
47+
"test-report": [
48+
"vendor/bin/phpunit --configuration=phpunit.report.xml --stderr 2> /dev/null; exit 0",
49+
"vendor/bin/phpunit --testsuite=report"
50+
],
51+
"test": [
52+
"@test-unit",
53+
"@test-report"
54+
]
55+
}
2956
}

phpunit.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

phpunit.report.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.2/phpunit.xsd"
5+
colors="true"
6+
defaultTestSuite="generate-report">
7+
<testsuites>
8+
<testsuite name="generate-report">
9+
<directory>test/Yandex/Allure/Report/Generate</directory>
10+
</testsuite>
11+
</testsuites>
12+
<listeners>
13+
<listener class="Yandex\Allure\PhpUnit\AllurePhpUnit">
14+
<arguments>
15+
<string>build/allure-results</string>
16+
<boolean>true</boolean>
17+
</arguments>
18+
</listener>
19+
</listeners>
20+
</phpunit>

phpunit.xml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
beStrictAboutTestsThatDoNotTestAnything="true"
5-
bootstrap="phpunit.php"
6-
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false"
12-
syntaxCheck="false"
13-
>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.0/phpunit.xsd"
5+
colors="true"
6+
defaultTestSuite="adapter">
147
<testsuites>
15-
<testsuite name="Allure PHPUnit Adapter Tests">
8+
<testsuite name="adapter">
169
<directory>test/Yandex/Allure/Adapter/</directory>
1710
</testsuite>
11+
<testsuite name="report">
12+
<directory>test/Yandex/Allure/Report/Check/</directory>
13+
</testsuite>
1814
</testsuites>
19-
</phpunit>
15+
</phpunit>

0 commit comments

Comments
 (0)