Skip to content

Commit c0cfa78

Browse files
committed
fix: update Tests.fsx and expected.log with minor changes
1 parent 9f9006c commit c0cfa78

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Tests.fsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ let s2 = describe "Suite 2" {
1212
info "This test passes in Suite 2"
1313
}
1414
}
15-
runTestSuite (describe "Main Suite" { s1; s2 })
16-
|> Async.RunSynchronously
1715

1816
let suite = describe "A larger test suite" {
1917
Info "Top level info message"
@@ -85,9 +83,10 @@ let asyncSuite = describe "Async Tests" {
8583
}
8684

8785
[
86+
runTestSuite (describe "Main Suite" { s1; s2 })
8887
runTestSuite suite
8988
runTestSuiteCustom
90-
(DefaultRunner(Reporters.ConsoleReporter() :> ITestReporter, id))
89+
(DefaultRunner(Reporters.TapReporter() :> ITestReporter, id))
9190
suite
9291
runTestSuite asyncSuite
9392
]

expected.log

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Main Suite
2+
Suite 1
3+
Suite 2
4+
Before each test in Suite 2
5+
This test passes in Suite 2
6+
 ✅ passed: should pass in Suite 2
7+
All tests passed!
8+
Summary: 1 passed, 0 failed, 0 pending
9+
Total time: 00:00:00.0078413
110
A larger test suite
211
Top level info message
312
Before each test
@@ -33,7 +42,7 @@ There were 2 test failures:
3342
- A larger test suite / should fail - Intentional failure
3443
- A larger test suite / Arithmetic / Faulty Addition / should fail when adding incorrect numbers - Expected 5 but got 4
3544
Summary: 4 passed, 2 failed, 1 pending
36-
Total time: 00:00:00.0124887
45+
Total time: 00:00:00.0048570
3746
TAP version 14
3847
1..7
3948
ok should pass
@@ -59,4 +68,4 @@ not ok should fail when adding incorrect numbers
5968
There were 1 test failures:
6069
- Async Tests / should handle async failure - Intentional async failure
6170
Summary: 1 passed, 1 failed, 0 pending
62-
Total time: 00:00:00.4115251
71+
Total time: 00:00:00.4131968

0 commit comments

Comments
 (0)