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 #589

Merged
merged 26 commits into from
Sep 12, 2024
Merged

Improve test coverage #589

merged 26 commits into from
Sep 12, 2024

Conversation

ehennestad
Copy link
Collaborator

@ehennestad ehennestad commented Sep 10, 2024

Fix #580

Motivation

90% test coverage

How to test the behavior?

N/A

Checklist

  • Have you ensured the PR description clearly describes the problem and solutions?
  • Have you checked to ensure that there aren't other open or previously closed Pull Requests for the same change?
  • If this PR fixes an issue, is the first line of the PR description fix #XX where XX is the issue number?

Add function to create a filepath for saving tutorial nwb files in a fixed folder
Also, use misc.getTutorialNwbFilePath to create a filepath for saving tutorial nwb file
Some dates are assigned wrongly when Day, Month and Year are set individually, as the datetime object internally/silently adjusts month if day is not valid
Fix: Should not preallocate datetimeArray as it is not known beforehand whether the timestamp has a timezone or not (datetime.empty contrains to datetime w/o timezone)
Ensure test can be run from any current working directory, not just the matnwb repo folder
Simplyfy function by using mfilename instead of dbstack
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.71%. Comparing base (904ff14) to head (6fa74a5).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #589      +/-   ##
==========================================
+ Coverage   88.99%   90.71%   +1.71%     
==========================================
  Files         105      105              
  Lines        4645     4632      -13     
==========================================
+ Hits         4134     4202      +68     
+ Misses        511      430      -81     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ehennestad ehennestad marked this pull request as ready for review September 12, 2024 10:38
@bendichter bendichter merged commit fd34d3d into master Sep 12, 2024
1 check was pending
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.

[Feature]: Improve test converage to 90%
2 participants