(t *testing.T)
| 1200 | } |
| 1201 | |
| 1202 | func TestStartDonePublishingOneManualCommit(t *testing.T) { |
| 1203 | _, configuration := setup(t) |
| 1204 | configuration.DoneSquash = config.NoSquash |
| 1205 | |
| 1206 | start(configuration) |
| 1207 | assertOnBranch(t, "mob-session") |
| 1208 | createFileAndCommitIt(t, "example.txt", "contentIrrelevant", "[manual-commit-1] publish this commit to master") |
| 1209 | assertCommits(t, 2) |
| 1210 | |
| 1211 | done(configuration) // without squash (configuration) |
| 1212 | |
| 1213 | assertOnBranch(t, "master") |
| 1214 | assertCleanGitStatus(t) |
| 1215 | assertCommitsOnBranch(t, 2, "master") |
| 1216 | assertCommitLogContainsMessage(t, "master", "[manual-commit-1] publish this commit to master") |
| 1217 | assertCommitsOnBranch(t, 1, "origin/master") |
| 1218 | assertNoMobSessionBranches(t, configuration, "mob-session") |
| 1219 | } |
| 1220 | |
| 1221 | func TestStartDoneSquashTheOneManualCommit(t *testing.T) { |
| 1222 | _, configuration := setup(t) |
nothing calls this directly
no test coverage detected