Skip to content

Commit

Permalink
Add verbose setup test
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrf committed Jun 12, 2023
1 parent 4677da4 commit ed520ff
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions cs-m1-tests/test/src/coursier/m1tests/SetupTests.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
package coursier.m1tests

object SetupTests extends coursier.clitests.SetupTests {
def launcher = Launcher.launcher
//object SetupTests extends coursier.clitests.SetupTests {
// def launcher = Launcher.launcher
//}

import utest._

object SetupTests2 extends utest.TestSuite {

val tests = Tests {

test("verbose setup") {
coursier.clitests.TestUtil.withTempDir { tempDir =>
val homeDir = os.Path(tempDir, os.pwd)
val installDir = homeDir / "bin"
val result = os.proc(
Launcher.launcher,
"setup",
"-v", "-v", "-v", "-v",
"--yes",
"--user-home",
homeDir.toString,
"--install-dir",
installDir.toString
).call()
assert(result.exitCode == 0)
}
}

}

}

0 comments on commit ed520ff

Please sign in to comment.