As commented by @Tzane , I ended up using enums. It was a pain to define an enumerator for each specific test, but this way I was able to require all test reporting results to be of type enum
, which forces the strings to be static each time.
To be honest, my main takeaway is that the main test results should definitely not be reported as a string, because it requires more work to parse and analyze later.