recipe release testing cleanup insufficient
#768
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While working on a recipe release test I noticed that the test recipe was initially on a detached head if running the test isolated but on main branch if running the whole file, making the test fail in one case and succeed in the other. needless to say, this should not happen as it adds confusion
recipe testing cleanup insufficientto test: `recipe release` testing cleanup insufficienttest: `recipe release` testing cleanup insufficientto `recipe release` testing cleanup insufficient@iexos
Yes, I have struggled with this. In general, a simple solution is to use the per-file global
teardown()function to ensure that things get cleaned up. The nuclear approach is usually to go with:There are some other helpers in there, you'll know which one fits your situation best.