Failed to get a line number for unity test method. So please find it in opened file in external editor
Started getting this error in my Unity test runner (playmode).
My tests were working fine, i changed some code that were unrelated to the tests, and now none of the tests would run and it didnt give any errors
My testcode appears to be running, as can be seen in the console at the bottom of the picture.
Upon pressing Right-Click -> "Open source code" on any test in the list, i get this error
No idea what might be causing this, and searching online has been of no help. It appears there's very little info about the unity test runner online.
If i choose to run my test using "Run all in player (StandaloneWindows64)", it will boot it up, and run all the tests 100% fine.
If anyone could help with this, it would be greatly appreciated.
Cheers! - Andreas Kærlev
Answer by Warnecke · Jan 11, 2020 at 07:46 PM
Hey. The error you are seeing is an unrelated issue with opening up code lines in some cases.
Regarding your tests not running, could it be that you have changed something in your asmdef files? You could try to add a new assembly definition for tests and with an empty playmode test in it, to verify that it gets picked up and run.