mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-02-03 18:29:07 +08:00
throw error if unity version is auto in package mode
This commit is contained in:
@@ -106,6 +106,12 @@ const Input = {
|
||||
|
||||
// if in package mode, attempt to get the package's name, and ensure tests are present
|
||||
if (packageMode) {
|
||||
if (unityVersion === 'auto') {
|
||||
throw new Error(
|
||||
'Package mode is enabled, but unityVersion is set to "auto". Please manually set the unityVersion.',
|
||||
);
|
||||
}
|
||||
|
||||
packageName = this.getPackageNameFromPackageJson(projectPath);
|
||||
this.verifyTestsFolderIsPresent(projectPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user