Skip to content

Complete Lack of Unit/Integration Tests for the pkg/config Package - #498

Open
aniket866 wants to merge 1 commit into
microcks:masterfrom
aniket866:adding-missing-config-test
Open

Complete Lack of Unit/Integration Tests for the pkg/config Package#498
aniket866 wants to merge 1 commit into
microcks:masterfrom
aniket866:adding-missing-config-test

Conversation

@aniket866

Copy link
Copy Markdown
Contributor

Closes #497

  • Location: pkg/config directory (contains config.go, localconfig.go, and file permission helper files)
  • Reason: The configuration layer parses contexts, updates client configurations, and performs file permission checks (getFilePermission). Without tests, config validation and context switching logic can easily break during updates, which directly impacts all other client-dependent commands (like import and test).

Reproduction Flow

graph TD
    A["Developer modifies context validation/permission checks"] --> B["Runs tests with 'go test ./pkg/config'"]
    B --> C["CLI outputs: 'no test files'"]
    C --> D["Changes cause invalid configurations to pass validation unchecked"]
Loading

Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>
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.

Complete Lack of Unit/Integration Tests for the pkg/config Package

1 participant