如何在单个线程中 运行 ScalaTest 套件?

How can I run ScalaTest suites in a single thread?

ScalaTest 的默认行为是 "run different suites in parallel, but the tests of any one suite sequentially." See ParallelTestExecution

我如何限制一组套件,也许使用 SuiteMixin, to all run sequentially? This related answer 对 "enable forking but disable parallel execution." 我如何使用 gradle 测试运行器执行此操作?

我的用例专门围绕 运行 gradle 下的一组基于 SparkSession 的集成测试套件。

看看SequentialNestedSuiteExecution

Sequential 提供了它的具体实现。