diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-10-22 12:04:21 -0700 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-10-22 12:04:21 -0700 |
commit | 5ec6a01116f401e84fd3c895c2582acbec3c969c (patch) | |
tree | f90839e23e9425ba56f960eccf6a2df73d30aa54 /src | |
parent | 3c9e71547389d45d0b6876f0f1f0c6fe70b6902e (diff) | |
download | mill-5ec6a01116f401e84fd3c895c2582acbec3c969c.tar.gz mill-5ec6a01116f401e84fd3c895c2582acbec3c969c.tar.bz2 mill-5ec6a01116f401e84fd3c895c2582acbec3c969c.zip |
update to utest 0.6.0, enable stacktrace highlighting
Diffstat (limited to 'src')
-rw-r--r-- | src/test/scala/forge/ForgeTests.scala | 19 | ||||
-rw-r--r-- | src/test/scala/forge/Framework.scala | 7 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/test/scala/forge/ForgeTests.scala b/src/test/scala/forge/ForgeTests.scala index c3414be9..92ccd112 100644 --- a/src/test/scala/forge/ForgeTests.scala +++ b/src/test/scala/forge/ForgeTests.scala @@ -26,17 +26,18 @@ object ForgeTests extends TestSuite{ val down = noop(noop(up), noop(up)) } val tests = Tests{ - 'singleton - { -// Evaluator.labelTargets(Singleton.single) - } +// 'singleton - { +// evaluator.apply(Singleton.single) +// } 'pair - { -// Evaluator.labelTargets(Pair.up, Pair.down) - } - 'diamond - { -// Evaluator.labelTargets( -// Diamond.up, Diamond.left, Diamond.right, Diamond.down -// ) + evaluator.prepareTransitiveTargets(Seq(Pair.down)) } +// 'diamond - { +// evaluator.apply(Diamond.down) +// } +// 'anonDiamond - { +// evaluator.apply(AnonymousDiamond.down) +// } // 'full - { // val sourceRoot = Target.path(jnio.Paths.get("src/test/resources/example/src")) // val resourceRoot = Target.path(jnio.Paths.get("src/test/resources/example/resources")) diff --git a/src/test/scala/forge/Framework.scala b/src/test/scala/forge/Framework.scala new file mode 100644 index 00000000..ccfdf69b --- /dev/null +++ b/src/test/scala/forge/Framework.scala @@ -0,0 +1,7 @@ +package forge + +class Framework extends utest.runner.Framework { + override def exceptionStackFrameHighlighter(s: StackTraceElement) = { + s.getClassName.startsWith("forge.") + } +} |