I use fastlane scan to run my tests. I have a test that is randomly failing. Of course when I run it locally it always passes
Then thing is that fastlane locally prints this kind of output
✗ TalkDownloader_will_parse_and_save_talks
expected to be nil, got <object_description>
However on Bitrise, fastlane produces different output, without crucial information on why test failed
Output from latest version of fastlane-step (2.3.12).
So I am wondering, is it my setup? Or bug in the step? Or maybe it’s problem with my configuration?
I didn’t spot any specific inputs for step.
And this is how fastlane step is configured in my bitrise.yml
EDIT
After finding this issue: iOS tests failed randomly/exit status 65
I added - deploy-tests-log as a next step after fastlane-test, deploy-tests-log is configured as follows:
The fastlane step indeed moves the logs from the default dir, into the $BITRISE_DEPLOY_DIR directory.
The Deploy to Bitrise.io step is configured to deploy all files from the $BITRISE_DEPLOY_DIR directory.
So, ideally / by default, those log files should be attached to the build, unless you change the config/path to deploy of the Deploy to Bitrise.io step.
Can you please try to remove the deploy_path config of the deploy-to-bitrise-io step, to reset it back to its default value ($BITRISE_DEPLOY_DIR)?
Deploying the content of the Deploy directory separately
List of files to deploy
Deploying files
Success
You can find the Artifact on Bitrise, on the Build's page: https://www.bitrise.io/build/295e07ce22c24c5f
But apps & artifacts tab shows No apps generated...
Could you please clarify this a bit? I checked the build’s log, but it seems it’s successful, and no app is deployed because none are generated, you just run tests with fastlane… Did I miss something?
I checked the build’s log, but it seems it’s successful, and no app is deployed because none are generated, you just run tests with fastlane… Did I miss something?
No, for builds on task/* branches, apps are not generated.
and it only moves the additional fastlane log files into the deploy dir if fastlane fails:(…) - but it does not if fastlane is successful
Checked the log and it seems you changed the Deploy to Bitrise.io step’s deploy path input. Instead of the default $BITRISE_DEPLOY_DIR it’s set to a specific path, from the log:
Depending on what you want to do, it might be a good idea to add a second Deploy to Bitrise.io step (you can add as many as you like ) and just keep that on its default, so that it attaches the files from the $BITRISE_DEPLOY_DIR while you use the other Deploy to Bitrise.io step to attach the dSYM or any other artifact which is not in the $BITRISE_DEPLOY_DIR.