Skip to content

Commit 7a9503f

Browse files
authored
Merge pull request #218 from barbosamaatheus/tse26
fix tests
2 parents 6c86ff2 + 7c7fbae commit 7a9503f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/project/commitHashesExtraction/GitLogCommitHashesExtractor.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import util.ProcessRunner
77
class GitLogCommitHashesExtractor implements CommitHashesExtractor {
88
private String sinceDate
99
private String untilDate
10+
private String path
1011

1112
private static final EXPECTED_OUTPUT = ~/.*-(.* .*)+/
1213

@@ -35,6 +36,11 @@ class GitLogCommitHashesExtractor implements CommitHashesExtractor {
3536
return result
3637
}
3738

39+
private Process constructAndRunGitLog(Project project) {
40+
this.path = project.getPath()
41+
return constructAndRunGitLog(this.sinceDate, this.untilDate)
42+
}
43+
3844
private Process constructAndRunGitLog(String sinceDate, String untilDate) {
3945
ProcessBuilder gitLogBuilder = ProcessRunner.buildProcess(path, 'git', '--no-pager', 'log', '--merges', '--pretty=%H-%p')
4046
if(!sinceDate.equals(''))

src/test/integration/fileTest/compare/data/result.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ jsoup;fee4762322f85a1109edd75ccb67f38cf5008c80;org.jsoup.helper.HttpConnection;c
55
jsoup;e38b916ba1ebd3f5c00a6b6b8e77a4cdfea2800f;org.jsoup.select.QueryParser;byTag();[226, 218, 219, 220, 221, 222];[];[225];[]
66
jsoup;a8b6982de98ff76ef254031d7152fff57f6bf941;org.jsoup.helper.HttpConnection;execute(Connection.Request, Response);[584, 585, 586];[590];[544, 547];[]
77
jsoup;a44e18aa3c1fcd25a68a5965f9490d8f7d026509;org.jsoup.nodes.TextNode;outerHtmlHead(StringBuilder, int, Document.OutputSettings);[94];[];[98];[]
8+
jsoup;ea3225714c9e6e02ab17c4a79a88b71d1ea6eae3;org.jsoup.nodes.DocumentTest;parseAndHtmlOnDifferentThreads();[449, 450, 451, 452, 453, 454, 455, 456, 457, 459, 460, 461, 440, 441, 442, 443, 444, 445, 446, 447];[];[449, 450, 451, 454, 455, 456, 440, 457, 444, 445];[]
89
jsoup;ea3225714c9e6e02ab17c4a79a88b71d1ea6eae3;org.jsoup.nodes.Document;encoder;[376, 377, 378, 379, 380, 381];[];[376, 377, 378, 379, 380, 381];[]
910
jsoup;ea3225714c9e6e02ab17c4a79a88b71d1ea6eae3;org.jsoup.nodes.Document;charset(Charset);[433];[];[433];[]
1011
jsoup;821b021a1e5fc75719c71ae5ea84157d770c1a9d;org.jsoup.helper.DataUtil;getCharsetFromContentType(String);[181];[];[181];[]

0 commit comments

Comments
 (0)