Skip to content

TESTS: unit testing - #745

Draft
jhunkeler wants to merge 83 commits into
spacetelescope:mainfrom
jhunkeler:unittest
Draft

jhunkeler wants to merge 83 commits into
spacetelescope:mainfrom
jhunkeler:unittest

Conversation

@jhunkeler

Copy link
Copy Markdown
Contributor

Let's do the impossible

@jhunkeler
jhunkeler requested a review from a team as a code owner September 24, 2026 20:10
@jhunkeler
jhunkeler marked this pull request as draft September 24, 2026 20:10
@pllim pllim added the testing label Sep 24, 2026
@jhunkeler
jhunkeler force-pushed the unittest branch 2 times, most recently from 88ce69b to 45ae9d4 Compare October 9, 2026 05:43
@jhunkeler jhunkeler changed the title TESTS: hstio unit tests TESTS: unit testing Oct 16, 2026
* Change stats wording
* Add wrappers for TEST_STATS_SHOW and TEST_STATS_UPDATE
* Update comment on TEST_BEGIN to match usage
* All stub functions are set to skip
* Rename TEST_DESCRIBE to TEST_MARK, as in "mark what is happening"
* Errors are bright bold red
* Pretty up test summary output
* TEST_END has been renamed to TEST_RETURN
* TEST_RETURN shall be called before the closing brace, not after
* TEST_SUITE_BEGIN takes a name argument to be used by the TEST_SUITE_ macros/functions
* Fix warnings caused by ternary operating on macro argument (always true)
* Since the stats array is based on the number of possible return codes, just define the max as the last element in the enum
* Add TEST_VMSG to properly handle variadic arguments passed in
*
* Incorporate into log file name
* Add environment verbose mode toggle
* Now all return types call the teardown function
* Remove mktemps usage
* Add TEST_SUITE_SAFE_NAME() - sanitize the suite name
* When creating logs, namespace them using the suite name as the parent directory
* Rename TestRedirect.origin member to .unit_name
* Add TestRedirect.unit_suite member
* Fail if the log directory or its leaf cannot be created
* Set STCUNIT_REFTYPE to "tags" for tagged versions and "heads" for named branches
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