(t *testing.T)
| 216 | } |
| 217 | |
| 218 | func TestStartWithCISkip(t *testing.T) { |
| 219 | output, configuration := setup(t) |
| 220 | configuration.SkipCiPushOptionEnabled = true |
| 221 | mockExit() |
| 222 | |
| 223 | start(configuration) |
| 224 | |
| 225 | assertOutputContains(t, output, "git push --push-option ci.skip --no-verify --set-upstream origin mob-session:mob-session") |
| 226 | assertOutputContains(t, output, "Disable the push option ci.skip in your .mob file or set the expected environment variable") |
| 227 | assertOutputContains(t, output, "export MOB_SKIP_CI_PUSH_OPTION_ENABLED=false") |
| 228 | resetExit() |
| 229 | } |
| 230 | |
| 231 | func TestStartWithOutCISkip(t *testing.T) { |
| 232 | output, configuration := setup(t) |
nothing calls this directly
no test coverage detected