Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
a3d69ba
Create php.yml
vansari Jul 13, 2021
812965c
Create php.yml
DavertMik Jul 13, 2021
58ad08f
Feature/refactor codeception robo (#56)
vansari Jul 13, 2021
d508764
Update php.yml
DavertMik Jul 13, 2021
a463568
Update php.yml
DavertMik Jul 13, 2021
0cb8810
Update README.md
DavertMik Jul 13, 2021
6f4d4aa
Update php.yml
DavertMik Jul 13, 2021
9a7997c
Merge remote-tracking branch 'upstream/master'
vansari Jul 14, 2021
a7b3e9c
Feature/filter split tests by groups (#60)
vansari Jul 18, 2021
36db36c
Fix split by time (#57)
DavertMik Jul 20, 2021
1f3e773
Update README.md
DavertMik Jul 20, 2021
e8232e8
Merge remote-tracking branch 'upstream/master'
vansari Jul 22, 2021
38effbd
Feature/reporter ext and splitter for failed tests (#66)
vansari Jul 25, 2021
d33606a
Merge remote-tracking branch 'upstream/master'
vansari Jul 26, 2021
1f066dd
Hotfix/remove return from tests splitter task run (#68)
vansari Jul 26, 2021
93f6a74
Merge remote-tracking branch 'upstream/master'
vansari Jul 30, 2021
30dd285
Bugfix/fix extension failed tests writer (#75)
vansari Aug 6, 2021
ed5796b
Bugfix/merge html correction execution time (#74)
vansari Aug 6, 2021
7fa1640
testsFrom() method allow string or array (#73)
ccsuperstar Aug 6, 2021
8fe2370
Revert "testsFrom() method allow string or array (#73)" (#77)
DavertMik Aug 6, 2021
db609ea
Feat tests from allow string or array (#78)
ccsuperstar Aug 6, 2021
3a046b6
add changelog (#80)
Arhell Aug 9, 2021
63e7d98
Bugfix/number of elements in group (#82)
vansari Aug 11, 2021
447243a
Bugfix/fix extension failed tests writer (#75)
vansari Aug 6, 2021
66cf540
Bugfix/merge html correction execution time (#74)
vansari Aug 6, 2021
57f0f50
testsFrom() method allow string or array (#73)
ccsuperstar Aug 6, 2021
97df7e9
Revert "testsFrom() method allow string or array (#73)" (#77)
DavertMik Aug 6, 2021
cef4bd7
Feat tests from allow string or array (#78)
ccsuperstar Aug 6, 2021
cb1c350
add changelog (#80)
Arhell Aug 9, 2021
47dd472
Merge remote-tracking branch 'upstream/master'
vansari Aug 12, 2021
653d053
update changelog (#83)
Arhell Aug 12, 2021
b5ae132
Bump codeception/codeception from 4.1.21 to 4.1.22 (#84)
dependabot[bot] Sep 5, 2021
a0b2aa1
update changelog (#83)
Arhell Aug 12, 2021
b4627ee
Bump codeception/codeception from 4.1.21 to 4.1.22 (#84)
dependabot[bot] Sep 5, 2021
659a9f9
html report merger skip not existing report (#85)
vansari Sep 6, 2021
c3d3d84
update changelog (#87)
Arhell Sep 8, 2021
bda5451
Merge branch 'master' of github.com:Codeception/robo-paracept
vansari Sep 16, 2021
16e92c7
Bugfix/xml merger do not throw exception of missing xml (#88)
vansari Sep 16, 2021
13e2a48
Update CHANGELOG.md (#90)
Arhell Sep 18, 2021
ca1650e
Bugfix/91 fixing html merger (#92)
vansari Oct 29, 2021
616747b
Group loader fixes (#96)
DavertMik Dec 18, 2021
87390e0
autoloading splitter
DavertMik Dec 18, 2021
b7ef6c8
Bugfix/94 wrong html status fix (#95)
vansari Dec 18, 2021
6b2d9a9
Update codebase to PHP 7.4 (#93)
TavoNiievez Jan 12, 2022
c2edfe5
update changelog (#98)
Arhell Jan 19, 2022
5865967
Update CHANGELOG.md (#100)
Arhell Jan 22, 2022
676460c
Update CHANGELOG.md (#101)
Arhell Jan 24, 2022
10bbd3b
Update CHANGELOG.md (#102)
Arhell Jan 26, 2022
03581ba
update link (#110)
Arhell Jul 2, 2022
b1d6d9c
bug/103 - Fix bug where leading character of a relative test name was…
jmrieger Jul 10, 2022
4441ea1
Merge branch 'Codeception:master' into master
vansari Nov 13, 2022
987a956
Fix detection of @groups for dataprovider tests (#108)
reinholdfuereder Nov 13, 2022
7fb0845
Bugfix/codestyle (#115)
vansari Nov 13, 2022
f844be4
Adding the symfony 6 compatibility (#112)
vincent-joignie-dd Nov 13, 2022
4c020f4
Feature/fixing deps cc5 sf6 cr4 (#116)
vansari Nov 13, 2022
7331c4d
Fixing php.yml
vansari Nov 13, 2022
7ed9242
Merge branch '3.0' of github.com:Codeception/robo-paracept into 3.0
vansari Nov 13, 2022
e35b32f
Remove not allowed addFilter method on taskSplitTestFilesByGroups exa…
ccsuperstar Nov 15, 2022
9f42bcd
Merge branch 'master' of github.com:Codeception/robo-paracept
vansari Dec 17, 2022
626c2da
Using Makefile and Docker for a better Test Feeling
vansari Dec 17, 2022
d91d2bf
Max execution time for suite in final report xml and max execution ti…
ccsuperstar Nov 15, 2022
0e62d4b
Merge pull request #126 from vansari/feature/Makefile-and-Docker
vansari Jan 2, 2023
2700038
Merge pull request #120 from ccsuperstar/maxExecutionTime
vansari Jan 2, 2023
f321792
Merge pull request #129 from Codeception/master
vansari Jan 2, 2023
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
49 changes: 49 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Unit Tests

on:
push:
branches: [ "3.0" ]
pull_request:
branches: [ "3.0" ]

jobs:
test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: [ '8.1' ]
phpunit-versions: ['latest']
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer unit

- name: Run lint Tests
run: composer lint

- name: Run CodeStyle Check
run: composer codestyle

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
tests/result/*
tests/result
vendor
.idea
.idea
/.php-cs-fixer.cache
/.phpunit.result.cache
/.phplint-cache
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

136 changes: 136 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
## [2.0.1](https://github.com/Codeception/robo-paracept/releases/tag/2.0.1) Bugfix Release - TimeReporter and FailedTestsReporter

* Fix bug where leading character was being removed from tests in the reporter instead of leading directory separator

## [2.0.0](https://github.com/Codeception/robo-paracept/releases/tag/2.0.0) Major Release

robo-paracept 2.0 is now released

- support for PHP 7.4 , 8.0, 8.1
- refactorings

Thanks to [@DavertMik](https://github.com/DavertMik) and [@TavoNiievez](https://github.com/TavoNiievez) for their contributions.

## [1.3.1](https://github.com/Codeception/robo-paracept/releases/tag/1.3.1) Preloading Codeception configuration

* Loading default Codeception config to detect the main directory path
* Show warning if Codeception config was not loaded

## [1.3.0](https://github.com/Codeception/robo-paracept/releases/tag/1.3.0) Split group improvements

* Load PHPUnit bridge of Codeception before splitting tests
* All `Split*` to return result objects (readme updated)
* Warn if root directory for Codeception is not set when splitting by groups
* Improved matching groups by using GroupManager

See [#96](https://github.com/Codeception/robo-paracept/pull/96)

## [1.2.4](https://github.com/Codeception/robo-paracept/releases/tag/1.2.4) Bugfix Release HTMLMerger

If one of the html reports wasn't created by a parallel job the merger will not longer throw an exception.
The Merger will show a warning that an expected html report wasn't found.

## What's Changed
* Update CHANGELOG.md by [@Arhell](https://github.com/Arhell) in https://github.com/Codeception/robo-paracept/pull/90
* Bugfix/91 fixing html merger by [@vansari](https://github.com/vansari) in https://github.com/Codeception/robo-paracept/pull/92

**Full Changelog**: https://github.com/Codeception/robo-paracept/compare/1.2.3...1.2.4

## [1.2.3](https://github.com/Codeception/robo-paracept/releases/tag/1.2.3) Bugfix Release XmlMerger

Fix the issue that an exception is thrown if a xml report does not exists.

## [1.2.2](https://github.com/Codeception/robo-paracept/releases/tag/1.2.2) Bugfix HTML Merger

Fix [#31](https://github.com/Codeception/robo-paracept/issues/31)

## [1.2.1](https://github.com/Codeception/robo-paracept/releases/tag/1.2.1) Bugfix

Pull Request: [#82](https://github.com/Codeception/robo-paracept/pull/82)

Calculation number of tests in groups in class TestsSplitterTask did not work as expected.
If you have a high number of Tests it was possible that the last group received a huge number of tests while all others had a stable small number of tests.

- Fixing calculation number of tests in Groups
- Using PHP Built In round() instead of floor()

## [1.2.0](https://github.com/Codeception/robo-paracept/releases/tag/1.2.0)

- Bugfix for extension FailedTestsReporter and new FailedTestsMergerTask [#75](https://github.com/Codeception/robo-paracept/pull/75)
- generated Files will not be overwriten anymore
- each generated File has now a uniqid-suffix (PHP Function uniqid('', true))
- merge generated report files from FailedTestsReporter into single file
- posibility to merge also another files into a single file

- Bugfix src/Splitter/TestsSplitter.php::testsFrom [#78](https://github.com/Codeception/robo-paracept/pull/78) [@ccsuperstar](https://github.com/ccsuperstar)
- revert string type hint and allow array or string again

## [1.1.1](https://github.com/Codeception/robo-paracept/releases/tag/1.1.1) Bugfix

* Fixed return type declaraton [#68](https://github.com/Codeception/robo-paracept/pull/68)

## [1.1.0](https://github.com/Codeception/robo-paracept/releases/tag/1.1.0) Robo-Paracept 1.1

* SplitFailedTests task added to split by groups failed tests only [#65](https://github.com/Codeception/robo-paracept/pull/65)
* Fixed return type in taskSplitTestFilesByGroups [#62](https://github.com/Codeception/robo-paracept/pull/62)

## [1.0.0](https://github.com/Codeception/robo-paracept/releases/tag/1.0.0) Robo-Paracept 1.0

Big day for Robo-Paracept. The first stable version is released! ✈️

### Changes

* **Support for modern PHP 7.3, 7.4, 8.0**
* Added support for the latest [Robo task runner](https://robo.li)
* Added **Filters** to select tests before splitting them
* Added **SplitByTime** task to use time statistics of previous runs to balance groups of tests. Thanks to [@ivan1986](https://github.com/ivan1986)

## [0.4.2](https://github.com/Codeception/robo-paracept/releases/tag/0.4.2) Resolve dependencies when splitting tests

[#46](https://github.com/Codeception/robo-paracept/pull/46)

## [0.4.1](https://github.com/Codeception/robo-paracept/releases/tag/0.4.1) Release with new PHPUnit support

* PHPUnit 6.x support in split [#45](https://github.com/Codeception/robo-paracept/pull/45)
* follow symlinks while scanning for tests [#44](https://github.com/Codeception/robo-paracept/pull/44)

## [0.4.0](https://github.com/Codeception/robo-paracept/releases/tag/0.4.0) Minor improvements

* [#37](https://github.com/Codeception/robo-paracept/pull/37) Added `excluePath` option to `SplitTestsByGroups` task. By [@thejanasatan](https://github.com/thejanasatan)
* [#36](https://github.com/Codeception/robo-paracept/pull/36) Added mergeRewrite to merge reports by [@maxgorovenko](https://github.com/maxgorovenko)
* [#30](https://github.com/Codeception/robo-paracept/pull/30) Fixed execute test name from data provider by [@ivan1986](https://github.com/ivan1986)

Also PHPUnit 6 compatibility can be achieved by including Codeception's autoloader:

```php
require 'vendor/codeception/codeception/autoload.php'
```

See [#35 (comment)](https://github.com/Codeception/robo-paracept/issues/35#issuecomment-311605115)

## [0.3.1](https://github.com/Codeception/robo-paracept/releases/tag/0.3.1) 0.3.1: Merge pull request #27 from dhiva/master

Improved HTML report merge [#27](https://github.com/Codeception/robo-paracept/pull/27)

## [0.3.0](https://github.com/Codeception/robo-paracept/releases/tag/0.3.0) Robo 1.0 compatibility

* Robo 1.0 compatibility (Merged [#19](https://github.com/Codeception/robo-paracept/issues/19) , Fixed [#16](https://github.com/Codeception/robo-paracept/issues/16) [#17](https://github.com/Codeception/robo-paracept/pull/17))
* Support for `.feature` files in `SplitGroups`. Merged [#23](https://github.com/Codeception/robo-paracept/pull/23)

## [0.2.0](https://github.com/Codeception/robo-paracept/releases/tag/0.2.0) Support for Robo 0.7-1.0

Fixed using with Robo >= 0.7

* [#12](https://github.com/Codeception/robo-paracept/pull/12)
* [#15](https://github.com/Codeception/robo-paracept/pull/15)
* Fixed [#14](https://github.com/Codeception/robo-paracept/issues/14)

## [0.1.1](https://github.com/Codeception/robo-paracept/releases/tag/0.1.1) Codeception v2.2 and Robo 0.7 compat

Reference

https://codeception.com/docs/12-ParallelExecution#Robo

## [0.1.0](https://github.com/Codeception/robo-paracept/releases/tag/0.1.0)

To be compatible with codeception 2.2.2
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.DEFAULT_GOAL := help

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(dir $(mkfile_path))

help:
@echo "Use this makefile to execute your tests in correct php version"
@echo "\tr.php-7.4\t\trun Tests with PHP 7.4"
@echo "\tr.php-8.0\t\trun Tests with PHP 8.0"
@echo "\tr.php-8.1\t\trun Tests with PHP 8.1"
@echo "\tr.php-8.2\t\trun Tests with PHP 8.2"

r.php-7.4:
docker build -t robo:php-7.4 --target PHP74 --build-arg PHP_VERSION=7.4 docker
docker run --rm -v $(current_dir):/app -w /app robo:php-7.4 composer install
docker run --rm -v $(current_dir):/app -w /app robo:php-7.4 composer test

r.php-8.0:
docker build -t robo:php-8.0 --target PHP8 --build-arg PHP_VERSION=8.0 docker
docker run --rm -v $(current_dir):/app -w /app robo:php-8.0 composer install
docker run --rm -v $(current_dir):/app -w /app robo:php-8.0 composer test

r.php-8.1:
docker build -t robo:php-8.1 --target PHP8 --build-arg PHP_VERSION=8.1 docker
docker run --rm -v $(current_dir):/app -w /app robo:php-8.1 composer install
docker run --rm -v $(current_dir):/app -w /app robo:php-8.1 composer test

r.php-8.2:
docker build -t robo:php-8.2 --target PHP8 --build-arg PHP_VERSION=8.2 docker
docker run --rm -v $(current_dir):/app -w /app robo:php-8.2 composer install
docker run --rm -v $(current_dir):/app -w /app robo:php-8.2 composer test
Loading