Not sufficient documentation, but important part of it
IBM Best Practices
You are not allowed to write any production code unless it is to make a failing unit test pass.
You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
You are not allowed to write any more production code than is sufficient to pass the one failing unit test.
Run all tests that are developed as part of your development pipeline. A failing test must stop the pipeline.
Dockerfiles
Can't really test Dockerfiles individually.
Could have a smoke test that our docker compose file is able to compile and run each docker container
Correctness is intrinsically tested within other specific requirements
E.g. If we are test that you can call an endpoint for the server running in the docker container, then when we test that endpoint it will indirectly verify that the dockerfile was implemented correctly.
Resources - Videos to Watch to better understand Test Driven Development