Merge pull request #20239 from rjernst/docs_rest_debugging

Tests: Improve rest suite names and generated test names for docs tests
This commit is contained in:
Ryan Ernst 2016-08-30 14:05:50 -07:00 committed by GitHub
commit 459e3c15a6
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ public class RestTestsFromSnippetsTask extends SnippetsTask {
if (false == test.continued) {
current.println('---')
current.println("\"$test.start\":")
current.println("\"line_$test.start\":")
}
if (test.skipTest) {
current.println(" - skip:")

View File

@ -155,7 +155,7 @@ public final class FileUtils {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (file.toString().endsWith(fileSuffix)) {
String groupName = file.toAbsolutePath().getParent().getFileName().toString();
String groupName = dir.relativize(file.getParent()).toString();
Set<Path> filesSet = files.get(groupName);
if (filesSet == null) {
filesSet = new HashSet<>();