scala - Running only a specific Spec from SBT that has constructor parameters -
i have specs2 specification
test database related things against multiple databases. therefore gets database configuration test against via constructor parameters. instantiated , used bigger spec tests against databases.
now want test against lets mssql in sbt if use test-only f.q.d.n.myspec(databaseconfig.mssql)
no tests run because not match tests. if leave parameter off tries instantiate class , rightfully fails because cant instantiate without parameters.
is there way run specific specification specific set of constructor parameters sbt without changing bigger spec calls it?
when use test:only
need pass expression matching class name (using *
if needed). specs2 try instantiate constructor parameters if have constructor 0 arguments. not case if pass object. can try have class 0 argument constructor instead?
Comments
Post a Comment