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
Let's return to the helper. Next line you look for path to that file: file_path = get_test_file_path(file_name).
But as I've said before you're using module name instead of a real file name. So there're two possible outcomes:
You won't find such a file
You will find some file just by coincidence, but that's not gonna be the real test file.
You can suggest it's better to use classname of a testcase, not name of a testsuite, but that's false — classname only represents name of a class, not a name of a file.
So look's like you should actually look inside files content, using grep for example:
I've noticed that my report has invalid paths of test files. A few examples:
<file path="">
— empty<file path="./E2ETests/Tests/Loyalty/LoyaltyTests.swift">
— wrong file pathI've looked at source junit report and it's valid.
So I've checked code at
lib/fastlane/plugin/forsis/helper/forsis_helper.rb
and found what's wrong:You're taking test suite name, not file name here. Test suite name is more like a module name.
For example, my project has module named
LoyaltyTests
. So in my junit I have following:Let's return to the helper. Next line you look for path to that file:
file_path = get_test_file_path(file_name)
.But as I've said before you're using module name instead of a real file name. So there're two possible outcomes:
You can suggest it's better to use
classname
of atestcase
, notname
of atestsuite
, but that's false — classname only represents name of a class, not a name of a file.So look's like you should actually look inside files content, using grep for example:
The text was updated successfully, but these errors were encountered: