-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Modify test names inside PatrolJUnitRunner to remove spaces #2361
Conversation
To view this pull requests documentation preview, visit the following URL: docs.page/leancodepl/patrol~2361 Documentation is deployed and generated using docs.page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but you have to add changelog, bump package version and update compatibility table
packages/patrol/android/src/main/kotlin/pl/leancode/patrol/PatrolJUnitRunner.java
Outdated
Show resolved
Hide resolved
packages/patrol/android/src/main/kotlin/pl/leancode/patrol/PatrolJUnitRunner.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Should I update "androidx.test:orchestrator version as well? Currently I have 1.4.2 (as in documentation) ? Because after updating to Patrol 3.11.1 I have another problem when run tests in firebase |
Hi @Wreos. I suspect you've encountered this issue. Patrol |
Hi @Wreos The
If your project is able to run on Flutter 3.24.x, you can upgrade Patrol and its CLI to the latest version to resolve your issue. Our team's project is stuck with 3.22.x, so we reverted our Patrol dependency version to 3.11.0 and that fixed our Firebase test crash too. Hope this helps you. |
Big thanks for your feedback, for now everything works fine for me with latest version Patrol and Flutter 😄 |
Replaces spaces in the name returned by
listDartTest
with a version that does not contain spaces.The change is also visible in the report, as it reflects the names of the tests (functions) that are executed as tests.
This PR is in fact slightly modified #2360 created by tddang-linagora so kudos to him for the initial work.