Skip to content

[Docker Doctor] Add unit tests for 10 previously untested linter rules#8

Merged
PunGrumpy merged 4 commits into
mainfrom
advisor/004-write-tests-for-untested-rules
Jul 12, 2026
Merged

[Docker Doctor] Add unit tests for 10 previously untested linter rules#8
PunGrumpy merged 4 commits into
mainfrom
advisor/004-write-tests-for-untested-rules

Conversation

@PunGrumpy

Copy link
Copy Markdown
Owner

Add unit tests for 10 previously untested linter rules

This PR introduces comprehensive unit tests for 10 previously untested linter rules in the core engine. This ensures full test coverage across all rules, preventing silent failures and regressions in future modifications.

Changes

  • packages/core/test/rules.test.ts:
    • Imported and wrote test cases for requireHealthcheck, preferCopyOverAdd, useExecForm, requireLabels, requireRestartPolicy, useDependsOnCondition, noAddRemote, avoidDevDependencies, useMultiStage, and minimizeLayers.
    • Added tests for useDockerignore to verify proper .dockerignore file detection.

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docker-doctor Skipped Skipped Jul 12, 2026 2:19pm

@PunGrumpy PunGrumpy merged commit b3b5b3d into main Jul 12, 2026
9 checks passed
@PunGrumpy PunGrumpy deleted the advisor/004-write-tests-for-untested-rules branch July 12, 2026 14:35
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