标签: scala unit-testing scalatest
我有一些基于某些条件调用System.exit(1)的定义。 在Scala中为System.exit(1)编写单元测试的最佳方法是什么?