MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / TestStartWithCISkip

Function TestStartWithCISkip

mob_test.go:218–229  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

216}
217
218func 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
231func TestStartWithOutCISkip(t *testing.T) {
232 output, configuration := setup(t)

Callers

nothing calls this directly

Calls 5

setupFunction · 0.85
mockExitFunction · 0.85
startFunction · 0.85
assertOutputContainsFunction · 0.85
resetExitFunction · 0.85

Tested by

no test coverage detected