@@ -10,8 +10,8 @@ import org.junit.Ignore
1010 import CompilationTests .{* , given }
1111 import CompilationTest .aggregateTests
1212
13- @ Test def example : Unit =
14- implicit val testGroup : TestGroup = TestGroup (" single-test" )
13+ @ Test def example () : Unit =
14+ given testGroup : TestGroup = TestGroup (" single-test" )
1515 // can add, e.g., .and("-some-option")
1616 val options = defaultOptions
1717 // can also use `compileDir` (single test as a dir), `compileFilesInDir` (all tests within a dir)
@@ -21,3 +21,14 @@ import org.junit.Ignore
2121 val compilationTest = withCoverage(aggregateTests(test))
2222 runWithCoverageOrFallback[TestKind ](compilationTest, testGroup.name)
2323
24+ @ Test def bestEffortTasty (): Unit =
25+ given testGroup : TestGroup = TestGroup (" single-test" )
26+ // can add, e.g., .and("-some-option")
27+ val options = TestConfiguration .bestEffortBaselineOptions
28+ // make sure we only test one thing at a time, despite the framework requiring an entire dir + filters
29+ val testFile = " 26037.scala"
30+ dotc.comptest.compileBestEffortTastyInDir(
31+ " tests/neg" , options,
32+ picklingFilter = FileFilter .include(List (testFile)),
33+ unpicklingFilter = FileFilter .include(List (testFile))
34+ ).checkNoCrash()
0 commit comments