Hi Mahesh,

You can use -Dtest parameter to define the test classes which need to run.

mvn clean install  -Dtest=TestClassName

Thanks,
Nuwanw

On Mon, Jun 29, 2015 at 6:13 PM, Mahesh Chinthaka <[email protected]> wrote:

> Hi all,
>
> Suppose I have declared some test cases in testng.xml file , is there a
> way that I could run one by one with each time i run mvn clean install.
>
> At the moment what we do is comment out rest of the test cases leaving
> required one enabled. Then run mvn clean install. Repeat the same for all
> the cases.
>
> Is there an another way to do without commenting out test cases in
> testng.xnl file ?  May be giving a parameter or something.
>
> mvn clean install -D<some_parameter_to_specify_test_case>
>
>
>
> thanks.
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: [email protected] | Web: www.wso2.com
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to