Skip to content
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

Feature: Have a specific test/ compile per version on the root project. #54

Open
borissmidt opened this issue May 11, 2021 · 2 comments

Comments

@borissmidt
Copy link

It might be useful to have specific commands to build test a specific version of scala to speed up development.
I.e. if i have some kind of runtime error/ bug only for scala 2.13 then it would be nice to only build your project for 2.13.
for example sbt test_2.11.

@keynmol
Copy link
Contributor

keynmol commented May 11, 2021

Hah, this is actually same feature I wanted in #48 :)

To that end, when #50 was merged (and released in 0.8.0), I set out to build a very small plugin that works on top of projectmatrix: https://github.com/indoorvivants/sbt-commandmatrix

It's obviously very young and immature, but you can test it and let me know :)

My hope is to eventually upstream this functionality into the sbt-projectmatrix itself (once it's battle tested)

@borissmidt
Copy link
Author

Ah cool! yea i already prefer project-matrix since you then don't forget to run the tests for all versions.
On the flipside having all tests always run 3 times slows down productivity.

In the past i have contributed to, here we just have multiple 'sourceSets' in 1 project but create different tasks for different versions, of course it is a competely different build system.:
https://github.com/prokod/gradle-crossbuild-scala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants