Comments (13)
Oh I see where the error occurs.
if result[:failures] > 0
failures_str = result[:failures].to_s.red
else
failures_str = result[:failures].to_s.green
end
My tests pass so result[:failures]
is nil
from scan.
I've tried to replicate this across 3 machines. Only 1 exhibits the behaviour.
Ruby 2.0.0p481
(default Ruby in Yosemite)
Ruby 2.2.1p85
(default Ruby in El Cap)
Ruby 2.2.3p173
(i have no idea where I installed this from /usr/local/bin/ruby
)
Ruby 2.2.3p173
(installed with rbenv
)
Closing this as I think its definitely an issue with my machine rather than scan
.
from scan.
In case someone else runs across this, I ran into this same error message trying to get scan to run. I was able to fix it by upgrading to Ruby 2.2.1p85 from Ruby 2.0.0. I then reinstalled scan and fastlane.
It may be a red herring, but my initial install of the tools did run into issues that I worked around based on fastlane/fastlane#338. My reinstall worked flawlessly without this workaround.
from scan.
Interesting that you got it on Ruby 2.0.0 was this system ruby or rbenv/chruby/rvm?
from scan.
I'd say probably system Ruby that came installed with Yosemite. I used rvm to get Ruby 2.2.1. And that's about the extent of my ruby knowledge. ;)
from scan.
Interesting... @squarefrog did you find the source of this issue?
from scan.
I thought I had, but it turned out it was just an odd install.
I'm scratching my head about this. It's only that install that I had difficulty with. I use a shared GEM_HOME
so it's not even like there was something wrong with the gem.
Diffing the broken run log against a working one doesn't appear to show anything untoward.
I don't know if you can shed any more light on the flow after the build? It looked like it was just tee
'd into xcpretty
then the output scraped with scan
.
I can't immediately see any points of failure. Shoot me a DM on Twitter if you want me to send the logs.
from scan.
I'm running into this problem also but only via running fastlane, running scan directly seems to work fine. I have ruby version ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15] via homebrew
Looks like I'm seeing the error running scan directly via jenkins also on a different server with the same version of ruby.
from scan.
I have the same issue on ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14] installed via RVM
from scan.
I fixed this by updating ruby and ruby gem:
rbenv install 2.2.2
rbenv global 2.2.2
gem update --system
from scan.
I'm seeing this error at the start of running scan:
Loading...
tee: /Users/kevin.harwood/Library/Logs/scan/MyKit-MyKit.log: Permission denied
Followed by this at the end:
cat: /Users/kevin.harwood/Library/Logs/scan/MyKit-MyKit.log: No such file or directory
[08:11:47]: Couldn't parse the number of tests from the output
from scan.
It looks like /Users/kevin.harwood/Library/Logs/scan
may have been created a while ago when I ran scan against another project, most likely with scan install via a different mechanism. Removing that directory, and letting scan recreate it seems to have worked for me.
from scan.
This issue was migrated to fastlane/fastlane#3369. Please post all further comments there.
fastlane
is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo
from scan.
Related Issues (20)
- scan doesn't play well with XLTestLog HOT 2
- scan not building a framework target tests scheme HOT 2
- Exit status: 65 HOT 1
- Add link to action in fastlane HOT 4
- slack hook not work on "slack_url" and "slack_channel" HOT 2
- Returning the test result HOT 6
- Scan picks the wrong project name for Slack message HOT 4
- Integration with OCLint? HOT 6
- Reinstalling app before Tests are run via scan HOT 4
- `handle_results': Tests failed (RuntimeError) HOT 6
- Error 65 HOT 1
- Test marked with the `@available(iOS 9.0, *)` decorator are ran on a iOS 8 simulator HOT 5
- App screenshots of failed steps HOT 2
- undefined method `message' for nil:NilClass in 'handle_results' method HOT 7
- Is it possible to run individual test case/test class? HOT 3
- Connection interrupted, some tests skipped HOT 2
- Cannot run tests (iPhoneSimulator: Could not launch simulator: -600) HOT 2
- Scan hangs running test against target with missing linked files HOT 3
- Unable to find a destination matching the provided destination specifier HOT 3
- Segmentation fault: 11 HOT 3
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 scan.