amtoine / nu-git-manager

A collection of Nushell tools to manage Git repositories.
GNU General Public License v3.0
26 stars 2 forks source link

refactor the test dir setup in `tests/common/setup.nu` #103

Closed amtoine closed 9 months ago

amtoine commented 9 months ago

description

this PR simply makes sure all the tests use the same base location to dump all their files.

this is computed as a random directory in the new get-random-test-dir command.

Note i had to add a --no-sanitize switch to get-random-test-dir to disable the sanitization for the tests detect-grafting and tests store-cleaning tests, otherwise the tests did not pass on Windows... :shrug: :laughing: