Skip to content

test: add DockerCli tests for command generation and constructor #45064

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

Closed
wants to merge 3 commits into from

Conversation

20210815
Copy link

Description

This PR improves test coverage for DockerCli in the spring-boot-docker-compose module.

It adds:

  • A unit test for createCommand() using mocked dependencies
  • A test for the file-based constructor (with assumptions) to ensure compatibility in Docker environments

These tests ensure that command generation and constructor paths are covered and validated.

20210815 and others added 3 commits April 10, 2025 23:14
Signed-off-by: 이규민 <[email protected]>
Signed-off-by: 이규민 <[email protected]>
Signed-off-by: 이규민 <[email protected]>
Signed-off-by: 이규민 <[email protected]>
@snicoll
Copy link
Member

snicoll commented Apr 10, 2025

Thanks for the PR but the duplication of the constructor is not something I am keen to merge. The use of File(".") is also problematic.

@snicoll snicoll closed this Apr 10, 2025
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants