You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Julio Colon <Ju...@microsoft.com.INVALID> on 2017/09/19 20:32:09 UTC

Mock Test

Hi,

I see some projects with live and mock unit tests...  Is there a sample maven command to execute the mock ones?

Julio



Re: Mock Test

Posted by Ignasi Barrera <na...@apache.org>.
Or just a regular build without parameters, "mvn clean install", will run
all unit and mock tests

On Sep 20, 2017 5:17 AM, "Andrew Gaul" <ga...@apache.org> wrote:

> You can run a mock test class via:
>
> mvn test -pl :b2 -Dtest=ObjectApiMockTest.java
>
> You can run a single test within a mock test class via:
>
> mvn test -pl :b2 -Dtest=ObjectApiMockTest.java#testUploadFile
>
> On Tue, Sep 19, 2017 at 08:32:09PM +0000, Julio Colon wrote:
> > I see some projects with live and mock unit tests...  Is there a sample
> maven command to execute the mock ones?
>
> --
> Andrew Gaul
> http://gaul.org/
>

Re: Mock Test

Posted by Andrew Gaul <ga...@apache.org>.
You can run a mock test class via:

mvn test -pl :b2 -Dtest=ObjectApiMockTest.java

You can run a single test within a mock test class via:

mvn test -pl :b2 -Dtest=ObjectApiMockTest.java#testUploadFile

On Tue, Sep 19, 2017 at 08:32:09PM +0000, Julio Colon wrote:
> I see some projects with live and mock unit tests...  Is there a sample maven command to execute the mock ones?

-- 
Andrew Gaul
http://gaul.org/