Limiting length of getCallerName return value to avoid issue when storing logs and screenshots #1070
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I have some dusk tests that fails when there is console logs, because the filename is too long
it happens when the test class is in a deep subfolder, in my case i have 5 folders, and also the name of the test itself is pretty long,
i propose to limit the number of characters of the return value of the ProvidesBrowser::getCallerName function
both the class name and the test name will be limited to 70 characters
i added a test, to verify that the test name is correctly truncated,
to test that the class name is correctly truncated would require the creation of another test class with a very long name,
i don't know if it's something you want to do.