You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
@Raagh Okay I found out the issue. We created internally a decorator system to create jasmine test using classes. For example:
@TestSuite('MyTestSuite')
export class MyTestSuite {
@BeforeEach()
public beforeEach() {
}
@Test()
public async someTest() {
}
}
will generate a suite with the name MyTestSuite and the someTest test
Looking at your code, I think you match the files content to find the test matching those files. Having a way to configure the regex to match these decorator for me would be wonderful.
I understand the system, but I don't understand why tests are not being matched.
If you create the jasmine tests using those classes the "angular-karma_test-explorer/src/core/shared/path-finder.ts" should still found those jasmine tests that were created and use those. It will not map to the classes for sure but why is not mapping to those created jasmine tests? can you give me an example jasmine test suite that is created? is your structure not matching the pattern used for getting the paths in this line ?
I am afraid that just having a property for the regex will not be enough if you re planning to match spec names to the classes instead of the test files, as PathFinder is also expecting to find keywords like "describe" and "it" it would need a complete new implementation. Maybe I can make a plugin implementation so that you can submit your own PathFinder implementation to the explorer and use that one instead. I need to do more investigation on this subject.
@Raagh Okay I found out the issue. We created internally a decorator system to create jasmine test using classes. For example:
will generate a suite with the name MyTestSuite and the someTest test
Looking at your code, I think you match the files content to find the test matching those files. Having a way to configure the regex to match these decorator for me would be wonderful.
Originally posted by @plchampigny in #35 (comment)
The text was updated successfully, but these errors were encountered: