If you're going to introduce this type, perhaps you should make `TestInfo::code` have this type as well?

Also, you keep repeating `enum` everywhere you use `TS::FailureCode`. Not that it's an error, but... why?