-
Notifications
You must be signed in to change notification settings - Fork 91
feat(integration-tests): Clean up logging and error reporting in integration tests. #1802
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
Changes from all commits
1269402
9dbf299
e985fdf
7b4a68b
6fe0796
0562f48
2080fd5
6da4264
f5ec1b5
c0c4fd4
d9dc252
43f65aa
1c8992e
185184f
72a95d6
8490035
0aec888
12dc297
be301b6
55b507f
9af0ff2
1499b3a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,26 @@ | ||
| [pytest] | ||
| addopts = | ||
| --capture=no | ||
| --code-highlight=yes | ||
| --color=yes | ||
| -rA | ||
| --show-capture=no | ||
| --strict-config | ||
| --strict-markers | ||
| --tb=short | ||
| --verbose | ||
|
|
||
| console_output_style = classic | ||
|
|
||
| env = | ||
| D:CLP_BUILD_DIR=../build | ||
| D:CLP_CORE_BINS_DIR=../build/core | ||
| D:CLP_PACKAGE_DIR=../build/clp-package | ||
| D:INTEGRATION_TESTS_PROJECT_ROOT=./ | ||
| log_cli = True | ||
| log_cli_date_format = %Y-%m-%d %H:%M:%S,%f | ||
| log_cli_format = %(name)s %(asctime)s [%(levelname)s] %(message)s | ||
| log_cli_level = INFO | ||
|
|
||
| log_file_mode = a | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of appending to the same file, can isolate the logs from different test runs instead? e.g., use
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this isn't here, the test output file will contain all of the pytest logging messages followed by all of the output from the various subprocesses called during the test run, like this: It seems better to me to have everything written to the log file in order, so that it looks like this: The logs from different test runs are already isolated by the code in |
||
| log_file_level = INFO | ||
| log_file_format = %(asctime)s.%(msecs)03d %(levelname)s %(message)s | ||
| log_file_date_format = %Y-%m-%d %H:%M:%S | ||
|
|
||
| markers = | ||
| clp: mark tests that use the CLP storage engine | ||
| clp_json: mark tests that use the clp-json package | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.