Closed miya0001 closed 6 years ago
I ran behat for scaffold-command and I found there are some broken tests. I am not sure is it same problem. Following is a log. Terminal Saved Output.txt
Ah, I ran those tests after wp package update
and wp scaffold package-tests . --force
.
@miya0001 Is there a bug here or can this be closed?
I am looking into this problem, but I haven't found the cause. 😓 Do you have any idea?
No immediate ideas :/
Behat is removing the path to project root from output and I was making some mistakes. So, I was confusing, there is no problem. Thanks for help me. @gitlost @danielbachhuber
I can close this issue. Thanks! :)
When we create a command like following.
I expect to get absolute path like following and it is working fine.
But I run this command with behat, all path will be changed to relative path like following.
Same problem will be happen on my package command. https://github.com/vccw-team/wp-cli-scaffold-movefile/blob/499f401d817c65866602df66d920e250a4562ef1/src/Scaffold_Movefile_Command.php#L134
It is getting the path to
*.mustache
like following.But it returns only
templates/movefile.mustache
. (Where is the first/
???)Are there any mistakes or any misunderstanding?
I committed an example command to reproduce this problem.