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 a190fe6
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
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", "latest")
.call(cwd = root).out.trim()

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

0 comments on commit a190fe6

Please sign in to comment.