File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/com/goide/runconfig/testing Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 4040import com .intellij .openapi .vfs .VirtualFile ;
4141import com .intellij .psi .PsiFile ;
4242import com .intellij .psi .PsiManager ;
43+ import com .intellij .util .PathUtil ;
4344import com .intellij .util .containers .ContainerUtil ;
4445import org .jetbrains .annotations .NotNull ;
4546import org .jetbrains .annotations .Nullable ;
@@ -83,11 +84,14 @@ protected GoExecutor patchExecutor(@NotNull GoExecutor executor) throws Executio
8384 String relativePath = FileUtil .getRelativePath (myConfiguration .getWorkingDirectory (),
8485 myConfiguration .getDirectoryPath (),
8586 File .separatorChar );
87+ // TODO Once Go gets support for covering multiple packages the ternary condition should be reverted
88+ // See https://golang.org/issues/6909
89+ String pathSuffix = (myCoverageFilePath == null ) ? "..." : "." ;
8690 if (relativePath != null ) {
87- executor .withParameters ("./" + relativePath + "/..." );
91+ executor .withParameters ("./" + relativePath + "/" + pathSuffix );
8892 }
8993 else {
90- executor .withParameters ("./..." );
94+ executor .withParameters ("./" + pathSuffix );
9195 executor .withWorkDirectory (myConfiguration .getDirectoryPath ());
9296 }
9397 addFilterParameter (executor , myConfiguration .getPattern ());
You can’t perform that action at this time.
0 commit comments