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
Right now with the normal convention of unit tests in object test extends JavaTests, object integration extends JavaTests, etc., there is no way for a user to select only unit tests via a query: __.integration resolves only integration tests, but __.test resolves both unit tests and integration tests via .integration.test. We could tell everyone to say object unit extends JavaTests, but that goes against most project filesystem layout conventions.
In 0.13.0 we should rename the def test method to something else, def testFork or something, to remove this name collision
The text was updated successfully, but these errors were encountered:
Technically, you can select __:^integration.test but that's not what we really want.
I wonder if we can come up with some solution that unifies the test state holder for the various ways to run a test. Currently, running test and testCached don't share their results. So testCached need to run, even when we run test before. Same for testOnly or a testFork. If we instead move the state from the T.dest into some module state than all test* tasks could operate on the same state. We could just share some testState task (persistent or a worker), but this would require some more logic to ensure we don't run multiple test tasks against it. Maybe there are some other solutions or some abstractions we can create.
Right now with the normal convention of unit tests in
object test extends JavaTests
,object integration extends JavaTests
, etc., there is no way for a user to select only unit tests via a query:__.integration
resolves only integration tests, but__.test
resolves both unit tests and integration tests via.integration.test
. We could tell everyone to sayobject unit extends JavaTests
, but that goes against most project filesystem layout conventions.In 0.13.0 we should rename the
def test
method to something else,def testFork
or something, to remove this name collisionThe text was updated successfully, but these errors were encountered: