chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Add more DateTime.into tests (branch 0.4.x)

Open jtmoon79 opened this issue 2 years ago • 9 comments
trafficstars

More tests for combinations of DateTime::into.

Follow-up to Pull Request #271.

jtmoon79 avatar May 28 '23 03:05 jtmoon79

I am somewhat surprised to two DateTimes with different time zones compare equal

They are the same instant just in different time zones. It makes intuitive sense to me. 🤷

jtmoon79 avatar May 28 '23 23:05 jtmoon79

I think we should first start to track coverage so we can judge whether this actually improves coverage.

djc avatar May 30 '23 07:05 djc

I think we should first start to track coverage so we can judge whether this actually improves coverage.

@jtmoon79 Do you want to rebase and see what the coverage is?

pitdicker avatar Sep 19 '23 13:09 pitdicker

Codecov Report

Merging #1088 (546dd9d) into 0.4.x (a47e0e3) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            0.4.x    #1088      +/-   ##
==========================================
+ Coverage   91.24%   91.31%   +0.06%     
==========================================
  Files          38       38              
  Lines       17062    17094      +32     
==========================================
+ Hits        15568    15609      +41     
+ Misses       1494     1485       -9     
Files Changed Coverage Δ
src/datetime/tests.rs 96.59% <100.00%> (+0.08%) :arrow_up:

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Sep 21 '23 05:09 codecov[bot]

From the Codecov report:

Total increase

+ Coverage 91.36% 91.43% +0.07%

per file increase

src/datetime/mod.rs 88.40% <100.00%> (+2.14%)

IMO it's worthwhile to add. Up to you guys.

jtmoon79 avatar Sep 21 '23 05:09 jtmoon79

codecov is now reporting

- Coverage 91.36% 90.42% -0.94%

src/datetime/mod.rs 77.22% <100.00%> (-9.03%)

🤨

Is there a way to kick it?

jtmoon79 avatar Sep 21 '23 05:09 jtmoon79

Is there a way to kick it?

Sometimes I would like to 🤣.

In this case I think it started counting some of the lines in mod tests in the total, decreasing the covered percentage.

pitdicker avatar Sep 21 '23 07:09 pitdicker

workflow codecov failed. These are often fixed by running again. I don't have access to force a re-run of the codecov workflow.

[2023-09-25T01:25:26.367Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.6.2&token=*******&branch=Issue263_more_tests_0.4.x&build=6293693314&build_url=https%3A%2F%2Fgithub.com%2Fchronotope%2Fchrono%2Factions%2Fruns%2F6293693314&commit=546dd9d56abc73bd2b615cbc7165432707f8fb96&job=codecov&pr=1088&service=github-actions&slug=chronotope%2Fchrono&name=&tag=&flags=&parent=
[2023-09-25T01:25:26.644Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) > Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

jtmoon79 avatar Sep 25 '23 01:09 jtmoon79

Triggered a re-run.

djc avatar Sep 25 '23 07:09 djc

@jtmoon79 Thank you for you efforts!

Unfortunately I don't think these tests add enough value to merge 😞.

pitdicker avatar Apr 08 '24 14:04 pitdicker