-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(test): add common method to start server in background #3495
Conversation
a0e9b21
to
8620af0
Compare
✅ Build karma 244 completed (commit ad25459fac by @devoto13) |
✅ Build karma 245 completed (commit 73d85e1b07 by @devoto13) |
✅ Build karma 245 completed (commit d9efd7d561 by @devoto13) |
✅ Build karma 246 completed (commit d9efd7d561 by @devoto13) |
The existing code had pretty confusing logic (old lines 33-36)`: when background server start fails it is actually considered a success, but child process is not started. Because of this `lastRun` contains result output of the `karma start`. This is no longer the case, hence two test cases had to be updated as they never executed `karma run` despite the statement and were asserting against `karma start` output. This should be more clear now. As background server process now has its own variable to store output, there is no need for a dedicated runOut command and it can be removed.
8620af0
to
11a3348
Compare
✅ Build karma 247 completed (commit 341b694b46 by @devoto13) |
✅ Build karma 246 completed (commit 341b694b46 by @devoto13) |
🎉 This PR is included in version 5.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…a-runner#3495) The existing code had pretty confusing logic (old lines 33-36)`: when background server start fails it is actually considered a success, but child process is not started. Because of this `lastRun` contains result output of the `karma start`. This is no longer the case, hence two test cases had to be updated as they never executed `karma run` despite the statement and were asserting against `karma start` output. This should be more clear now. As background server process now has its own variable to store output, there is no need for a dedicated runOut command and it can be removed.
The existing code had pretty confusing logic (old lines 33-36): when background server start fails it is actually considered a success, but child process is not started. Because of this
lastRun
contains result output of thekarma start
. This is no longer the case, hence two test cases had to be updated as they never executedkarma run
despite the statement and were asserting againstkarma start
output. This should be more clear now.As background server process now has its own variable to store output, there is no need for a dedicated runOut command and it can be removed.