Testing #21091
A syntax error in a test causes "Test result not found" messages to show up when running that test. All tests in the test run also become red circles with dots.
Actual behaviour:
The user has to view the logs to see that a syntax error occurred.
Expected behaviour:
The test preview reports that a syntax error occurred, or elaborates on what "Test result not found" means, especially if a user is new to using pytest.