How do I register a file type/filename pattern so it appears as a Test (ie green)?
Answered
Our team uses Angular component harnesses (*.component.harness.ts). Like component spec files, they don't live in a specific directory that can be marked as a test source. How can I register that filename pattern so it appears like other test filetypes?
Please sign in to leave a comment.
Tests recognition is not based on particular files/folders name suffixes, etc.
The IDE is statically analyzing the source code looking for known code patterns (
describe(), ...) when detecting the tests/suits. Most probably, your hooks are not known, so your tests are not detected as such. There are no workarounds unfortunately, patterns are hardcoded.We have a feature request for providing support for custom test/suite names, https://youtrack.jetbrains.com/issue/WEB-37848, please feel free to vote for it
It's not a test but a harness . Much like a fixture. I'll vote on the open issue. Thanks.