File tree 2 files changed +30
-0
lines changed
docs/docs/contributing/codebase 2 files changed +30
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # Test Vulpix Framework
2
+ If you are modifying the Vulpix framework and need a playground with dummy tests to try out your modifications, do the following.
3
+
4
+ Create the directory structure for the playground:
5
+
6
+ ``` bash
7
+ mkdir -pv tests/playground/run tests/playground/neg
8
+ echo " stuff" > tests/playground/neg/Sample.scala
9
+ echo ' object Test { def main(args: Array[String]): Unit = {println("Hi")} }' > tests/playground/run/Sample.scala
10
+ ```
11
+
12
+ In ` CompilationTests.scala ` :
13
+
14
+ ``` scala
15
+ @ Test def exampleNeg : Unit = {
16
+ implicit val testGroup : TestGroup = TestGroup (" exampleNeg" )
17
+ compileFilesInDir(" tests/playground/neg" , defaultOptions).checkExpectedErrors()
18
+ }
19
+
20
+ @ Test def exampleRun : Unit = {
21
+ implicit val testGroup : TestGroup = TestGroup (" exampleRun" )
22
+ compileFilesInDir(" tests/playground/run" , defaultOptions).checkRuns()
23
+ }
24
+ ```
25
+
26
+ SBT:
27
+
28
+ ``` scala
29
+ testOnly dotty.tools.dotc.CompilationTests -- * example*
30
+ ```
You can’t perform that action at this time.
0 commit comments