Code Monkey home page Code Monkey logo

Comments (6)

Invictum avatar Invictum commented on September 27, 2024

@nstbushneva

jUnit is configured to run tests in parallel using JVM forking.

      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>${maven.failsafe.plugin.version}</version>
        <configuration>
          <includes>
            <include>**/*Test.java</include>
          </includes>
          <parallel>classes</parallel>
          <threadCount>${threads.number}</threadCount>
          <forkCount>${threads.number}</forkCount>
          <perCoreThreadCount>false</perCoreThreadCount>
          <testFailureIgnore>false</testFailureIgnore>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

So tests on each submodule run on a different JVMs. But for now integration controls RP communication client on one JVM level, so practically with your example several client created, as a result you got several launches in RP.

Potentially is it possible to avoid it with cross JVM communication, but efforts to do it is too high comparing to this use case rarity.

from serenity-reportportal-integration.

slavamarkovski avatar slavamarkovski commented on September 27, 2024

Hello,

Do you have any plans to fix the issue? We faced with the same problem recently.
As a workaround it is possible to set unique tag for each set of runs and merge them on full run completion using RP API.

Thanks.

from serenity-reportportal-integration.

Invictum avatar Invictum commented on September 27, 2024

@slavamarkovski
Your proposed workaround idea sounds interesting. I will investigate the ability to apply it.

from serenity-reportportal-integration.

slavamarkovski avatar slavamarkovski commented on September 27, 2024

@Invictum sorry for pushing but do you have any rough ETA for this issue?

from serenity-reportportal-integration.

Invictum avatar Invictum commented on September 27, 2024

@slavamarkovski

I made a small investigation and actually it is more complex than expected. It requires cross JVM communication even with merge approach.

As for estimates: It depends on my free time, but I will try to implement it in a few weeks.

from serenity-reportportal-integration.

Invictum avatar Invictum commented on September 27, 2024

Implemented. Will be available on 1.4.2+

@slavamarkovski
Before release feature is available in snapshots, related documentation can be found in README.md in development branch

from serenity-reportportal-integration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.