Comments (5)
Are you sure this wasn't always the case? The only change that was recently applied was 002f5d6
from trainer.
Actually no, I'm not confident that this is recent. Looking through my Fastfile history I had broken trainer out into another lane previously that was actually being left before reaching it, so it's entirely possible the issue has been around for longer.
This is a bug in trianer though, right?
from trainer.
@KrauseFx I just wanted to bring this back up since it seems like a bug. I have the same problem with it failing and have to catch the exception in order for everything to work. I run the scan
followed directly by trainer
, then it fails and shows the little 💥 mark in the fastlane summary next to trainer
having run for 0ms
. Bottom of script says:
[22:03:24]: fastlane finished with errors
[!] Unit tests failed
script returned exit code 1
My workaround in the meantime is to just do:
begin
trainer
rescue => exception
end
And everything actually works fine.
from trainer.
We are also experiencing the same issue. It seems that even when fail_build: true
is set (as seen from output), the whole build is flagged as failure and fastlane test
exits with status 1:
[15:15:38]: ------------------
[15:15:38]: --- Step: scan ---
[15:15:38]: ------------------
< Xcode output omitted>
** TEST EXECUTE FAILED **
[15:16:20]: Exit status: 65
+--------------------+----+
| Test Results |
+--------------------+----+
| Number of tests | 11 |
| Number of failures | 1 |
+--------------------+----+
[15:16:20]: ---------------------
[15:16:20]: --- Step: trainer ---
[15:16:20]: ---------------------
+------------------+---------------------------------------------------------------------------+
| Summary for trainer 0.8.0 |
+------------------+---------------------------------------------------------------------------+
| output_directory | test |
| fail_build | false |
| path | DerivedData/Logs/Test/Test-Wire-iOS-2018.10.04_15-15-56-+0200.xcresult/T |
| | estSummaries.plist |
| extension | .xml |
+------------------+---------------------------------------------------------------------------+
[15:16:20]: `Helper.gem_path` is deprecated. Use the `ROOT` constant from the appropriate tool module instead.
Successfully generated 'test/TestSummaries.xml'
+----------------------------+---------------------------------------------------------------------------+
| Lane Context |
+----------------------------+---------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios test |
| SCAN_DERIVED_DATA_PATH | DerivedData |
| SCAN_GENERATED_PLIST_FILES | ["DerivedData/Logs/Test/Test-Wire-iOS-2018.10.04_15-15-56-+0200.xcresult |
| | /TestSummaries.plist"] |
| SCAN_GENERATED_PLIST_FILE | DerivedData/Logs/Test/Test-Wire-iOS-2018.10.04_15-15-56-+0200.xcresult/T |
| | estSummaries.plist |
+----------------------------+---------------------------------------------------------------------------+
[15:16:20]: Unit tests failed
+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | opt_out_usage | 0 |
| 2 | default_platform | 0 |
| 3 | scan | 41 |
| 💥 | trainer | 0 |
+------+------------------+-------------+
[15:16:20]: fastlane finished with errors
[!] Unit tests failed
$> echo $status
1
We are running fastlane 2.105.2
and trainer 0.8.0
with Xcode 10.
from trainer.
We have the same issue with 2.108.0 and fail_build set to false
+-------------------------+---------+---------+
| Used plugins |
+-------------------------+---------+---------+
| Plugin | Version | Action |
+-------------------------+---------+---------+
| fastlane-plugin-trainer | 0.4.1 | trainer |
+-------------------------+---------+---------+
.....
+----------------------------+-----------------------------------------------------------------------------------------+
| Summary for scan 2.108.0 |
+----------------------------+-----------------------------------------------------------------------------------------+
| devices | ["iPhone XS"] |
| skip_testing | ["GeorgeGoAPI-Unit-Tests/AustrianLoginAPITests"] |
| scheme | George Go Debug |
| fail_build | false |
| workspace | ./George Go.xcworkspace |
| derived_data_path | /Users/ristd/Library/Developer/Xcode/DerivedData/George_Go-cejywaflmbkysxasspomufxpouav |
| skip_detect_devices | false |
| clean | false |
| skip_build | false |
| output_directory | ./fastlane/test_output |
| buildlog_path | ~/Library/Logs/scan |
| include_simulator_logs | false |
| disable_concurrent_testing | false |
| should_zip_build_products | false |
| result_bundle | false |
| open_report | false |
| skip_slack | false |
| slack_only_on_failure | false |
| use_clang_report_name | false |
| reinstall_app | false |
| xcode_path | /Applications/Xcode.app |
+----------------------------+-----------------------------------------------------------------------------------------+
[15:29:43]: Unit tests failed
+------+--------------------+-------------+
| fastlane summary |
+------+--------------------+-------------+
| Step | Action | Time (in s) |
+------+--------------------+-------------+
| 1 | xcversion | 0 |
| 2 | clear_derived_data | 15 |
| 3 | scan | 483 |
| 💥 | trainer | 0 |
+------+--------------------+-------------+
[15:29:43]: fastlane finished with errors
[!] Unit tests failed
from trainer.
Related Issues (20)
- Trainer succeeds even though one of the test targets of the scheme has failed HOT 1
- Cannot load such file -- fastlane HOT 9
- `Helper.gem_path` is deprecated. Use the `ROOT` constant from the appropriate tool module instead. HOT 1
- trainer Fails When xcodebuild Quits With Exit Status 65 HOT 13
- Add support for test failure formatting
- [ HOT 1
- [Feature Request] Dump crash file for a crashing test into JUnit failure node
- trainer fastlane plugin should mimic fastlane's scan behavior HOT 1
- unable to install: dependency unf_ext 0.0.7.5 ERROR failed to build gem native extension HOT 1
- Support for Xcode 11 HOT 17
- Bloated installation HOT 2
- Can't install trainer.
- can't find results with Xcode 11 HOT 5
- Support for XCTest skipping HOT 2
- Attachments support HOT 1
- xcpretty_naming does when test results are in a .xcresult file.
- Create outputs for number of tests executed
- Is this project still active, now that `trainer` has been incorporated into Fastlane? HOT 4
- Cannot load such file -- fastlane_core (LoadError) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trainer.