java - Maven tests run sequentially (multithreaded tests) for unknown reason -


i have code heavily uses completablefuture, , colleague has made few tests.

the tests seem pass @ machine, fail @ his. found bug (even though tests pass @ machine), want sure fixed correctly, without bothering colleague (to run tests).

for reason, multi-threaded code in tests runs sequentially.

i run maven tests way:

mvn test -dtest=compfuttest -dfailifnotests=false -dprintsummary=false 

the maven-surefire-plugin controls concurrent execution.

if want tests run concurrently configure surefire plugin 1 of ...

<parallel>methods</parallel> <parallel>classesandmethods</parallel> 

... depending on whether want concurrency within each test case or across test cases.

the choice of parallel value (and related choice of threadcount) , various compatability issues between testng, junit , surefire plugin addressed in more detail in the docs.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -