[wp-trac] [WordPress Trac] #50209: Remove all uploads between test methods
WordPress Trac
noreply at wordpress.org
Wed May 20 08:14:45 UTC 2020
#50209: Remove all uploads between test methods
------------------------------+------------------------------
Reporter: Frank Klein | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: 4.0
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Comment (by Frank Klein):
Using a different uploads directory would solve this problem. We would
need to document this change well though. Some developers might rely on
the default directory name in their tests.
In terms of cleanup, we need to clean uploads:
1. After every test: to ensure that all tests start with a clean slate.
2. Before every test suite run: to ensure that if cleanup didn't happen
due to test runner issues, the first test still has a clean slate. Because
if a previous test run got stopped due to a PHP error, no cleanup would
have happened.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50209#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list