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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -