handWavey icon indicating copy to clipboard operation
handWavey copied to clipboard

Clean up configuration created by unit tests

Open ksandom opened this issue 2 years ago • 0 comments

Success

  • [ ] Each unit test should destroy any files that it creates.
    • [ ] None of the directories listed under "Background" below should exist after the unit tests have run.

Background

The problem

Some unit tests create namespaced config files

ksandom@delli:~/.config$ ls -1d handWavey?* 
handWaveyConfigTest
handWaveyConfigTest2.yml
handWaveyConfigTest4
handWaveyConfigTest.yml
handWaveyUnitTest

Solution

The Config package is going to become its own library soon. It has complete knowledge of all files that it creates. So it would be nice for it to include a destroy() function that goes and destroys all of the files and the folder that it creates.

ksandom avatar Mar 17 '22 16:03 ksandom