amtrack / force-dev-tool

[DEPRECATED] Command line tool supporting the Force.com development lifecycle
MIT License
108 stars 37 forks source link

Error while doing deploy using --runTests #174

Closed rodolfonoviski closed 5 years ago

rodolfonoviski commented 5 years ago

When I upgraded to the current version of the project stopped deploy using Error while doing deploy using --runTests.

C:\Users\rnoviski\git\Caixa\service-cloud>force-dev-tool deploy Proj -d config\deployments\teste --runTest 'AccountDAOTest AdministracaoDeAssuntoDAOTest'
Usage:
        force-dev-tool deploy [options] [<remote>]

C:\Users\rnoviski\git\Caixa\service-cloud>force-dev-tool deploy -d config\deployments\teste --runTest 'AccountDAOTest AdministracaoDeAssuntoDAOTest' Proj
Usage:
        force-dev-tool deploy [options] [<remote>]
rodolfonoviski commented 5 years ago

@amtrack Any idea about this?

amtrack commented 5 years ago

@rodolfonoviski it should be --runTests instead of --runTest.

rodolfonoviski commented 5 years ago

@amtrack

C:\Users\rnoviski\git\Caixa\service-cloud>force-dev-tool deploy Proj -d config\deployments\teste --runTests 'AccountDAOTest AdministracaoDeAssuntoDAOTest'
Usage:
        force-dev-tool deploy [options] [<remote>]

Same error

rodolfonoviski commented 5 years ago

The error was that I was running the command in windows cmd where it does not recognize apostrophe as a String delimiter. I had to put double quotes.

amtrack commented 5 years ago

I’m glad you resolved it yourself. And good to know, thanks for sharing!