-
Notifications
You must be signed in to change notification settings - Fork 45
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
49 changed files
with
2,698 additions
and
926 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,25 @@ | ||
# Define the line ending behavior of the different file extensions | ||
# Set default behavior, in case users don't have core.autocrlf set. | ||
* text text=auto eol=lf | ||
|
||
.php diff=php | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.bat eol=crlf | ||
|
||
# Declare files that will always have LF line endings on checkout. | ||
*.pem eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary | ||
*.ico binary | ||
*.mo binary | ||
*.pdf binary | ||
*.phar binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.ttf binary | ||
*.otf binary | ||
*.eot binary |
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 |
---|---|---|
|
@@ -10,68 +10,48 @@ on: | |
- 'hotfix-*' | ||
|
||
jobs: | ||
build71: | ||
runs-on: ubuntu-latest | ||
tests: | ||
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} (${{ matrix.composer-options }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "8.0" | ||
- "8.1" | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macOS-latest | ||
composer-options: | ||
- "" | ||
- "--prefer-lowest" | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: shivammathur/[email protected] | ||
with: | ||
php-version: '7.1.3' | ||
- name: Install | ||
run: composer install | ||
- name: Install | ||
run: composer validate | ||
- name: Test | ||
run: composer test | ||
build72: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: shivammathur/[email protected] | ||
with: | ||
php-version: '7.2' | ||
- name: Install | ||
run: composer install | ||
- name: Install | ||
run: composer validate | ||
- name: Test | ||
run: composer test | ||
build73: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: shivammathur/[email protected] | ||
with: | ||
php-version: '7.3' | ||
- name: Install | ||
run: composer install | ||
- name: Install | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
- name: Test | ||
run: composer test | ||
build74: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: shivammathur/[email protected] | ||
|
||
- name: Set up PHP ${{ matrix.php-version }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
- name: Install | ||
run: composer install | ||
- name: Install | ||
run: composer validate | ||
- name: Test | ||
php-version: ${{ matrix.php-version }} | ||
extensions: pcntl, posix, intl | ||
coverage: xdebug | ||
ini-values: error_reporting=E_ALL | ||
|
||
- name: Install dependencies | ||
run: composer update | ||
--prefer-dist | ||
--no-progress | ||
${{ matrix.composer-options }} | ||
|
||
- name: Run tests | ||
if: ${{ matrix.php-version != '8.1' }} | ||
run: composer test | ||
build80: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: shivammathur/[email protected] | ||
with: | ||
php-version: '8.0' | ||
- name: Install | ||
run: composer install | ||
- name: Install | ||
run: composer validate | ||
- name: Test | ||
|
||
- name: Run tests (experimental) | ||
if: ${{ matrix.php-version == '8.1' }} | ||
continue-on-error: true | ||
run: composer test |
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 |
---|---|---|
|
@@ -4,5 +4,6 @@ vendor/* | |
composer.phar | ||
composer.lock | ||
/build/ | ||
/test/codeception/_support/_generated/ | ||
.phpunit.result.cache | ||
|
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,21 +1,17 @@ | ||
namespace: Yandex\Allure\Codeception | ||
suites: | ||
unit: | ||
path: . | ||
namespace: Qameta\Allure\Codeception\Test | ||
|
||
settings: | ||
lint: true | ||
paths: | ||
tests: test/codeception | ||
output: build | ||
support: test/codeception/_support | ||
data: test/codeception | ||
data: test/codeception/_data | ||
extensions: | ||
enabled: | ||
- Yandex\Allure\Codeception\AllureCodeception | ||
- Qameta\Allure\Codeception\AllureCodeception | ||
config: | ||
Yandex\Allure\Codeception\AllureCodeception: | ||
deletePreviousResults: true | ||
Qameta\Allure\Codeception\AllureCodeception: | ||
outputDirectory: allure-results | ||
|
||
|
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 |
---|---|---|
|
@@ -8,45 +8,69 @@ | |
{ | ||
"name": "Ivan Krutov", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
"role": "Developer" | ||
}, | ||
{ | ||
"name": "Edward Surov", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
"support": { | ||
"email": "[email protected]", | ||
"source": "https://github.com/allure-framework/allure-codeception" | ||
}, | ||
"require": { | ||
"php": ">=7.1.3", | ||
"php": "^8", | ||
"ext-json": "*", | ||
"codeception/codeception": "^2.5 | ^3 | ^4", | ||
"allure-framework/allure-php-api": "^1.3", | ||
"symfony/filesystem": "^2.7 | ^3 | ^4 | ^5", | ||
"symfony/finder": "^2.7 | ^3 | ^4 | ^5" | ||
"codeception/codeception": "^4.1", | ||
"allure-framework/allure-php-commons": "2.0.0-rc3" | ||
}, | ||
"require-dev": { | ||
"ext-dom": "*", | ||
"phpunit/phpunit": "^7.2 | ^8 | ^9" | ||
"phpunit/phpunit": "^9", | ||
"psalm/plugin-phpunit": "^0.16.1", | ||
"remorhaz/php-json-data": "^0.5.3", | ||
"remorhaz/php-json-path": "^0.7.7", | ||
"squizlabs/php_codesniffer": "^3.6.1", | ||
"vimeo/psalm": "^4.10" | ||
}, | ||
"conflict": { | ||
"codeception/phpunit-wrapper": "<9.0.1" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Yandex": "src/" | ||
"psr-4": { | ||
"Qameta\\Allure\\Codeception\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Yandex\\Allure\\Codeception\\": [ | ||
"test/report/", | ||
"test/unit/" | ||
"Qameta\\Allure\\Codeception\\Test\\Functional\\": "test/codeception/functional/", | ||
"Qameta\\Allure\\Codeception\\Test\\Acceptance\\": "test/codeception/acceptance/", | ||
"Qameta\\Allure\\Codeception\\Test\\Unit\\": "test/codeception/unit/", | ||
"Qameta\\Allure\\Codeception\\Test\\": [ | ||
"test/codeception/_support/", | ||
"test/report/" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"test-report": [ | ||
"vendor/bin/codecept run --no-exit --report", | ||
"vendor/bin/phpunit --testsuite=report" | ||
"build": [ | ||
"vendor/bin/codecept build", | ||
"vendor/bin/codecept gherkin:snippets acceptance" | ||
], | ||
"test-cs": "vendor/bin/phpcs -sp", | ||
"test-report-generate": [ | ||
"rm -rf ./build/log/", | ||
"vendor/bin/codecept run --no-exit --report" | ||
], | ||
"test-report-check": "vendor/bin/phpunit --testsuite=report", | ||
"test-psalm": "vendor/bin/psalm --shepherd", | ||
"test": [ | ||
"@test-report" | ||
"@test-cs", | ||
"@test-report-generate", | ||
"@test-report-check", | ||
"@test-psalm" | ||
] | ||
} | ||
} |
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<ruleset name="Qameta Coding Standards"> | ||
<description>Qameta Coding Standards</description> | ||
|
||
<file>src</file> | ||
<file>test</file> | ||
|
||
<arg name="colors"/> | ||
|
||
<rule ref="PSR12" /> | ||
|
||
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"> | ||
<exclude-pattern>*/test/*Test.php</exclude-pattern> | ||
</rule> | ||
</ruleset> |
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,17 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"> | ||
<projectFiles> | ||
<directory name="src"/> | ||
<directory name="test/report/"/> | ||
<ignoreFiles> | ||
<directory name="vendor"/> | ||
</ignoreFiles> | ||
</projectFiles> | ||
<plugins> | ||
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/> | ||
</plugins> | ||
</psalm> |
Oops, something went wrong.