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

Multi-module maven projects: gzoltar.ser contains TestClasses of other submodules #15

Open
delsner opened this issue Aug 20, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@delsner
Copy link

delsner commented Aug 20, 2019

Context

I have a minimal multi-module maven project with 3 submodules with each 1 unit and 1 integration test (IT).
When running mvn gzoltar:prepare-agent test on the parent-module, the gzoltar agent is instrumentized for all submodules and I get a gzoltar.ser file in each target/ directory of the individual submodules.
However, every gzoltar.ser includes the TestClasses of the submodules, that were run before.
E.g., submodule 1 creates a gzoltar.ser with org.submodule.one.TestOne,
submodule 2 creates a gzoltar.ser with org.submodule.one.TestOne (again!) and org.submodule.two.TestTwo.

Steps to Reproduce

The project is located here.
The steps to reproduce the behavior are:

  1. mvn clean test-compile (in root)
  2. mvn gzoltar:prepare-agent test -Dgzoltar.granularity=method (in root, try line if it breaks)
  3. mvn gzoltar:fl-report (in root)
  4. Check site/gzoltar/sfl/txt/tests.csv of each submodule

GZoltar arguments

s.a.

Expected behaviour

I would expect a separate gzoltar.ser for each submodule which only contains those TestClasses that are in the respective target/test-classes of the submodule, but not TestClasses from previously tested modules.

Environment (please complete the following information, if relevant):

  • OS: MacOS 10.14.5
  • Version 1.7.2 (maven 3.6.1)

Additional comments

Another question I wanted to ask is if you ever instrumented integration tests with the maven failsafe plugin with gzoltar.
If yes, I would be thankful for any advices or shared experiences.

@delsner delsner changed the title Multi-module maven projects: gzoltar.ser contains TestClasses of all modules Multi-module maven projects: gzoltar.ser contains TestClasses of other submodules Aug 20, 2019
@jose jose added the enhancement New feature or request label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants