Calling wpacceptance init on windows fails to write file due to bug in path resolution for wpacceptance.json. I'll manually make my wpacceptance.json for now but figured I'd post this here as I would really like to contribute to this project however I can.
Steps to Reproduce
$ ./vendor/bin/wpacceptance init
Project Slug (letters, numbers, _, and - only): noknok-woo-marketing-platform
Tests location (defaults to ./tests/*.php):
Do you want to require a fresh database for each test? This will make tests slower but is needed if you intend on modifying the database during tests. (yes or no) no
Do you have an existing snapshot ID you would like to test against? Default is none:
Warning: file_put_contents(C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform/C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform/wpacceptance.json): failed to open stream: No such file or directory in C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\10up\wpacceptance\src\classes\Config.php on line 105
Call Stack:
0.4048 415152 1. {main}() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\10up\wpacceptance\bin\wpacceptance:0
0.4436 1798712 2. require_once('C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\10up\wpacceptance\src\bootstrap.php') C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\10up\wpacceptance\bin\wpacceptance:13
1.0891 7719184 3. Symfony\Component\Console\Application->run() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\10up\wpacceptance\src\bootstrap.php:36
1.1271 8063456 4. Symfony\Component\Console\Application->doRun() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\symfony\console\Application.php:149
1.1293 8066832 5. Symfony\Component\Console\Application->doRunCommand() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\symfony\console\Application.php:273
1.1293 8066832 6. WPAcceptance\Command\Init->run() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\symfony\console\Application.php:1009
1.1307 8068664 7. WPAcceptance\Command\Init->execute() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\symfony\console\Command\Command.php:255
15.4983 8141352 8. WPAcceptance\Config->write() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\10up\wpacceptance\src\classes\Command\Init.php:71
15.4985 8143120 9. file_put_contents() C:\Users\Cody Rees\Documents\_noknok-studios\docker-projects\docker.woocommercesandbox.local\sites\localhost\html\wp-content\plugins\noknok-woo-marketing-platform\vendor\10up\wpacceptance\src\classes\Config.php:105
Expected behavior
wpacceptance.json would be saved to the filesystem but instead the file_put_contents throws an error
Environment information
OS: Microsoft Windows 10 (Error exists in both Git Bash and standard Command Prompt)
Describe the bug
Calling wpacceptance init on windows fails to write file due to bug in path resolution for wpacceptance.json. I'll manually make my wpacceptance.json for now but figured I'd post this here as I would really like to contribute to this project however I can.
Steps to Reproduce
Expected behavior wpacceptance.json would be saved to the filesystem but instead the file_put_contents throws an error
Environment information