Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
joey-yoonsung opened this issue Nov 12, 2020 · 3 comments
Open

Comments

@joey-yoonsung
Copy link

joey-yoonsung commented Nov 12, 2020

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.

  • I can run scala-test in gradle like below
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
    main = 'org.scalatest.tools.Runner'
    args = ['-R', 'build/classes/scala/test', '-o']
    classpath = sourceSets.test.runtimeClasspath
}
test.dependsOn scalaTest
@joey-yoonsung joey-yoonsung changed the title airframe-airspec Support runner tool for using it on Gradle project. airframe-airspec: Support runner tool for using it on Gradle project. Nov 12, 2020
@xerial
Copy link
Member

xerial commented Nov 12, 2020

Interesting. Does AirSpecLauncher.main work for this purpose?

def main(args: Array[String]): Unit = {

@joey-yoonsung
Copy link
Author

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

@joey-yoonsung
Copy link
Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants