one = "1\n"
two = "2\n"
task, target = self._fixture(incremental=True)
// Run twice, with a different implementation version the second time.
DummyTask._implementation_version = 0
self._create_clean_file(target, one)
After Change
def test_implementation_version(self):
When the implementation version changes, previous artifacts are not available.
self._write_build_file()
one = "1\n"
two = "2\n"
// Run twice, with a different implementation version the second time.
DummyTask._implementation_version = 0
self._create_clean_file(one)
task = self._task(incremental=True)
vtA, _ = task.execute()
self.assertContent(vtA, one)
DummyTask._implementation_version = 1
self._create_clean_file(two)
task = self._task(incremental=True)
vtB, _ = task.execute()
// No incrementalism.
self.assertFalse(vtA.is_incremental)