-
Notifications
You must be signed in to change notification settings - Fork 23
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
Testsuite logging #482
Testsuite logging #482
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #482 +/- ##
==========================================
- Coverage 66.81% 66.76% -0.05%
==========================================
Files 17 17
Lines 2046 2046
==========================================
- Hits 1367 1366 -1
- Misses 679 680 +1
Flags with carried forward coverage won't be shown. Click here to find out more. see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
To avoid overcrowding the terminal, the idea here is to output to screen a message saying that the test has failed or passed at the end of all tests. Initally limited to indent and style tests only for simplicity. Desired output:
|
A different approach is to log all the output of the test to a file and just output to screen a message. |
This works for |
I can't find a way to log the unit tests. If I understand it, it is all hard wired in the FRUIT code and I don't really want to modify that. |
@spco I think I have done the merge correctly, but for some reasons, it is failing the macos tests again! |
More detail about the tests. Ubuntu:
MacOS:
All systems report a warning about Another warning message is
|
@@ -128,6 +128,7 @@ AtChem2 v1.3-dev | |||
6 BLHEIGHT NOTUSED | |||
7 DILUTE NOTUSED | |||
8 JFAC J4 | |||
STOP 2 |
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.
Can this be correct? A STOP
being printed, then further output afterwards? Seems odd.
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.
To be honest I do not know! The test is meant to fail, and it seems that STOP
is being printed to screen at least on my Linux machine. It seems it is not necessary for the jobs that run on actions. A bit puzzled.
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.
The difference between the two is probably something to do with how the two streams (output and error) are being handled, either piped to the same location or different ones. The main question is does it pass/fail the tests correctly I guess :)
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 particular test passes. It is four others that fail but only on mac.
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.
Hi @rs028 . All looks fine to me really, so long as you've tested it yourself then I see no problems (see the one comment above for a question). I don't want to hold things up if this is all working!
Improving the logs of the various tests (see #423).