Skip to content
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

Improve test coverage of multitask jobs & DLT pipelines #1493

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Jul 22, 2022

No description provided.

@alexott alexott requested a review from a team July 22, 2022 11:23
@codecov-commenter
Copy link

Codecov Report

Merging #1493 (7e4b829) into master (bf5879f) will increase coverage by 0.55%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1493      +/-   ##
==========================================
+ Coverage   89.68%   90.24%   +0.55%     
==========================================
  Files         129      129              
  Lines       10405    10405              
==========================================
+ Hits         9332     9390      +58     
+ Misses        694      646      -48     
+ Partials      379      369      -10     
Impacted Files Coverage Δ
jobs/resource_job.go 95.19% <ø> (ø)
exporter/util.go 82.32% <0.00%> (+2.76%) ⬆️
exporter/importables.go 91.74% <0.00%> (+6.43%) ⬆️

@nfx
Copy link
Contributor

nfx commented Jul 22, 2022

@alexott could you also increase the coverage of exporter/util.go to 90%?

Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you. Please also increase the coverage for exporter/util.go to 90%

@alexott
Copy link
Contributor Author

alexott commented Jul 22, 2022

Not this time, primary things that aren't covered are error handling in the complex conditions...

@nfx
Copy link
Contributor

nfx commented Jul 22, 2022

Complex conditions are more likely to break. If you’re concerned about the size of testing code - look at how individual Imports on importables are tested. There is a special helper to test for what is emitted without causing any downstream requests

@alexott
Copy link
Contributor Author

alexott commented Jul 22, 2022

I’m not concerned about testing code size, I’m concerned about my time for that. Feel free to to revert previous PR.

@alexott alexott closed this Jul 22, 2022
@nfx nfx reopened this Jul 22, 2022
@nfx nfx enabled auto-merge (squash) July 22, 2022 21:41
@nfx nfx merged commit e56b1ae into master Jul 25, 2022
@nfx nfx deleted the exporter-coverage-increase branch July 25, 2022 18:33
@nfx nfx mentioned this pull request Aug 4, 2022
michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants