File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import Test.Spec.Reporter.Xunit (xunitReporter)
19
19
import Test.Spec.Runner (defaultConfig, runSpec)
20
20
21
21
main =
22
- runSpec defaultConfig [ xunitReporter { indentation: 2, outputPath: "output/test.xml" } ] do
22
+ runSpec [ xunitReporter { indentation: 2, outputPath: "output/test.xml" } ] do
23
23
...
24
24
```
25
25
Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ module Test.Spec.Reporter.XunitSpec where
2
2
3
3
import Prelude
4
4
5
- import Data.Identity (Identity (..))
6
- import Data.Newtype (un )
7
5
import Node.Encoding (Encoding (UTF8))
8
6
import Node.FS.Aff (readTextFile , unlink )
9
7
import Test.Spec (Spec , it , describe )
10
8
import Test.Spec.Assertions (fail )
11
9
import Test.Spec.Assertions.String (shouldContain )
12
10
import Test.Spec.Reporter.Xunit (defaultOptions , xunitReporter )
13
- import Test.Spec.Runner (defaultConfig , runSpecT )
11
+ import Test.Spec.Runner (defaultConfig , runSpec' )
14
12
15
13
xunitSpec :: Spec Unit
16
14
xunitSpec = do
@@ -34,7 +32,7 @@ xunitSpec = do
34
32
runXunit spec = do
35
33
let config = defaultConfig { exit = false }
36
34
path = " output/test.tmp.xml"
37
- void $ un Identity $ runSpecT config [xunitReporter $ defaultOptions { outputPath = path }] spec
35
+ runSpec' config [xunitReporter $ defaultOptions { outputPath = path }] spec
38
36
contents <- readTextFile UTF8 path
39
37
unlink path
40
38
pure contents
You can’t perform that action at this time.
0 commit comments