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

PackageSelector does not select packages when running as a jar inside docker container #3357

Closed
1 task
gagansuri opened this issue Jun 15, 2023 · 7 comments
Closed
1 task

Comments

@gagansuri
Copy link

gagansuri commented Jun 15, 2023

I am using jupiter 5.7.1 and junit-platform-launcher 1.9.2

Steps to reproduce

When I run this code from my local as a shaded jar it works fine
requestBuilder
.selectors(selectPackage(packagename))
.filters(includeClassNamePatterns(".*Test"));

But when I run the same jar inside a container (docker) the selector is not able to find any classes and does not execute any test case

Context

  • Used versions (Jupiter/Vintage/Platform):
  • juniper 5.7.1 junit-platform-launcher : 1.9.2
  • Build Tool/IDE: maven , intellij , Docker

Deliverables

jar inside a docker container to run the jar

  • ...
@marcphilipp
Copy link
Member

@gagansuri Do you mean "Jupiter" or "Juniper"?

@gagansuri
Copy link
Author

I mean Jupiter. my bad.

@sbrannen
Copy link
Member

If you would like us to investigate this, please provide a minimal example that reproduces the issue -- preferably something that we can download and run such as a ZIP file or a public Git repository.

@gagansuri
Copy link
Author

sure. I will have to create a sample. please keep it open.
do I need to create the docker file as well? I will create a simple project and share that with you.

@sbrannen
Copy link
Member

do I need to create the docker file as well?

Yes, please include everything needed to reproduce the issue so that we can literally download the example, run it, and see the failure.

@gagansuri
Copy link
Author

I was able to resolve this issue using #2655

@sbrannen
Copy link
Member

Thanks for the feedback.

Closing as:

@sbrannen sbrannen closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants