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

GTC-2864 Make test output for Data API be less verbose by default #548

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

danscales
Copy link
Collaborator

GTC-2864 Make test output for Data API be less verbose

I changed both script/test and script/test_v2 to not show warnings or
do/show code coverage by default. So, the actual test results won't
scroll off the screen in the output when running a single or few tests.
Also, I added an option to cause stdout of the tests to be displayed, so
that you can see debugging print() calls when running tests, even if the
test succeeds. (Normally all output of a test is captured and not
displayed if the test succeeds, which makes sense when not debugging.)

New options (all off by default):
--do-cov - Run code coverage and display it after the test results
--show-warning - Show python warnings when compiling tests
--show-stdout - Show output of successful tests

Definitely feel free to comment on other ways to improve the Data API test output.

I change both script/test and script/test_v2 to not show warnings or
do/show code coverage by default. So, the actual test results won't
scroll off the screen in the output when running a single or few tests.
Also, I added an option to cause stdout of the tests to be displayed, so
that you can see debugging print() calls when running tests, even if the
test succeeds. (Normally all output of a test is captured and not
displayed if the test succeeds.)

New options (all off by default):
  --do-cov - Run code coverage and display it after the test results
  --show-warning - Show python warnings when compiling tests
  --show-stdout - Show output of successful tests
If you are specifying specific test files for scripts/test or
scripts/test_v2, now include the relative catch from the the top of the
repo (don't drop tests/ or tests_v2). Will make file completion of the
test file names from the shell be usable.

Also, enable --show-warnings for the the tests run in the Github
actions.
@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.03%. Comparing base (5e0e58e) to head (1f05aed).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #548   +/-   ##
========================================
  Coverage    82.03%   82.03%           
========================================
  Files          126      126           
  Lines         5665     5665           
========================================
  Hits          4647     4647           
  Misses        1018     1018           
Flag Coverage Δ
unittests 82.03% <ø> (ø)

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.

Copy link
Member

@dmannarino dmannarino left a comment

Choose a reason for hiding this comment

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

This is great, thanks!

@danscales danscales merged commit e5140f8 into develop Jul 1, 2024
2 checks passed
@danscales danscales deleted the gtc-2864 branch July 1, 2024 15:16
@manukala6 manukala6 mentioned this pull request Jul 1, 2024
13 tasks
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.

3 participants