Add EveUnity scene UPM artifact smoke
This commit is contained in:
parent
bdafa0295a
commit
b20e534c9c
13 changed files with 101 additions and 12 deletions
|
|
@ -6,6 +6,8 @@ import { buildUnityReleaseArtifactPlan } from "./eveunity-release-artifact.mjs";
|
|||
|
||||
const capabilityManifest = JSON.parse(readFileSync(new URL("../../packages/org.gamecult.eve.unity-uitoolkit/eve-runtime-capability.json", import.meta.url), "utf8"));
|
||||
const packageManifest = JSON.parse(readFileSync(new URL("../../packages/org.gamecult.eve.unity-uitoolkit/package.json", import.meta.url), "utf8"));
|
||||
const sceneCapabilityManifest = JSON.parse(readFileSync(new URL("../../runtimes/incubating/eve-unity-scene/eve-runtime-capability.json", import.meta.url), "utf8"));
|
||||
const scenePackageManifest = JSON.parse(readFileSync(new URL("../../runtimes/incubating/eve-unity-scene/package.json", import.meta.url), "utf8"));
|
||||
|
||||
test("plans npm pack for the EveUnity UI Toolkit UPM artifact", () => {
|
||||
const request = buildUnityReleaseRequest({
|
||||
|
|
@ -28,6 +30,27 @@ test("plans npm pack for the EveUnity UI Toolkit UPM artifact", () => {
|
|||
]);
|
||||
});
|
||||
|
||||
test("plans npm pack for the EveUnity scene UPM artifact", () => {
|
||||
const request = buildUnityReleaseRequest({
|
||||
capabilityManifest: sceneCapabilityManifest,
|
||||
packageManifest: scenePackageManifest,
|
||||
capabilityManifestPath: "runtimes/incubating/eve-unity-scene/eve-runtime-capability.json",
|
||||
packageManifestPath: "runtimes/incubating/eve-unity-scene/package.json",
|
||||
});
|
||||
const plan = buildUnityReleaseArtifactPlan({ request, packageManifest: scenePackageManifest });
|
||||
|
||||
assert.equal(plan.packageRoot, "runtimes/incubating/eve-unity-scene");
|
||||
assert.equal(plan.artifactPath, "artifacts/eveunity-scene-release/0.1.0/org.gamecult.eve.unity-scene-0.1.0.tgz");
|
||||
assert.equal(plan.artifactDirectory, "artifacts/eveunity-scene-release/0.1.0");
|
||||
assert.equal(plan.expectedFileName, "org.gamecult.eve.unity-scene-0.1.0.tgz");
|
||||
assert.deepEqual(plan.npmPackArguments, [
|
||||
"pack",
|
||||
"runtimes/incubating/eve-unity-scene",
|
||||
"--pack-destination",
|
||||
"artifacts/eveunity-scene-release/0.1.0",
|
||||
]);
|
||||
});
|
||||
|
||||
test("rejects release artifact plans for mismatched package identity", () => {
|
||||
const request = buildUnityReleaseRequest({ capabilityManifest, packageManifest });
|
||||
|
||||
|
|
|
|||
|
|
@ -654,6 +654,7 @@
|
|||
"evidencePaths": [
|
||||
"runtimes/incubating/eve-unity-scene/eve-runtime-capability.json",
|
||||
"scripts/run-eveunity-scene-lifecycle-smoke.ps1",
|
||||
"scripts/run-eveunity-scene-release-artifact-smoke.ps1",
|
||||
"scripts/run-eveunity-scene-provider-shell-smoke.ps1"
|
||||
]
|
||||
},
|
||||
|
|
@ -1089,11 +1090,14 @@
|
|||
"runtimes/incubating/eve-unity-scene/eveunity-scene-split-handoff.json",
|
||||
"scripts/run-eveunity-scene-lifecycle-smoke.ps1",
|
||||
"scripts/run-eveunity-scene-release-contract-smoke.ps1",
|
||||
"scripts/run-eveunity-scene-release-artifact-smoke.ps1",
|
||||
"scripts/run-eveunity-scene-provider-shell-smoke.ps1",
|
||||
"scripts/run-eveunity-scene-capture-contract-smoke.ps1",
|
||||
"scripts/run-eveunity-scene-capture-smoke.ps1",
|
||||
"tools/eveunity/eveunity-release-contract.mjs",
|
||||
"tools/eveunity/eveunity-release-contract.test.mjs",
|
||||
"tools/eveunity/eveunity-release-artifact.mjs",
|
||||
"tools/eveunity/eveunity-release-artifact.test.mjs",
|
||||
"tools/eveunity/eveunity-capture-contract.mjs",
|
||||
"tools/eveunity/eveunity-capture-contract.test.mjs",
|
||||
"tools/eveunity/eveunity-scene-capture-artifact.mjs",
|
||||
|
|
@ -1135,6 +1139,10 @@
|
|||
{
|
||||
"path": "tools/eveunity/eveunity-release-contract.test.mjs",
|
||||
"contains": ["builds EveUnity scene UPM release request from package manifest", "eveunity-scene-v0.1.0", "artifacts/eveunity-scene-release/0.1.0/org.gamecult.eve.unity-scene-0.1.0.tgz"]
|
||||
},
|
||||
{
|
||||
"path": "tools/eveunity/eveunity-release-artifact.test.mjs",
|
||||
"contains": ["plans npm pack for the EveUnity scene UPM artifact", "runtimes/incubating/eve-unity-scene", "org.gamecult.eve.unity-scene-0.1.0.tgz"]
|
||||
}
|
||||
],
|
||||
"capture": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue