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
The onActionDone
method should take TestRunErrorFormattableAdapter instance instead of Error (closes #4867)
#4895
The onActionDone
method should take TestRunErrorFormattableAdapter instance instead of Error (closes #4867)
#4895
Conversation
❌ Tests for the commit de92f1a have failed. See details: |
@testcafe-build-bot retest |
❌ Tests for the commit de92f1a have failed. See details: |
❌ Tests for the commit de92f1a have failed. See details: |
❌ Tests for the commit 3e8fd62 have failed. See details: |
✅ Tests for the commit 8f58c26 have passed. See details: |
❌ Tests for the commit ea423d1 have failed. See details: |
✅ Tests for the commit ea423d1 have passed. See details: |
onActionDone
method should take TestRunErrorFormattableAdapter instance instead of Error (closes #4867)
This is the third attempt to write clean code for adapters.
In this version logic in more linear than in the first one.
The important moment is that we create a separate adapter for the
action-done
methods. ThustestRunInfo.errs[0]
fromtest-run-done
!==err
from 'action-done'.I think it does not really matter, since adapter is only service wrapper above the real error.
In addition, the
errors
array param onaction-done
became justerr
param, because action should have only one error.