wvlet / airframe

Essential Building Blocks for Scala
https://wvlet.org/airframe
Apache License 2.0
631 stars 65 forks source link

airframe-airspec: Support runner tool for using it on Gradle project. #1352

Open joey-yoonsung opened 3 years ago

joey-yoonsung commented 3 years ago

Hi. I'm developing a multi-language project.

Our project uses Gradle as a build tool.

I want to use airspec as the testing framework for scala language but I couldn't find this framework works with the build tool in Gradle.

I can use this framework if there is a runner class which has the main function such as org.scalatest.tools.Runner in scala-test project.

xerial commented 3 years ago

Interesting. Does AirSpecLauncher.main work for this purpose? https://github.com/wvlet/airframe/blob/f35b64e4c8133ffdc8c45659fa0e7346012747fa/airspec/src/main/scala/wvlet/airspec/AirSpecLauncher.scala#L27

joey-yoonsung commented 3 years ago

@xerial Oh. There is. Thanks to inform me. I will try to apply it.

joey-yoonsung commented 3 years ago

I tried it. But It only takes one test class fullname. I cannot run as classpath. I will make pull requests to improve this Runner such as org.scalatest.tools.Runner