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

Improve test coverage and robustness #26

Merged
merged 6 commits into from
Dec 19, 2024
Merged

Conversation

rouson
Copy link

@rouson rouson commented Dec 17, 2024

This PR

  1. Replaces the previously fragile unit tests for the command_line_t type with tests that no longer require launching an fpm subprocess via execute_command_line and checking that child process's exit status.
  2. Improves test output: if the flags for running the command_line_t tests are not detected in the fpm test command, the main test program prints instructions for running the command_line_t tests .
  3. Updates from macOS 12 to the GitHub CI-supported version 13.
  4. Adds the.smod generated submodule file extensions to the .gitignore file.
  5. Fixes some issues that led to crashes when searched-for flags were not present or the flag value is not present.
  6. Adds command_line_t unit tests.

This commit replaces the previously fragile unit tests for the
command_line_t type with tests that no longer require launching an
fpm subprocess via execute_command_line and checking that child
process's exit status.  The test main program also now prints
instructions for how to run the command_line_t tests if the flags
for running those tests is not detected.
@rouson rouson changed the title test(command_line_t): improve test robustness test(command_line_t): improve robustness Dec 17, 2024
@rouson rouson force-pushed the fix-commmand-line-tests branch from 2116e76 to 45441b5 Compare December 17, 2024 06:53
This commit fixes some issues that led to crashes when searched-for
flags are not present or the flag value is not present.
@rouson rouson changed the title test(command_line_t): improve robustness Improve test coverage and robustness Dec 19, 2024
@rouson rouson merged commit 0be1298 into main Dec 19, 2024
8 checks passed
@rouson rouson deleted the fix-commmand-line-tests branch December 19, 2024 06:52
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.

1 participant