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

Migrate unit tests to chispa and increase test coverage #240

Merged
merged 62 commits into from
Sep 1, 2022

Conversation

R7L208
Copy link
Contributor

@R7L208 R7L208 commented Aug 10, 2022

fixes #233

  • migrate unit tests for dataframe equality to chispa

    • removed methods for schema equality checks since this is performed as part of assert_df_equality
    • combined assertDataFramesEqual and assertTSDFsEqual into a single static method
    • renamed arguments dfA1 and dfB to reflect df1 and df2 in chispas comparison output
  • add .coveragerc file

  • Improve coverage for code base

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #240 (3c678b6) into master (a51f1bf) will decrease coverage by 3.72%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
- Coverage   86.88%   83.15%   -3.73%     
==========================================
  Files          12        5       -7     
  Lines        1273      653     -620     
  Branches        0      143     +143     
==========================================
- Hits         1106      543     -563     
+ Misses        167       92      -75     
- Partials        0       18      +18     
Impacted Files Coverage Δ
tests/delta_writer_tests.py
tests/utils_tests.py
tests/base.py
tests/interpol_tests.py
tempo/__init__.py
tests/tsdf_tests.py
tests/as_of_join_tests.py
tempo/tsdf.py 77.25% <0.00%> (+1.43%) ⬆️
tempo/interpol.py 100.00% <0.00%> (+2.27%) ⬆️
tempo/utils.py 62.74% <0.00%> (+4.93%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@R7L208 R7L208 changed the title Migrate unit tests to chispa [DRAFT] Migrate unit tests to chispa Aug 10, 2022
@R7L208 R7L208 marked this pull request as draft August 10, 2022 23:41
@R7L208 R7L208 marked this pull request as ready for review August 15, 2022 15:17
@R7L208 R7L208 requested a review from tnixon August 15, 2022 15:17
@R7L208 R7L208 changed the title [DRAFT] Migrate unit tests to chispa Migrate unit tests to chispa Aug 15, 2022
@R7L208 R7L208 changed the title Migrate unit tests to chispa Migrate unit tests to chispa and increase test coverage Aug 15, 2022
tnixon and others added 27 commits August 16, 2022 18:12
…ones are parsed consistently regardless of location where run

(by default spark uses machine's configured TZ)
…ones are parsed consistently regardless of location where run

(by default spark uses machine's configured TZ)
also fixed several test cases
Copy link
Contributor

@tnixon tnixon left a comment

Choose a reason for hiding this comment

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

Excellent and very helpful

@tnixon tnixon merged commit 0350dff into master Sep 1, 2022
@tnixon tnixon deleted the issue233-migrate-unit-tests-to-chispa branch September 1, 2022 20:24
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.

Migrate unit tests to use Chispa
2 participants