Skip to content

Expose SBT Test Args to tests in the TestSuite #87

@russwyte

Description

@russwyte

It would be helpful to allow developers to have access to configuration details which are passed to the test Framework via args.

in SBT:
testOptions in Test += Tests.Argument(file("").toURI.toString)

Example:
def runner(args: Array[String], remoteArgs: Array[String], testClassLoader: ClassLoader) could forward the args array to the test suite and make it available - perhaps via an implicit similar to utest.framework.TestPath

This would allow tests to utilize values that come from SBT itself. Such as a URI to directory of the current project as above. The can be very handy when you need to functionally test things that require AJAX requests to a project file within a scala.js project.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions