Repository navigation
Conversation
fix deployer cannot sync newer files or directories in shared directory
|
Hi, I want to try add some testing for this change and I already read some test files Thanks |
|
Sure, you can take a look at these test cases and do something similar: |
|
|
||
| // If release contains shared dir, copy that dir from release to shared. | ||
| if (test("[ -d $(echo {{release_path}}/$dir) ]")) { | ||
| run("cp -ru{$copyVerbosity} {{release_path}}/{$dir} {$sharedPath}/" . dirname(parse($dir))); |
There was a problem hiding this comment.
This is a really crucial part and needs to be tested.
There was a problem hiding this comment.
Sure, I still make the test.
Is there anything specific that I need to pay attention to in making the test?
There was a problem hiding this comment.
I think new test should cover use case of shared copy. Look at joy tests.
|
@aryanjaya any update on this? |
|
@antonmedv Sorry for not updating this pull request yet. I still don't know how to make a test case for this issue. |
|
What about https://github.com/deployphp/deployer/tree/master/test/joy joy testing?) |
|
Looking for someone who can take and improve this PR with tests? Any new contributors? |
fix deployer cannot sync newer files or directories in shared directory