Project

General

Profile

Actions

Bug #59436

closed

tearDown don't clean up database

Added by Tomas Norre Mikkelsen over 10 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2014-06-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi,

The functional testing is not cleaning up the databases when running the functional testing from cli. I'm using the FunctionalTestsBootstrap.

  1. ./typo3conf/ext/phpunit/Composer/vendor/bin/phpunit --process-isolation --colors --bootstrap typo3/sysext/core/Build/FunctionalTestsBootstrap.php typo3/sysext/core/Tests/Functional/DataHandling/IRRE

After this command I have 2 temporary databases still existing. I have the same issue with my own functional tests, but to "prove" that it was not a local issue i tried with the Core-Functional testing.

Any know issues on this topic?

Actions #1

Updated by Tomas Norre Mikkelsen about 10 years ago

This Commit explains the behavior.. It's not my wanted behavior, but i'm not the one to decide :)

https://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff/8fbe410750e1348bfc5e4dc9691773c890b50502

Actions #2

Updated by Anja Leichsenring almost 10 years ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Steffen Müller almost 10 years ago

afaik keeping the DB is a tradeoff between test isolation and test performance. Can you live with that and delete the DB in tearDown() in your own (extension) tests?

Actions #4

Updated by Steffen Müller almost 10 years ago

  • Status changed from New to Needs Feedback
Actions #5

Updated by Christian Kuhn almost 10 years ago

  • Status changed from Needs Feedback to Rejected

This will not be fixed. Databases are re-used for further runs improving performance then.

Actions #6

Updated by Anja Leichsenring almost 9 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions

Also available in: Atom PDF