Skip to content

Improve test coverage for dockerfile_fragments.py with synthetic Dockerfile assertions #2683

@coderabbitai

Description

@coderabbitai

Context

This is a follow-up from PR #2682 to improve test coverage in scripts/dockerfile_fragments.py.

Suggestion

The current test_dry_run test validates that main() completes against real Dockerfile trees, but doesn't assert on actual replacements. For stronger regression protection, consider:

  • Extending test_dry_run to assert that at least one known marker in a small synthetic Dockerfile gets rewritten as expected
  • Adding a focused test that validates marker replacement behavior decoupled from the full repository layout

This would provide better regression protection beyond just verifying the script doesn't crash.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions