1.0.16 • Published 5 years ago

sfdx-ci-test-plugin-alpha1 v1.0.16

Weekly downloads
84
License
ISC
Repository
-
Last release
5 years ago

SFDX CI Plugin

SFDX CI Plugin

Reqirements

  • npm
  • nodejs v.8 or later

Install SFDX CLI

npm install sfdx-cli --global

Plugin Install

echo y | sfdx plugins:install sfdx-ci-plugin

Commands

Deploy

sfdx aquiva:code:deploy -a <alias> -f <server.key> -k <consumer_key> -u username@sf.org -p <source_path>

Deploy metadata to salesforce org.

Flags:

-a (--alias) string|required - set new alias for connected org.

-f (--keyfile) string|required - path to server.key file

-k (--key) string|required - consumer key for connected app

-u (--username) string|required - salesforce username

-p (--path) string|required - path to root of 'src' folder with source

-x (--sfdx) bool - source code pushing to scratch org

-r (--runtests) bool - running Apex Tests after deploy

-i (--instanceurl) string - set custom instance url (for example: https://test.salesforce.com)

Notes:

  • If source path contains SFDX project format and command run without --sfdx flag then progect will convert to mdapi format automatically
  • If source path contains mdapi project format and command run with --sfdx flag then progect will convert to SFDX format automatically
  • You can use other flags command to transfer them to runtests command after deploy

Tests Run

sfdx aquiva:tests:run -a <alias> -f <server.key> -k <consumer_key> -u username@sf.org

Run all or particular tests. Creating test report.

Flags:

-a (--alias) string|required - set new alias for connected org.

-f (--keyfile) string|required - path to server.key file

-k (--key) string|required - consumer key for connected app

-u (--username) string|required - salesforce username

-i (--instanceurl) string - set custom instance url (for example: https://test.salesforce.com)

-c (--classnames) string - comma-separated list of test classes to execute

-s (--suitenames) string - comma-separated list of test suites to execute

-q (--save) bool - saving current connection options as defaults for current alias

Notes:

  • You can use only one of --classnames or --suitenames parameter not both
  • If --classnames or --suitenames not provided all tests on org will run

Partial Deployment in Teamcity

sfdx aquiva:tests:run -a <alias> -f <server.key> -k <consumer_key> -u username@sf.org -z "http://teamcity-url:8111" -t <tcusername> -y <tcpassword>

Tracking changes and deploy only this changes.

Flags:

-a (--alias) string|required - set new alias for connected org.

-f (--keyfile) string|required - path to server.key file

-k (--key) string|required - consumer key for connected app

-u (--username) string|required - salesforce username

-i (--instanceurl) string - set custom instance url (for example: https://test.salesforce.com)

-z (--tcurl) string|required - url of teamcity server

-t (--tcusername) string|required - teamcity username

-y (--tcpassword) string|required - teamcity password

Notes:

  • You can use other flags command to transfer them to deploy and runtests command
1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago