sbt/testing
Eugene Yokota a549e79c1d Throw when test framework cannot be loaded due to MatchError or NoClassDefFoundError
Problem
-------
In some situations like Dotty Community Build, sbt version is
mechanically upgraded on an old commit without humans checking the log.
For reasons we're not completely sure (likely change in ClassLoader
structure) sbt 1.6.x started to fail to load test frameworks during
tests, but since the failure of the test framework loading doesn't fail
the task, this silently succeeded the builds.

Solution
--------
On MatchError and NoClassDefFound Error, rethrow the exception.
Note that ClassNotFoundException is considered ok since we have
predefined test frameworks listed in sbt, which often are not included
in the users' classpath.
2022-01-31 16:37:38 -05:00
..
agent/src/main/java/sbt Fix #5801: Remove duplicate TaskDefs in test agent 2020-08-26 17:19:35 +02:00
src/main Throw when test framework cannot be loaded due to MatchError or NoClassDefFoundError 2022-01-31 16:37:38 -05:00
NOTICE Add, configure & enforce file headers 2017-10-05 09:03:40 +01:00