-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Added test coverage and renamed existing test files to allow coverage to work #886
base: develop
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,46 @@ | |||
import unittest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this file do? is it a script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file adds a command for running the tests without the coverage and with the coverge the respective commands being python TestCommands.py test
and python TestCommands.py cov
@JaDogg For running the tests the command is |
from UserManager import * | ||
import unittest | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why there are two blank lines between code blocks instead of one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No these are left because of keeping the code easy to read but if you think i will remove the extra line.
|
||
|
||
if __name__ == '__main__': | ||
manager.run() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new line at the end of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay i will
… the tests at once and renamed the existing test files for coverage to work
70f6e2f
to
1aa7b24
Compare
Description
Added test coverage to existing tests and displayed them in an orderly fashion. Added extra commands to run all the tests at once. Also, edited the names of the existing tests files to allow the test coverage to work.
Related Issue #851
Motivation and Context
The project was lacking the magnitude and the reach of the impact of the existing tests have on the whole flask backend this can help ensure maximum efficiency of the reach of the test cases present.
How Has This Been Tested?
Types of changes
Checklist: