prasanth
prasanth

Reputation: 3602

Running a particular test among multiple tests with same name

I have multiple tests with same name but under different packages

com.private.db.dao.pf.ent.DAOBaseFuncTest com.private.db.dao.internal.pf.ent.DAOBaseFuncTest com.private.db.dao.core.ent.DAOBaseFuncTest

I wanted to run com.private.db.dao.pf.ent.DAOBaseFuncTest. Usually I run a test with this command,

mvn -Prun-tests -pl test/func -Dit.test=DAOBaseFuncTest verify

But I was surprised to see 3 test suites running one after another. Is it possible to run a particular test suite instead of running all the three?

Upvotes: 1

Views: 53

Answers (1)

prasanth
prasanth

Reputation: 3602

Never mind. I tried giving the specific test suite and it worked.

mvn -Prun-tests -pl test/func -Dit.test=com.private.db.dao.pf.ent.DAOBaseFuncTest verify

Upvotes: 1

Related Questions