Skip to content

Conversation

guich25
Copy link
Contributor

@guich25 guich25 commented Jan 9, 2024

See issue #88

@guich25 guich25 added enhancement New feature or request yokai/batch labels Jan 9, 2024
@guich25 guich25 requested a review from yann-eugone January 9, 2024 14:09
Copy link
Contributor

@yann-eugone yann-eugone left a 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
Copy link
Contributor

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

@guich25 guich25 force-pushed the 88_feature_add_to_log_whitout_failure branch 4 times, most recently from 9d4ac48 to cb95719 Compare January 9, 2024 15:51
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.67%. Comparing base (f6f6826) to head (8745cb3).
Report is 1 commits behind head on 0.x.

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.
📢 Have feedback on the report? Share it here.

@guich25 guich25 force-pushed the 88_feature_add_to_log_whitout_failure branch from cb95719 to dfe2283 Compare January 10, 2024 09:23
@yann-eugone yann-eugone changed the title #88 add helper method to log error without adding failure Add helper method to log error without adding failure Jan 10, 2024
use Yokai\Batch\Factory\UniqidJobExecutionIdGenerator;
use Yokai\Batch\JobExecution;

class LoggerTest extends TestCase
Copy link
Contributor

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

@guich25 guich25 changed the title Add helper method to log error without adding failure feature #88 - Add helper method to log error without adding failure Feb 27, 2024
Copy link
Contributor

@yann-eugone yann-eugone left a 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 🤟

@yann-eugone yann-eugone merged commit 12de1d5 into 0.x Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request yokai/batch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants