Skip to content

TST: new set of tests #467

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

Merged
merged 6 commits into from
Nov 19, 2023
Merged

TST: new set of tests #467

merged 6 commits into from
Nov 19, 2023

Conversation

lucasfourier
Copy link
Contributor

@lucasfourier lucasfourier commented Nov 18, 2023

Pull request type

  • Code changes (bugfix, features)
  • Code maintenance (refactoring, formatting, tests)
  • ReadMe, Docs and GitHub updates
  • Other (please describe):

Checklist

  • Tests for the changes have been added (if needed)
  • Docs have been reviewed and added / updated
  • Lint (black rocketpy/ tests/) has passed locally
  • All tests (pytest --runslow) have passed locally

Current behavior

Tests won't pass with --runslow locally due to the following error:
"_tkinter.TclError: Can't find a usable tk.tcl in the following directories:"
which occurs non-deterministically. However, the newly implemented
tests passed locally with --runslow.

Enter text here...

New behavior

The test files test_flight, test_rocket and test_function have gained
new unit tests.

Breaking change

  • Yes
  • No

Additional information

Enter text here...

TST: added unit tests to rocketpy.Function, rocketpy.Rocket, rocketpy.Flight submodules.
Copy link

codecov bot commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a64c0ef) 70.87% compared to head (5cdb31a) 70.86%.
Report is 25 commits behind head on develop.

❗ Current head 5cdb31a differs from pull request most recent head 361e592. Consider uploading reports for the commit 361e592 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #467      +/-   ##
===========================================
- Coverage    70.87%   70.86%   -0.01%     
===========================================
  Files           55       55              
  Lines         9223     9224       +1     
===========================================
  Hits          6537     6537              
- Misses        2686     2687       +1     
Flag Coverage Δ
unittests 70.86% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@phmbressan phmbressan changed the base branch from master to develop November 18, 2023 13:44
@Gui-FernandesBR Gui-FernandesBR removed the request for review from luimot November 18, 2023 18:35
Copy link
Member

@Gui-FernandesBR Gui-FernandesBR left a comment

Choose a reason for hiding this comment

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

Nice work here, and very nice to see contributions from you again @lucasfourier !!

I made some tiny comments but overall the code is already improving our testing suit. Well done!

lucasfourier and others added 2 commits November 18, 2023 23:29
Made some changes according to the comments made in the PR.
@lucasfourier lucasfourier merged commit 0c86edd into develop Nov 19, 2023
@Gui-FernandesBR Gui-FernandesBR deleted the tst/multiple-asserts branch November 19, 2023 05:22
@Gui-FernandesBR Gui-FernandesBR added this to the Release v1.X.0 milestone Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tests Regarding Tests
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants