AltTester-Unity-SDK icon indicating copy to clipboard operation
AltTester-Unity-SDK copied to clipboard

Error when trying to open AltUnityTest with same name as folder in project

Open AltTesterBot opened this issue 2 years ago • 1 comments

Steps to reproduce

  1. Open in Unity the altunitytester project (cloned repo)
  2. In Assets > Editor folder create an AltUnityTest with the name test
  • Note: the name is also the name of a folder in the project
  1. Go to AltUnity Tester Editor window and Refresh the Tests list
  2. Find the created test and double-click on it in order to open it
  3. Check if it opens and the console for errors.

Actual result

AR

In step 5 the test file cannot be opened and in the console, there is an error:

Access to the path 'D:\AltUnity Tools\AltUnity Tester\altunitytester\Assets\AltUnityTester' is denied.
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <d4cde64232cf45659d86aafa597faa77>:0 ...

Additional info

Screenshot

image

Expected result

ER

In step 5 the test file should be opened and in the console should be no error


You can find the original issue from GitLab here.

AltTesterBot avatar Sep 28 '22 04:09 AltTesterBot