Skip to content

Commit

Permalink
Add intergration test
Browse files Browse the repository at this point in the history
  • Loading branch information
lwronski committed Jan 16, 2023
1 parent 9a31863 commit 26d64e9
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -1057,4 +1057,19 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
expect(output.contains(exceptionMsg))
}
}

test("should add toolkit to classpath") {
val inputs = TestInputs(
os.rel / "Hello.scala" ->
s"""object Hello extends App {
| println(os.pwd) // os lib should be added to classpath by toolkit
|}""".stripMargin
)
inputs.fromRoot { root =>
val output = os.proc(TestUtil.cli, ".", "--toolkit", "0.1.4")
.call(cwd = root).out.trim()

expect(output == root.toString())
}
}
}

0 comments on commit 26d64e9

Please sign in to comment.