(t *testing.T)
| 1509 | } |
| 1510 | |
| 1511 | func TestBothCreateNonemptyCommitWithNext(t *testing.T) { |
| 1512 | _, configuration := setup(t) |
| 1513 | |
| 1514 | setWorkingDir(tempDir + "/local") |
| 1515 | start(configuration) |
| 1516 | createFile(t, "file1.txt", "contentIrrelevant") |
| 1517 | |
| 1518 | setWorkingDir(tempDir + "/localother") |
| 1519 | start(configuration) |
| 1520 | createFile(t, "file2.txt", "contentIrrelevant") |
| 1521 | |
| 1522 | setWorkingDir(tempDir + "/local") |
| 1523 | next(configuration) |
| 1524 | |
| 1525 | setWorkingDir(tempDir + "/localother") |
| 1526 | // next(configuration) not possible, would fail |
| 1527 | git("pull") |
| 1528 | next(configuration) |
| 1529 | |
| 1530 | setWorkingDir(tempDir + "/local") |
| 1531 | start(configuration) |
| 1532 | assertFileExist(t, "file1.txt") |
| 1533 | assertFileExist(t, "file2.txt") |
| 1534 | |
| 1535 | setWorkingDir(tempDir + "/localother") |
| 1536 | start(configuration) |
| 1537 | assertFileExist(t, "file1.txt") |
| 1538 | assertFileExist(t, "file2.txt") |
| 1539 | } |
| 1540 | |
| 1541 | func TestNothingToCommitCreatesNoCommits(t *testing.T) { |
| 1542 | _, configuration := setup(t) |
nothing calls this directly
no test coverage detected