Replies: 1 comment 1 reply
-
The recommended way is to create a new project that would only contain the Windows tests: lazy val win = project.in(file(win))
.dependsOn(myProject)
.libraryDependencies(
"org.scalatest" %% "scalatest-flatspec" % "3.2.15" % Test
) You would move the Windows tests to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I used the SBT custom config to separate a few types of tests. For example, I had created a custom config as
win
where there were some specific tests related to windows OS and kept them insrc/win/scala
. These tests are not generally ran on CI and was explicitly ran usingwin:test
.But, in this link there is a mention on custom config being discouraged and going to be dropped.
So what is the alternative for this? In this case, I only want to separate the tests from the
test
dir and not executed unless explicitly ran.I recently wrote a blog about some of the SBT features, there also I mentioned about this usecase. Here is the link for ref:
https://yadukrishnan.live/unlocking-the-power-of-sbt-a-beginners-guide-to-understanding-not-so-common-features
Beta Was this translation helpful? Give feedback.
All reactions