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

Merge with upstream 3.0 #1

Open
wants to merge 64 commits into
base: dev-CL
Choose a base branch
from
Open

Conversation

kowalk
Copy link

@kowalk kowalk commented Nov 30, 2022

No description provided.

vansari and others added 30 commits July 13, 2021 22:35
* Follow links when splitting test files

This seems appropriate to me since it matches the default codeception behaviour.  This was motivated because I was surprised that tests were missing after splitting when codeception would have included them.

* Split Task for newer Phpunit

**Context**

Phpunit has restructure its classes with namespace starting from
version 6 and this breaks the `DataProvider` test splitting.

This update will allow it to work for both old and new Phpunit.

* Be aware of test dependency during split (#46)

* Be aware of test dependency during split

* Test fixes
New tests
Test fixtures

* Travis fixes

* add verbose to see why tests fail

* Build fix

* still fails :/

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* dev option

* dev option

* test what file is used

* test what file is used

* debug

* debug

* debug

* debug

* debug

* temp disable some tests

* test

* test

* test

* test

* test

* test

* test

* remove debug

* restore minimal version of codeception dependency

* restore minimal version of codeception dependency with php 7.0

* fix test cases

* Split ReportMerger into single Classes

* Split TestSplitter into single Classes

* Updating composer

* fixing bootstrap

* Moved Files from src to src/Splitter

* Created Test for TestFileSplitterTask

* added TEST_PATH const

* updated composer autoload-dev

* updated composer autoload-dev
fixed php version
fixed .travis.yml php version

* Fixed TestFileSplitterTaskTest.php because of deprecated methods

* Tests for TestsSplitterTask and refactoring

* CodeStyle and TypeError fix, Test for XmlReportMergerTask

* deleted outdated files

* refactoring fixtures

* Correction of Tests Path

* Fixing configs of composer and phpunit Tests

* added 3 tests for Splitting

* Updated TestsSplitter.php because of newer PHPUnit Version

* fixed return type

* Splitting Tests with newer PHPUnit Version

* added TearDown to clear results

* updated composer.json, remove explicit using of ExecutionOrderDependency (comes with PHPUnit 9.3.0)

* updated README.md

* updated php version on composer and before_script in .travis.yml

* updated composer.lock with new php Version

Co-authored-by: Michael Bodnarchuk <[email protected]>
Co-authored-by: hirowatari <[email protected]>
Co-authored-by: Taufek Johar <[email protected]>
Co-authored-by: Grzegorz Drozd <[email protected]>
 Conflicts:
	.github/workflows/php.yml
* Follow links when splitting test files

This seems appropriate to me since it matches the default codeception behaviour.  This was motivated because I was surprised that tests were missing after splitting when codeception would have included them.

* Split Task for newer Phpunit

**Context**

Phpunit has restructure its classes with namespace starting from
version 6 and this breaks the `DataProvider` test splitting.

This update will allow it to work for both old and new Phpunit.

* Be aware of test dependency during split (#46)

* Be aware of test dependency during split

* Test fixes
New tests
Test fixtures

* Travis fixes

* add verbose to see why tests fail

* Build fix

* still fails :/

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* Test if correct code is executed.

* dev option

* dev option

* test what file is used

* test what file is used

* debug

* debug

* debug

* debug

* debug

* temp disable some tests

* test

* test

* test

* test

* test

* test

* test

* remove debug

* restore minimal version of codeception dependency

* restore minimal version of codeception dependency with php 7.0

* fix test cases

* Split ReportMerger into single Classes

* Split TestSplitter into single Classes

* Updating composer

* fixing bootstrap

* Moved Files from src to src/Splitter

* Created Test for TestFileSplitterTask

* added TEST_PATH const

* updated composer autoload-dev

* updated composer autoload-dev
fixed php version
fixed .travis.yml php version

* Fixed TestFileSplitterTaskTest.php because of deprecated methods

* Tests for TestsSplitterTask and refactoring

* CodeStyle and TypeError fix, Test for XmlReportMergerTask

* deleted outdated files

* refactoring fixtures

* Correction of Tests Path

* Fixing configs of composer and phpunit Tests

* added 3 tests for Splitting

* Updated TestsSplitter.php because of newer PHPUnit Version

* fixed return type

* Splitting Tests with newer PHPUnit Version

* added TearDown to clear results

* updated composer.json, remove explicit using of ExecutionOrderDependency (comes with PHPUnit 9.3.0)

* Create php.yml

* updated README.md

* updated php version on composer and before_script in .travis.yml

* updated composer.lock with new php Version

* Save the state

* fixing namespace tests

* added correct namespace

* First Test of run with the filter of @group annotation

* extract methods to abstract class

* Remove extra Task

* Created Filter Interface with the neccessary methods, DefaultFilter.php for every use case

* Created GroupFilter and Tests to Filter tests by group annotations

* Change the signature of the Interface so it can be used also with other array values like string etc

* Check if the Test is an instance of expected SelfDescribing class

* Updated the FilterMethods in the trait so it can also be used in the TestFileSplitterTask

* Filter the Tests after they had be loading

* Added Filtering possibility to the TestFileSplitterTask.php, Updated Comment at DefaultFilter.php

* Fixing filter

* removing travis

* added scripts to composer.json and use it in php.yml,
CS default PSR12

* Fixing CodeStyle

Co-authored-by: Michael Bodnarchuk <[email protected]>
Co-authored-by: hirowatari <[email protected]>
Co-authored-by: Taufek Johar <[email protected]>
Co-authored-by: Grzegorz Drozd <[email protected]>
* split by time task

* fix

* fix

* Feature/fix split by time tests (#58)

* fixing namespace for tests

* Test Fix: Cests should not extends any unit class

* Fixing Test Namspace

* readStatFileContent in separate Method, fixing path content because of TimeReporter which cuts the rootpath from the filepath

* Plublic getter for the ProjectRoot (How can we get the Config here from Codeception)

* Example json File for testing

* Raw Test for TimeTask

* fixing TimeReporter.php, a little bit CS

* Fixing Tests for SplitTestsByTimeTask.php, Resolve BUG with the path

* Fixing namespace for Tests

* Generating Tests for TimeReporter.php

* clean up tests/result directory

* updated composer lock

* Bugfix/fix split by time and update readme (#61)

* Fixing Tests for TimeTaskTest

* resolve bug by resolving dependencies, better tests

* Updated Readme with new feature of filters, checks switched to abstract class

* Correct the typo

* Codestyle fix

Co-authored-by: Ivan Borzenkov <[email protected]>
Co-authored-by: KJunker <[email protected]>
 Conflicts:
	.github/workflows/php.yml
* Create php.yml

* Added a FailedTestsReporter which catched all failed Tests and write it to the failedTests.txt

* outsourced method which groups the files/tests

* FailedTestSplitterTask.php created, Tests for the Task

* Updated Readme.md, fixed Returntype in trait
* Create php.yml

* fixing return type for run method in TestsSplitterTask.php
* Create php.yml

* Add a unique suffix for failed tests report files

* add a new merger to merge the created report files from the FailedTestsMergerTask into one file

* updated the FailedTestSplitterTask

* Fixed issue in FailedTestSplitterTask

* Updated README.md for usage of FailedTests Reports

* Created new abtract class for the mergers

* Created new abtract class for the mergers
* Create php.yml

* Building Test for HTMLMerger, find error by summary of Test Execution Time

* Sum the execution Time for the merged Reports

* Codestyle fixing

Co-authored-by: Michael Bodnarchuk <[email protected]>
* testsFrom() method allow string or array

* testsFrom() method allow string or array
* Create php.yml

* Add a unique suffix for failed tests report files

* add a new merger to merge the created report files from the FailedTestsMergerTask into one file

* updated the FailedTestSplitterTask

* Fixed issue in FailedTestSplitterTask

* Updated README.md for usage of FailedTests Reports

* Created new abtract class for the mergers

* Created new abtract class for the mergers
* Create php.yml

* Building Test for HTMLMerger, find error by summary of Test Execution Time

* Sum the execution Time for the merged Reports

* Codestyle fixing

Co-authored-by: Michael Bodnarchuk <[email protected]>
* testsFrom() method allow string or array

* testsFrom() method allow string or array
vansari and others added 30 commits September 6, 2021 21:22
* Issue #31
- Fixing headerline from NOT OK to Standard FAILED after merge
- continue if report html file did not exist
- print task warning message
* Issue XML Report Merger
- continue if xml report file did not exist
- print task warning message
* Issue HTML Report Merger
- continue if html report file did not exist
- print task warning message
* fixed loading groups in filter

* make all tasks to return results

* added warning that relative path not set

* fixed codestyle
* Only Failed Tests can change status to FAILED
Co-authored-by: KJunker <[email protected]>
Thanks to @TavoNiievez for his contribution
* Fixing Codestyle
* added new script 'test' to run all Tests, extends the README.md with steps to contributing
* adding the symfony 6 compatibility as codeception 5 is now compatible with it

* Update composer.json

added extra version for robo

Co-authored-by: @vansari 
Co-authored-by: @vincent-joignie-dd
* Upgraded PHP Version, fixed the Version to ^8.1, upgraded all packages to newest stable versions

* Fixed classes after test result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants