-
Notifications
You must be signed in to change notification settings - Fork 1
feature #88 - Add helper method to log error without adding failure #114
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @guich25!
Thanks for your help, please have a look to the GH actions that seems to be failing
use Yokai\Batch\JobExecution; | ||
use Yokai\Batch\Storage\JobExecutionStorageInterface; | ||
|
||
class JobWithFailureErrorLogTest extends JobTestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think an integration test is expected for that kind of feature
Maybe you should just add your test case here: https://github.com/yokai-php/batch-src/blob/0.x/src/batch/tests/JobExecutionTest.php
9d4ac48
to
cb95719
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 0.x #114 +/- ##
=========================================
Coverage 99.67% 99.67%
- Complexity 840 844 +4
=========================================
Files 138 139 +1
Lines 2485 2494 +9
=========================================
+ Hits 2477 2486 +9
Misses 8 8 ☔ View full report in Codecov by Sentry. |
cb95719
to
dfe2283
Compare
use Yokai\Batch\Factory\UniqidJobExecutionIdGenerator; | ||
use Yokai\Batch\JobExecution; | ||
|
||
class LoggerTest extends TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test class is not in the right dir, this is why Codecov is not seeing the coverage
tests/convention/Job/LoggerTest.php
instead of src/batch/tests/Job/LoggerTest.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this 🤟
See issue #88