-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #471 from eed3si9n/wip/launchertest
Fix SshAgentSessionFactory
- Loading branch information
Showing
8 changed files
with
80 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package testpkg | ||
|
||
import giter8._ | ||
import verify._ | ||
import java.io.File | ||
import sbt.io.IO | ||
|
||
object LauncherTest extends BasicTestSuite { | ||
lazy val launcher = new Runner { | ||
def run(args: Array[String], workingDirectory: File): Int = { | ||
run(args, workingDirectory, new LauncherProcessor) | ||
} | ||
} | ||
implicit private class RichFile(file: File) { | ||
def /(child: String): File = new File(file, child) | ||
} | ||
|
||
test("runs scala/scala-seed.g8") { | ||
IO.withTemporaryDirectory { dir => | ||
launcher.run(Array("scala/scala-seed.g8", "--name=hello"), dir) | ||
assert((dir / "hello" / "build.sbt").exists) | ||
} | ||
} | ||
|
||
/* | ||
test("runs git@github.com:scala/scala-seed.g8.git") { | ||
IO.withTemporaryDirectory { dir => | ||
launcher.run(Array("git@github.com:scala/scala-seed.g8.git", "--name=hello"), dir) | ||
assert((dir / "hello" / "build.sbt").exists) | ||
} | ||
} | ||
*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.3.10 | ||
sbt.version=1.2.8 |