Skip to content

Fix tests and add missing exception testing.#391

Closed
aaronweeden wants to merge 16 commits intoubccr:xdmod11.0from
aaronweeden:catch-test-errors
Closed

Fix tests and add missing exception testing.#391
aaronweeden wants to merge 16 commits intoubccr:xdmod11.0from
aaronweeden:catch-test-errors

Conversation

@aaronweeden
Copy link
Copy Markdown
Contributor

@aaronweeden aaronweeden commented Aug 21, 2024

Description

This PR adds CircleCI testing for exceptions logged to logs/exceptions.log in the checked out xdmod repository. For example, an exception caused by a bug in integration test code might be echoed to stderr and written to logs/exceptions.log but not cause phpunit to fail, and thus CircleCI would not fail.

This PR fixes the bugs that are exposed by this change.

There is also a PR for ubccr/xdmod#1903.

Tests performed

I tested the exceptions testing, confirmed the CircleCI build fails, and fixed the bugs.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project as found in the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

jpwhite4
jpwhite4 previously approved these changes Aug 21, 2024
@aaronweeden aaronweeden added the qa label Aug 21, 2024
@jpwhite4 jpwhite4 added this to the 11.5.0 milestone Sep 10, 2024
@aaronweeden aaronweeden changed the base branch from main to xdmod11.0 December 2, 2024 20:08
@aaronweeden aaronweeden changed the title Add missing exception testing. Fix tests and add missing exception testing. Feb 6, 2025
@aaronweeden aaronweeden modified the milestones: 11.5.0, 11.0.1 Feb 6, 2025
@aaronweeden aaronweeden marked this pull request as ready for review February 6, 2025 19:51
@aaronweeden aaronweeden mentioned this pull request Feb 6, 2025
6 tasks
@aaronweeden aaronweeden modified the milestones: 11.0.1, 11.5.0 Feb 7, 2025
@aaronweeden aaronweeden mentioned this pull request Oct 20, 2025
6 tasks
@aaronweeden aaronweeden marked this pull request as draft October 21, 2025 14:31
@aaronweeden
Copy link
Copy Markdown
Contributor Author

Closed in favor of #434.

@aaronweeden aaronweeden deleted the catch-test-errors branch October 24, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants