問題文
A team wants automated confidence that a change to a shared library does not break its callers. Which practice gives that confidence earliest?
選択肢
- Add usage examples to the shared library and block the merge when the test run fails on any commit.
- Add unit tests to the shared library and block the merge when the style check fails on any commit.
- Add usage examples to the shared library and block the merge when the style check fails on any commit.
- Add unit tests to the shared library and block the merge when the test run fails on any commit.