Class ValidationSuite
The validation suite allows you to validate a package while in development
Inherited Members
Namespace: UnityEditor .PackageManager .ValidationSuite
Assembly: solution.dll
Syntax
[InitializeOnLoad]
public class ValidationSuite
Constructors
ValidationSuite()
Declaration
public ValidationSuite()
Methods
GetReport(string)
Get the validation suite report for the given package id.
Declaration
public static ValidationSuiteReportData GetReport(string packageId)
Parameters
Type | Name | Description |
---|---|---|
string | packageId | Package Id in the format of [package name]@[package version]. |
Returns
Type | Description |
---|---|
Validation |
The validation suite report. |
GetValidationSuiteReport(string)
Get the validation suite report for the given package id.
Declaration
public static string GetValidationSuiteReport(string packageId)
Parameters
Type | Name | Description |
---|---|---|
string | packageId | Package Id in the format of [package name]@[package version]. |
Returns
Type | Description |
---|---|
string | The validation suite report as a string. |
GetValidationSuiteReport(string, string)
Get the validation suite report for the given package.
Declaration
public static string GetValidationSuiteReport(string packageName, string packageVersion)
Parameters
Returns
Type | Description |
---|---|
string | The validation suite report as a string. |
JsonReportExists(string)
Find out if the validation suite report exists for the given package id.
Declaration
public static bool JsonReportExists(string packageId)
Parameters
Type | Name | Description |
---|---|---|
string | packageId | Package Id in the format of [package name]@[package version]. |
Returns
Type | Description |
---|---|
bool | True if the validation suite report exists. |
ReportExists(string)
Find out if the validation suite report exists for the given package id.
Declaration
public static bool ReportExists(string packageId)
Parameters
Type | Name | Description |
---|---|---|
string | packageId | Package Id in the format of [package name]@[package version]. |
Returns
Type | Description |
---|---|
bool | True if the validation suite report exists. |
ValidatePackage(string, string, string[])
Declaration
public static bool ValidatePackage(string packageName, string packageVersion, string[] packageIdsForPromotion)
Parameters
Returns
Type | Description |
---|---|
bool |
ValidatePackage(string, string, ValidationType)
Validate a package for the given validation context.
Declaration
public static bool ValidatePackage(string packageName, string packageVersion, ValidationType validationType)
Parameters
Type | Name | Description |
---|---|---|
string | packageName | The name of the package to validate. |
string | packageVersion | The version of the package to validate. |
Validation |
validationType | The type of validation to assess. |
Returns
Type | Description |
---|---|
bool | True if the validation successfully completed. |
ValidatePackage(string, ValidationType)
Validate a package for the given validation context.
Declaration
public static bool ValidatePackage(string packageId, ValidationType validationType)
Parameters
Type | Name | Description |
---|---|---|
string | packageId | Package Id in the format of [package name]@[package version]. |
Validation |
validationType | The type of validation to assess. |
Returns
Type | Description |
---|---|
bool | True if the validation successfully completed. |
ValidatePackage(VettingContext, out ValidationSuiteReport)
Declaration
public static bool ValidatePackage(VettingContext context, out ValidationSuiteReport report)
Parameters
Type | Name | Description |
---|---|---|
Vetting |
context | |
Validation |
report |
Returns
Type | Description |
---|---|
bool |
ValidatePackage(VettingContext, ValidationType, out ValidationSuiteReport)
Declaration
public static bool ValidatePackage(VettingContext context, ValidationType validationType, out ValidationSuiteReport report)
Parameters
Type | Name | Description |
---|---|---|
Vetting |
context | |
Validation |
validationType | |
Validation |
report |
Returns
Type | Description |
---|---|
bool |