Skip to content

Merge develop into main#6

Merged
heinrichb merged 56 commits intomainfrom
develop
Feb 18, 2025
Merged

Merge develop into main#6
heinrichb merged 56 commits intomainfrom
develop

Conversation

@heinrichb
Copy link
Copy Markdown
Collaborator

Full code coverage, and basic CLI output working.

heinrichb and others added 30 commits February 13, 2025 19:50
  - Added an 'install' target that runs `go mod tidy` and fails if `go.sum` is not up-to-date.
  - Modified the 'test' target to use gotestsum for prettier test output, installing it automatically if not present.
  - Added a 'tree' target that checks for the `tree` command, attempts to install it on Linux/macOS if missing, and then displays the directory structure.
- Updated CI workflows in .github/workflows/ci.yml:
  - Added a step to check go.sum consistency before building.
  - Maintained build, test, and coverage upload steps with improved formatting and consistency.
…gnoring any config file besides default for now
- Introduced a global `Verbose` flag in `config.go` to manage debug output.
- Registered `--verbose` (`-v`) flag in `main.go` for user control.
- Modified `Load()` in `config.go` to conditionally display `PrintNonEmptyFields()` output when `Verbose` is enabled.
- Updated CLI tests in `main_test.go` to validate proper handling of CLI arguments.
- Improved `TestCLIOverrides` to dynamically verify CLI argument overrides.
- Standardized flag registration and execution flow for better maintainability.
- Ensured verbose output is globally accessible without needing to pass it through function calls.

This change improves debugging by allowing users to toggle detailed output while keeping default behavior concise.
feat: Add verbose flag (-v, --verbose) for enhanced system messages
Load - 100%
OverrideWithCLI - 72%
100%
100%
100%
100%
Post-process the generated coverage profile to remove entries for `cmd/scrapeycli/main.go`,
which are not intended to be unit tested. This change updates the Makefile's test target
to filter out these lines before generating the HTML report, and also applies the same
filtering in the CI workflow. This ensures that overall coverage is not skewed by the
main package.
@heinrichb heinrichb self-assigned this Feb 18, 2025
@heinrichb heinrichb merged commit 9ff2d1f into main Feb 18, 2025
3 checks passed
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.

2 participants