Class ValidationSuite
The validation suite allows you to validate a package while in development
Inherited Members
Namespace: UnityEditor.PackageManager.AssetStoreValidation.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 |
|---|---|
| ValidationSuiteReportData | The validation suite report. |
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, 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]. |
| ValidationType | validationType | The type of validation to assess. |
Returns
| Type | Description |
|---|---|
| bool | True if the validation successfully completed. |