summaryrefslogtreecommitdiff
path: root/main/test/src/mill/UTestFramework.scala
diff options
context:
space:
mode:
Diffstat (limited to 'main/test/src/mill/UTestFramework.scala')
-rw-r--r--main/test/src/mill/UTestFramework.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/test/src/mill/UTestFramework.scala b/main/test/src/mill/UTestFramework.scala
new file mode 100644
index 00000000..6c0d5191
--- /dev/null
+++ b/main/test/src/mill/UTestFramework.scala
@@ -0,0 +1,11 @@
+package mill
+
+class UTestFramework extends utest.runner.Framework {
+ override def exceptionStackFrameHighlighter(s: StackTraceElement) = {
+ s.getClassName.startsWith("mill.")
+ }
+ override def setup() = {
+ import ammonite.ops._
+ rm(pwd / 'target / 'workspace)
+ }
+}