Multi-module maven projects: gzoltar.ser
contains TestClasses of other submodules
#15
Labels
enhancement
New feature or request
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 agzoltar.ser
file in eachtarget/
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
withorg.submodule.one.TestOne
,submodule 2 creates a
gzoltar.ser
withorg.submodule.one.TestOne
(again!) andorg.submodule.two.TestTwo
.Steps to Reproduce
The project is located here.
The steps to reproduce the behavior are:
mvn clean test-compile
(in root)mvn gzoltar:prepare-agent test -Dgzoltar.granularity=method
(in root, tryline
if it breaks)mvn gzoltar:fl-report
(in root)site/gzoltar/sfl/txt/tests.csv
of each submoduleGZoltar arguments
s.a.
Expected behaviour
I would expect a separate
gzoltar.ser
for each submodule which only contains those TestClasses that are in the respectivetarget/test-classes
of the submodule, but not TestClasses from previously tested modules.Environment (please complete the following information, if relevant):
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.
The text was updated successfully, but these errors were encountered: