addTag function
Add tag to test directory
Implementation
Future<void> addTag(Directory testDir, String tag) async {
final result = await Process.run('git', [
'tag',
tag,
], workingDirectory: testDir.path);
_throw('Could not add tag $tag', result);
}