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

Use unittest to discover and run the testsuite instead of nose #123

Merged
merged 5 commits into from
Jun 28, 2021

Conversation

rahulporuri
Copy link
Contributor

This PR does the following :

  • Convert a test function dimensionless_test into a test method in a unittest.TestCase class
  • Rename the test method to start with test_ instead of ending with _test to ensure that it gets picked up during unittest test discovery
  • Remove unused nose imports
  • Use unittest discover instead of nose to discover and run the testsuite
  • Remove nose as a dependency in the etstool utility

Poruri Sai Rahul added 5 commits June 25, 2021 13:55
this way, unittest discover would also pick up the test instead of
solely relying on nose

	modified:   scimath/units/tests/test_dimensionless_units.py
	modified:   scimath/units/tests/test_scalar_unit.py
by unittest discover

	modified:   scimath/units/tests/test_dimensionless_units.py
@rahulporuri rahulporuri added this to In progress in Enthought OSS Q2 2021 Jun 25, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2021

Codecov Report

Merging #123 (68e1860) into master (d7de308) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #123   +/-   ##
=======================================
  Coverage   65.71%   65.71%           
=======================================
  Files          60       60           
  Lines        2870     2870           
  Branches      369      369           
=======================================
  Hits         1886     1886           
  Misses        892      892           
  Partials       92       92           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7de308...68e1860. Read the comment docs.

Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

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

LGTM

I checked CI Logs and see 402 tests run as expected

@rahulporuri rahulporuri merged commit ecc0d3c into master Jun 28, 2021
@rahulporuri rahulporuri deleted the fix/use-unittest-testcase branch June 28, 2021 14:17
@rahulporuri rahulporuri moved this from In progress to Sprint 6 : 14 June - 25 June 2021 in Enthought OSS Q2 2021 Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Enthought OSS Q2 2021
  
Sprint 6 : 14 June - 25 June 2021
Development

Successfully merging this pull request may close these issues.

None yet

3 participants