You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
btw you might find snapbox::path::PathFixture of interest. The only thing it is missing compared to higher level stuff like trycmd is support for an env variable to control the behavior.
I personally have replaced all my uses of assert_cmd / assert_fs with snapbox.
The documentation for
.into_persistent
(and.into_persistent_if
) suggest you can delete a persistedTempDir
by calling.close
on it.assert_fs/src/fixture/dir.rs
Lines 120 to 129 in 9c5caf2
However, the implementation of
.close
explicitly doesn't do anything when theTempDir
has been persisted.assert_fs/src/fixture/dir.rs
Line 191 in 9c5caf2
So, either
TempDir
can't be deleted, or.close
should be updated to removepersisted
TempDir`.Some background
I ran into this while trying to work around #51 by trying to persist-by-default and close/delete on success.
The text was updated successfully, but these errors were encountered: