Skip to content

Commit

Permalink
Merge pull request #7 from Rocko1204/feat/package-single-validate
Browse files Browse the repository at this point in the history
feat/package-single-validate
  • Loading branch information
Rocko1204 authored Nov 10, 2022
2 parents 21de025 + a839b9c commit a9f4eda
Show file tree
Hide file tree
Showing 5 changed files with 632 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ OPTIONS
[default: warn] logging level for this command invocation
EXAMPLES
sfdx eon:project:validate -t origin/main --versionupdate
sfdx eon:project:validate --order --include core
sfdx eon:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion
sfdx eon:project:validate -t origin/main - -v -m -o -d
sfdx eon:project:validate -t origin/main - -v -m -o -d -f
sfdx eon:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion --fix
sfdx rocko:project:validate -t origin/main --versionupdate
sfdx rocko:project:validate --order --include core
sfdx rocko:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion
sfdx rocko:project:validate -t origin/main - -v -m -o -d
sfdx rocko:project:validate -t origin/main - -v -m -o -d -f
sfdx rocko:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion --fix
```

_See code: [src/commands/rocko/project/validate.ts](https://github.com/github/rocko-sfdx/blob/v0.0.1/src/commands/rocko/project/validate.ts)_
Expand Down
12 changes: 12 additions & 0 deletions messages/package_validate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"commandDescription": "This command validates a package from the project-json. The validation depends on whether it is an unlocked or source package. With unlocked packages, the dependencies are deployed first if they exist. Then the selected package is deployed and all test classes run only for the selected package. It is checked whether the package achieves a code coverage of 75%. In the case of source packages, a deployment is per checkonly. A sandbox should therefore be selected there. At the same time, all test classes are validated. A code coverage of 75% must be achieved for each test class.",
"deploymentscripts": "With this flag, the pre and postscripts are also executed if they exist in the project json.This flag is default set to false.",
"onlytests": "This flag only checks the code coverage for unlocked packages. That means there is no deployment and only the test classes are running. This flag is default set to false.",
"package": "Package name for which the validation should run. It's required",
"examples": [
"sfdx rocko:package:validate --package core",
"sfdx rocko:package:validate -package core --deploymentscripts --onlytests",
"sfdx rocko:package:validate -p core -d -o",
"sfdx rocko:package:validate -p core"
]
}
Loading

0 comments on commit a9f4eda

Please sign in to comment.