woocommerce / qit-cli

A Testing Platform for WordPress Plugins and Themes
https://qit.woo.com
16 stars 2 forks source link

Fix QIT config path in Windows #134

Closed Luc45 closed 6 months ago

Luc45 commented 6 months ago

On windows specifically there was a typo that would save config files in C:\Users\AppData\foo\woo-qit-cli.env-default instead of C:\Users\AppData\foo\woo-qit-cli\.env-default (Missing the final \ there)

This PR addresses it, and makes the Config function more uniform.

It also ignores the /dev dir to avoid conflicts while working in the Local Test Environment branch and switching back-and-forth.

Testing instructions

zhongruige commented 6 months ago

Tested this going through the default (no changes to auth) flow on macOS and I was able to create new test runs and, after renaming the existing directory, it created the new directory as expected and I was able to create new test runs, too.