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
This could be tricker than originally estimated. Taking the example class in the above description, there are two traits used by the test. However, both of these include additional traits, down multiple levels:
The vast majority of these nested traits do not actually include test methods, but are just helper methods. Will need to recursively parse potentially quite deep nested traits.
Could look at caching traits, but that has issues of its own - traits aren't included in the patterns used by the file watchers, since they don't need to conform to anything defined in the phpunit.xml configuration. If the trait is modified by the user, the extension has no way of picking up those changes, unless we add new watchers for each trait parsed. Either option could introduce some significant performance degredation.
Laravel has a number of test case classes where the actual tests are defined in traits that are used within the class definition:
Update the test file parser to identify traits used within a Test class, and add any test methods within the trait as test items.
The text was updated successfully, but these errors were encountered: