Execution environment fixes
This release fixes an important issue where specs2 execution environment is not properly shutdown.
It is strongly advised to upgrade to this version.
Note that there are some low-level breakages in this release:
- The
shutdown
functions onEnv
have changed - A number of
default
methods to build low-level components likeCustomInstances
,SpecificationFinder
,PrinterFactory
have been removed. Those components now require an explicitEnv
- The
OwnEnv
andOwnExecutionEnv
traits have been reworked to operate on their own environment, without needing to make a copy of the specificationEnv
. This avoids some easy mistakes where it is fairly easy to shutdown the specs2 execution environment - There is a new argument,
discardRejectedFutures
, set totrue
by default, which avoids printing futures rejected by a thread pool which can happen on shutdown when testing for termination for example