You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! One feature that i'd like to have is to be able to write the source and the test in the same file - that way I can just write one off scripts without having to worry about keeping the test file next to the implementation file.
and then scala-cli Hello.scala would run Hello.main, while scala-cli test Hello.scala would run the test suite defined in HelloTest. Is this feasible or something that we want? I would be open to writing this feature if it's something that would be accepted. If so, I can write up a RFC-like to get some opinions on the design. Thanks!
The text was updated successfully, but these errors were encountered:
Hello! One feature that i'd like to have is to be able to write the source and the test in the same file - that way I can just write one off scripts without having to worry about keeping the test file next to the implementation file.
Something like the following:
and then
scala-cli Hello.scala
would runHello.main
, whilescala-cli test Hello.scala
would run the test suite defined inHelloTest
. Is this feasible or something that we want? I would be open to writing this feature if it's something that would be accepted. If so, I can write up a RFC-like to get some opinions on the design. Thanks!The text was updated successfully, but these errors were encountered: