-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when using .gta_settings_helper file #306
Comments
I just tried to reproduce your problem, but it seems to work fine for me. I checked it using your Is it possible that you are trying to make use of the placeholder outside of project settings? It will only work at the project settings level, but not at the solution settings or global settings level. Hint: Set Output mode setting to Verbose to see the final settings used for your projects after all settings levels are merged. |
I just double-checked with the Working Dir setting, and apparently there's indeed a problem (but you haven't (yet) run into that one :-) ) Let me know whether the above hints help in your case, or whether you now run into different error messages... |
Hi, thanks for taking a look at this :) |
I see there is a "WorkingDir" in the "Solution Settings" in the |
Have a look at the docs ;-) Project settings are the sections of the Concerning the problem I ran into: I will soon have a closer look at this. Stay tuned... |
Ok, I have a workaround for you: make sure that For instance, this should work (in case you do not make use of the $(TheTarget) placeholder):
Bugfix will be released in the not too far future. |
Amazing, thanks for the great support! Will try that right away. |
Alright, I still didn't get it to work 👎 . This is what I've done so far.
I don't know if this file is supposed to be picked up by default, in any case I selected it in the Test Explorer window manually. I also found the "verbose" output option, it did not print the result of the merging of the settings. What actually did it was the Test>Logging>Logging level set to "Diagnostic". Anyway it does not find the settings file I think. This is the result:
And it explicitly says that it could not find any ProjectSettings.
So the There is a particularity in this solution, the name of the solution has a space in it. The name is something like |
The RunSettings you posted clearly show that your solution settings file is not picked up by GTA for some reason, since it does not contain any ´ProjectSettings` node. I have attached the RunSettings resulting from the SampleTests solution as an example (RunSettings.txt - compare it to the solution's settings file to see that it reflects the exact structure). (edit: I had overread the not in your "does not find" statement for some reason ;-) - that's why I pointed this out). I also just tried to rename the SampleTests solution as I'm kind of lost at the moment. Any chance that you you can provide your solution? Feel free to remove everything unnecessary - just make sure that it builds out of the box, and that it contains at least one test. I will then have a closer look... |
Closed due to inactivity - feel free to reopen... |
I followed your docs to add a post build event to automatically create a
.gta_settings_helper
file. That works fine.What I wanted it for was to change the working directory to the one in the project, of course. So I added
::GTA::WorkingDirectory=$(LocalDebuggerWorkingDirectory)
to the end. The result is:When I put in the Google Test Adapter settings to use this
$(WorkingDirectory)
, the tests don't run. It seems it just crashes. Am I doing anything wrong? This is the error I get:The following warnings and errors occured during test discovery (enable debug mode for more information): Option 'Working directory': Apparently, the following placeholders could not be replaced. $(WorkingDirectory)
Not really helpful. MaybeNope, just checked the file and it is correct.LocalDebuggerWorkingDirectory
is the wrong one to use?Thanks for the help.
The text was updated successfully, but these errors were encountered: