stable
Clone or download
part of request #35868 Improve clean up of db integration tests Why? During writing of crosstracker integration test, it appeared that manually cleaning data for integration test can be very painfull. When setup is complex and need many data, it is likely that w will forget to truncate data An easy way of *not* cleaning data is to perform tests in a transaction and rollback at the end of the test, this way we can't forget to clean up database How to test SETUP_ONLY=1 make tests-db and run several times test suite with sudo -E -u codendiadm /opt/remi/php82/root/usr/bin/php /usr/share/tuleap/src/vendor/bin/phpunit --configuration /usr/share/tuleap/tests/integration/phpunit.xml --do-not-cache-result Change-Id: I0beed2000fef1b19e38bed0bec9a8ab9b8692560
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/agiledashboard/tests/integration/FormElement/BurnupDataDAOTest.php | +2 | −2 | Go to diff View file |
M | plugins/agiledashboard/tests/integration/Milestone/Backlog/RecentlyVisitedTopBacklogDaoTest.php | +9 | −18 | Go to diff View file |
M | plugins/agiledashboard/tests/integration/Milestone/Sidebar/MilestoneDaoTest.php | +2 | −18 | Go to diff View file |
M | plugins/agiledashboard/tests/integration/Milestone/Sidebar/MilestonesInSidebarDaoTest.php | +2 | −6 | Go to diff View file |
M | plugins/agiledashboard/tests/integration/Planning/PlanningDAOTest.php | +2 | −8 | Go to diff View file |
M | plugins/baseline/tests/integration/Adapter/RoleAssignmentRepositoryAdapterTest.php | +2 | −7 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/NumericDuckTypedFieldTest.php | +7 | −8 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Tests/Builders/DatabaseBuilder.php | +0 | −18 | Go to diff View file |
M | plugins/docman/tests/integration/Version/CoAuthorDaoTest.php | +2 | −9 | Go to diff View file |
M | plugins/fts_meilisearch/tests/integration/Index/MeilisearchMetadataDAOTest.php | +5 | −16 | Go to diff View file |
M | plugins/git/tests/integration/GitXmlImporterTest.php | +2 | −2 | Go to diff View file |
M | plugins/git/tests/integration/Gitolite/GitoliteTestCase.php | +2 | −3 | Go to diff View file |
M | plugins/git/tests/integration/Permissions/FineGrainedRegexpValidatorTest.php | +2 | −1 | Go to diff View file |
M | plugins/gitlab/tests/integration/Group/GitlabApiTokenDAOTest.php | +2 | −7 | Go to diff View file |
M | plugins/gitlab/tests/integration/Group/GroupLinkDAOTest.php | +4 | −16 | Go to diff View file |
M | plugins/gitlab/tests/integration/Repository/GitlabRepositoryIntegrationDaoTest.php | +2 | −14 | Go to diff View file |
M | plugins/hudson_git/tests/integration/HudsonGit/Hook/JenkinsTuleapBranchSourcePluginHook/JenkinsTuleapPluginHookTokenDAOTest.php | +2 | −10 | Go to diff View file |
M | plugins/kanban/tests/integration/RecentlyVisited/RecentlyVisitedKanbanDaoTest.php | +8 | −18 | Go to diff View file |
M | plugins/mediawiki_standalone/tests/integration/Instance/Migration/LegacyMediawikiCreateMissingUsersDBTest.php | +2 | −0 | Go to diff View file |
M | plugins/mediawiki_standalone/tests/integration/Instance/OngoingInitializationsDaoTest.php | +2 | −10 | Go to diff View file |
M | plugins/mediawiki_standalone/tests/integration/Permissions/MediawikiPermissionsDaoTest.php | +2 | −10 | Go to diff View file |
M | plugins/onlyoffice/tests/integration/DocumentServer/DocumentServerDaoTest.php | +2 | −6 | Go to diff View file |
M | plugins/onlyoffice/tests/integration/Download/OnlyOfficeDownloadDocumentTokenDAOTest.php | +2 | −9 | Go to diff View file |
M | plugins/onlyoffice/tests/integration/Save/OnlyOfficeSaveDocumentTokenDAOTest.php | +2 | −9 | Go to diff View file |
M | plugins/program_management/tests/integration/Adapter/Program/ProgramDaoTest.php | +13 | −21 | Go to diff View file |
M | plugins/pullrequest/tests/integration/Comment/CommentDAOTest.php | +2 | −10 | Go to diff View file |
M | plugins/pullrequest/tests/integration/Comment/ThreadCommentDaoTest.php | +3 | −12 | Go to diff View file |
M | plugins/pullrequest/tests/integration/DaoTest.php | +2 | −9 | Go to diff View file |
M | plugins/pullrequest/tests/integration/InlineComment/InlineCommentDAOTest.php | +2 | −9 | Go to diff View file |
M | plugins/pullrequest/tests/integration/PullRequestUpdaterTest.php | +2 | −1 | Go to diff View file |
M | plugins/pullrequest/tests/integration/Reviewer/Change/ReviewerChangeDAOTest.php | +10 | −28 | Go to diff View file |
M | plugins/roadmap/tests/integration/Roadmap/FilterReportDaoTest.php | +2 | −10 | Go to diff View file |
M | plugins/roadmap/tests/integration/Roadmap/RoadmapWidgetDaoTest.php | +2 | −9 | Go to diff View file |
M | plugins/tracker/tests/integration/PriorityDaoPerformancesTest.php | +4 | −8 | Go to diff View file |
M | plugins/tracker/tests/integration/PriorityDaoTest.php | +5 | −13 | Go to diff View file |
M | plugins/tracker/tests/integration/ReportCriteriaDaoTest.php | +2 | −14 | Go to diff View file |
M | plugins/tracker/tests/integration/SemanticTimeframeDaoTest.php | +21 | −70 | Go to diff View file |
M | plugins/tracker/tests/integration/Tracker/Artifact/PaginatedArtifactDaoTest.php | +2 | −9 | Go to diff View file |
M | plugins/tracker/tests/integration/Tracker/Artifact/RecentlyVisited/RecentlyVisitedDaoTest.php | +8 | −18 | Go to diff View file |
M | plugins/tracker/tests/integration/Tracker/Notifications/Settings/CalendarEventConfigDaoTest.php | +2 | −9 | Go to diff View file |
M | plugins/tracker/tests/integration/Tracker/Notifications/Settings/NotificationSettingsDuplicatorTest.php | +56 | −74 | Go to diff View file |
M | plugins/tracker_cce/tests/integration/Administration/ModuleDaoTest.php | +2 | −9 | Go to diff View file |
M | plugins/tracker_cce/tests/integration/TrackerCCE/Logs/ModuleLogDaoTest.php | +3 | −11 | Go to diff View file |
M | tests/integration/tests/Dashboard/Project/RecentlyVisitedProjectDashboardDaoTest.php | +8 | −18 | Go to diff View file |
M | tests/integration/tests/InviteBuddy/InvitationDaoTest.php | +2 | −7 | Go to diff View file |
M | tests/integration/tests/OAuth2ServerCore/RefreshToken/OAuth2RefreshTokenDAOTest.php | +2 | −7 | Go to diff View file |
M | tests/integration/tests/Platform/Banner/BannerDaoTest.php | +2 | −10 | Go to diff View file |
M | tests/integration/tests/Project/Admin/History/ProjectHistoryDaoTest.php | +2 | −9 | Go to diff View file |
M | tests/integration/tests/SVNCore/SHA1CollisionDetectorTest.php | +2 | −1 | Go to diff View file |
M | tests/integration/tests/TrackersV3ToV5/DefectTrackerTest.php | +2 | −1 | Go to diff View file |
M | tests/integration/tests/TrackersV3ToV5/TaskTrackerTest.php | +2 | −1 | Go to diff View file |
M | tests/integration/tests/User/AccessKey/AccessKeyDAOTest.php | +2 | −8 | Go to diff View file |
M | tests/integration/tests/User/Password/Reset/LostPasswordDAOTest.php | +2 | −6 | Go to diff View file |
M | tests/integration/tests/WebAuthn/Challenge/WebAuthnChallengeDaoTest.php | +2 | −9 | Go to diff View file |
M | tests/integration/tests/WebAuthn/Source/WebAuthnCredentialSourceDaoTest.php | +2 | −10 | Go to diff View file |
M | tests/integration/tests/dao/UserDaoTest.php | +2 | −2 | Go to diff View file |
A | tests/lib/PHPUnit/TestIntegrationTestCase.php | +53 | −0 | Go to diff View file |