Feature: Allow unityVersion
of auto
for Package Testing
#227
Labels
enhancement
New feature or request
unityVersion
of auto
for Package Testing
#227
Context
For Unity project testing, an
auto
strategy is available, which will automatically pick up the Unity Editor version for the project being tested from that project's settings. However, for the first iteration of package testing, I didn't implement this feature.It would be nice if the auto strategy were available for Package Testing as well.
Suggested solution
I think this can be accomplished by modifying the
UnityVersionParser.read(projectPath)
function. The modification could be to detect whether a package is being tested, and if so, parse the package'spackage.json
for the Unity Editor version.I believe the relevant fields in the
package.json
areunity
andunityRelease
- there are a couple of considerations to make with those fields:auto
strategy should be equipped to handle their absence and fail gracefullyUnityVersionParser.parse(projectVersionTxt)
function, or creating a new function for parsing package versions altogetherConsidered alternatives
n/a
Additional details
List of Unity Package Manifest (
package.json
) fields as of version 2023.2The text was updated successfully, but these errors were encountered: