Create E2E tests #2274
Replies: 4 comments 1 reply
-
ping @bsacharski |
Beta Was this translation helpful? Give feedback.
-
Hello @martijngastkemper The task cannot be found on the second run because the Alternatively you could hack around this by:
IMO getting rid of the Furthermore, I don't think you should use |
Beta Was this translation helpful? Give feedback.
-
This something of a problem. Getting rid of the Putting all Long story short. I updated the PR with the latests insights and will keep searching for a proper solution. |
Beta Was this translation helpful? Give feedback.
-
I stopped searching for a solution due to time restriction. Hopefully someone else can pick up this problem. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to create a E2E test for
contrib/crontab.php
. I've created a work in progress PR for it: https://github.com/martijngastkemper/deployer/pull/1/files. I'm stuck in the phase of getting the tests to run properly, so don't comment on the assertions. It's definitely not finished.testUpdatingCrontab
fails with an error saying it can't find the taskcrontab:sync
. Which is weird becausetestAddingCrontab
can find that task:My first thought was an error in the test setup, but I don't get the error when I disable (comment) the
testAddingCrontab
function. It seems to fail just because the task is executed for the second time. I've no clue why this fails.MiscE2ETest
does work with two test functions.Can someone help me with this problem?
Beta Was this translation helpful? Give feedback.
All reactions