Test contains buildParams and Input

pull/310/head
Frostebite 2021-12-23 01:37:03 +00:00
parent 8e4e4754bb
commit 279be02b18
4 changed files with 12 additions and 4 deletions

1
dist/index.js vendored
View File

@ -2048,6 +2048,7 @@ class DownloadRepository {
echo ' ' echo ' '
`); `);
yield run_cli_1.RunCli.RunCli(` yield run_cli_1.RunCli.RunCli(`
tree ${cloud_runner_state_1.CloudRunnerState.builderPathFull}
echo 'Starting checks of cache for the Unity project Library and git LFS files' echo 'Starting checks of cache for the Unity project Library and git LFS files'
${cloud_runner_state_1.CloudRunnerState.getHandleCachingCommand} ${cloud_runner_state_1.CloudRunnerState.getHandleCachingCommand}
`); `);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -30,10 +30,16 @@ describe('Cloud Runner', () => {
const file = fs.readFileSync(`${CloudRunnerState.buildGuid}-outputfile.txt`, 'utf-8').toString(); const file = fs.readFileSync(`${CloudRunnerState.buildGuid}-outputfile.txt`, 'utf-8').toString();
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(file); console.log(file);
const keys = Object.keys(buildParameter); const buildParameterKeys = Object.keys(buildParameter);
for (const element of keys) { for (const element of buildParameterKeys) {
if (buildParameter[element] !== undefined) { if (buildParameter[element] !== undefined) {
expect(file).toContain(`${element}=`); expect(file).toContain(`${element}=${buildParameter[element]}`);
}
}
const inputKeys = Object.getOwnPropertyNames(Input);
for (const element of inputKeys) {
if (Input[element] !== undefined) {
expect(file).toContain(`${element}=${Input[element]}`);
} }
} }
} }

View File

@ -44,6 +44,7 @@ export class DownloadRepository {
echo ' ' echo ' '
`); `);
await RunCli.RunCli(` await RunCli.RunCli(`
tree ${CloudRunnerState.builderPathFull}
echo 'Starting checks of cache for the Unity project Library and git LFS files' echo 'Starting checks of cache for the Unity project Library and git LFS files'
${CloudRunnerState.getHandleCachingCommand} ${CloudRunnerState.getHandleCachingCommand}
`); `);