Task #79509

Add group feature to functional tests

Added by Manuel Selbach over 2 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2017-01-26
Due date:
% Done:

100%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

To increase the performance of functional tests (as excluded groups would not be processed at all, not even be listed) and to ignore tests for certain DBMS the option "@group" should be used in the annotation of a test.

Example:


/**
 * @test
 *
 * @group mysql
 */
public function collectGarbageWorksWithEmptyTableWithMysql()
{
    $subject = $this->getSubjectObject(true);
    $subject->collectGarbage();
}

To exclude a group follow the these examples:


// to exclude tests for MySQL
bin/phpunit -c ./components/testing_framework/core/Build/FunctionalTests.xml  --exclude-group mysql

// to exclude tests for MySQL and PostgreSQL
bin/phpunit -c ./components/testing_framework/core/Build/FunctionalTests.xml  --exclude-group mysql postgresql

Associated revisions

Revision 57651ae6 (diff)
Added by Manuel Selbach over 2 years ago

[TASK] Implement group "mysql" in functional tests

Add group "mysql" to select functional tests that require a MySQL
Server as a database backend due to testing functionality that is
only available on this platform.

Resolves: #79509
Releases: master
Change-Id: Ia4d653efc56673d666274dabdc86474ffafd4756
Reviewed-on: https://review.typo3.org/51438
Tested-by: TYPO3com <>
Reviewed-by: Morton Jonuschat <>
Tested-by: Morton Jonuschat <>
Reviewed-by: Mona Muzaffar <>
Tested-by: Mona Muzaffar <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51438

#2 Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51438

#3 Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51438

#4 Updated by Gerrit Code Review over 2 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51438

#5 Updated by Manuel Selbach over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Benni Mack 9 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF