forked from scalameta/munit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Olafur Pall Geirsson
committed
Jan 3, 2020
1 parent
dfeaecb
commit d77c3b0
Showing
5 changed files
with
59 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ website/i18n/* | |
!website/i18n/en.json | ||
|
||
project/metals.sbt | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package munit | ||
|
||
import org.junit.runner.RunWith | ||
|
||
@RunWith(classOf[Runner]) | ||
class BasicSuite extends Suite { | ||
override def beforeAll(context: BeforeAll): Unit = { | ||
println("beforeAll") | ||
} | ||
override def afterAll(context: AfterAll): Unit = { | ||
println("afterAll") | ||
} | ||
override def beforeEach(context: BeforeEach): Unit = { | ||
println("beforeEach: " + context.test.name) | ||
} | ||
override def afterEach(context: AfterEach): Unit = { | ||
println("afterEach: " + context.test.name) | ||
} | ||
test("not-implemented") { | ||
println("not-implemented") | ||
Thread.sleep(200) | ||
??? | ||
} | ||
test("pass") { | ||
Thread.sleep(400) | ||
println("pass") | ||
println("pass") | ||
assert(1 == 1) | ||
} | ||
} |