Skip to content

Running UI tests removes tables from dev database #14520

@katebutler

Description

@katebutler

Seems to happen whenever I run any UI tests, e.g.

./console tests:run-ui ScheduledReports

I have my [database_tests] set up to use a different database to my dev one, and the console output suggests this is being used:

    Setting up fixture Piwik\Plugins\ScheduledReports\tests\Fixtures\ReportSubscription...
    Dropping database 'matomotest'...
    Database matomotest marked as successfully set up.

When I next visit Matomo in the browser, I get an error because the user_dashboard table doesn't exist in my dev DB. I've also seen errors due to missing user_language and custom_dimensions tables when trying to run console commands.

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.c: Tests & QAFor issues related to automated tests or making it easier to QA & test issues.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions