Skip to content

Add MUnit to the community build #8236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@
[submodule "community-build/community-projects/zio"]
path = community-build/community-projects/zio
url = https://github.com/dotty-staging/zio.git
[submodule "community-build/community-projects/munit"]
path = community-build/community-projects/munit
url = https://github.com/dotty-staging/munit.git
1 change: 1 addition & 0 deletions community-build/community-projects/munit
Submodule munit added at 17db2a
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,13 @@ object projects:
sbtTestCommand = "testJVMDotty",
sbtUpdateCommand = "update"
)

lazy val munit = SbtCommunityProject(
project = "munit",
sbtTestCommand = "testsJVM/test",
sbtUpdateCommand = "munitJVM/update",
)

end projects

@Category(Array(classOf[TestCategory]))
Expand Down Expand Up @@ -348,6 +355,7 @@ class CommunityBuildTest:
@Test def effpi = projects.effpi.run()
@Test def sconfig = projects.sconfig.run()
@Test def zio = projects.zio.run()
@Test def munit = projects.munit.run()
end CommunityBuildTest

class TestCategory
Expand Down
2 changes: 1 addition & 1 deletion community-build/test/scala/dotty/communitybuild/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ To add your project to the community build you can follow these steps:
2. Open a PR against this repo that:
- Adds your project as a new git submodule
- `git submodule add https://github.com/lampepfl/XYZ.git community-build/community-projects/XYZ`
- Adds a test in [CommunityBuildTest.scala](https://github.com/lampepfl/dotty/blob/master/src/test/scala/dotty/community-build/src/test/scala/dotty/communitybuild/CommunityBuildTest.scala)
- Adds a test in [CommunityBuildTest.scala](https://github.com/lampepfl/dotty/blob/master/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala)