gtest_discover_tests environment properties are not accessible when running tests manually from CLion
已回答
Hi there 👋
I am using Gtest with my CMake project and more particularly I use "PROPERTIES ENVIRONMENT" when creating a test with "gtest_discover_tests", to access some environment variables at runtime.
So far I haven't been able to run a test from CLion (through the Google Test module) which would be aware of the variables previously defined. Am I missing a way to get them or are they simply not available ? I would have thought they would be visible in the "Environment variables" entry when configuring a test.
Thanks for your help !
Damien
请先登录再写评论。
Hi Damien!
It seems to be related to https://youtrack.jetbrains.com/issue/CPP-8118. Feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.