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

Running a single test runs all tests #1981

Closed
deadeyejoe opened this issue Nov 28, 2022 · 2 comments
Closed

Running a single test runs all tests #1981

deadeyejoe opened this issue Nov 28, 2022 · 2 comments
Labels
bug Something isn't working regression Regression error test-runner

Comments

@deadeyejoe
Copy link
Contributor

deadeyejoe commented Nov 28, 2022

Hi, suspect this is due to my workspace being structured as a polylith. EDIT: turns out this affects all projects.

When I add my test namespaces to the class path, running one test (the one under cursor) causes all tests in all test namespaces on the path to run.

If I don't add them to the classpath, and try to run a single test, then all tests in the current namespace run.

@PEZ PEZ added bug Something isn't working test-runner regression Regression error labels Nov 28, 2022
@PEZ
Copy link
Collaborator

PEZ commented Nov 28, 2022

Hi! Thanks for reporting! I made some change to the test runner the other day that might have caused this. I don't really see how it caused it, but this used to work correctly, also in Polylith projects.

You are welcome to have a look at why this is happening, I'm pretty sure it's an easy fix once we have figured the cause out. Don't worry if you don't have the time. I'll have a look at it, if so. Anyway, if you do have the time and energy: There's a page on the wiki for how to Hack on Calva (and it is pretty straight forward to get started).

@deadeyejoe deadeyejoe changed the title Running a single test runs all tests (polylith) Running a single test runs all tests Nov 30, 2022
@bpringe
Copy link
Member

bpringe commented Dec 9, 2022

This has been released.

@bpringe bpringe closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression error test-runner
Projects
None yet
Development

No branches or pull requests

3 participants