title: Running Google Test with buggy test setup leads to unexpected result
body: <p>I am using Google Test in conjunction with Visual Studio 2019. If everything is working, the tests show up in the Test Explorer with the option to run after compiling. </p>
  
  <p>However, if there is ANY problem with the setup for ANY test, everything can compile without errors but no tests are discoverable. For example, if in the code file I have a class</p>
  
  <pre><code>class Object {
  public:
      int member;
  
  }
  </code></pre>
  
  <p>and then in the test file I have</p>
  
  <pre><code>TEST(package, tn) {
  Object obj;
  
  cout &lt;&lt; obj.member &lt;&lt; endl;
  
  }
  </code></pre>
  
  <p>This will compile without problems but suddenly no tests with be discoverable, and I'll have absolutely no idea what went wrong. Is there a way around this problem?</p>