-
Notifications
You must be signed in to change notification settings - Fork 20
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
Some more fixes and new stuff #3
base: master
Are you sure you want to change the base?
Conversation
The previous version would fail under certain circumstances
…s was clearing any extras from starting Intents
… activities which have a launch mode other than normal This inherits from SingleLaunchActivityTestCase, see the following link for more info: http://developer.android.com/reference/android/test/SingleLaunchActivityTestCase.html
Rupert, great stuff again, thanks. I think we should check for that one thing I mentioned about list items receiving click events, but apart from that it's good to go. Would it be easier for you if I grant you commit rights to this repo? Then you don't have to wait for me to pull things back in, since I'm currently not actively working on this project. Speaking of which. The reason why we're not using Calculon anymore is not because of its own limitations or anything, but because of the limitations and flakiness of the underlying Android instrumentation tests. We had nothing but trouble, and we're switching to all Robolectric now for unit testing. However, Robolectric like instrumentation tests does not have a particularly nice syntax, and hence my idea was to decouple Calculon's DSL from the backend that implements the actions and assertions. That way one could write Calculon tests for both instrumentations and Robolectric tests by simply choosing the desired backend (they're doing the same with Mockito now; they're building a backend for Dalvik, but the syntax will remain identical). Would that be something you'd agree makes sense to have or where you'd even be willing to help out? |
Hi Matthias, you're right about the click events for the I've realised now what the underlying problem is: I never use that It seems from the tests that I've run that leaving both methods of itemView.performClick(); I'm slightly worried about edge cases where both the interface method and What are your thoughts? Rupert 2012/2/2 Matthias Kppler <
Rupert Bates Lead Android Developer Tel: 020 3353 3315 Please consider the environment before printing this email.Visit guardian.co.uk - newspaper of the year www.guardian.co.uk www.observer.co.uk www.guardiannews.com On your mobile, visit m.guardian.co.uk or download the Guardian To save up to 30% when you subscribe to the Guardian and the Observer visit www.guardian.co.uk/subscriberThis e-mail and all attachments are confidential and may also Guardian News & Media Limited is not liable for any computer Guardian News & Media Limited A member of Guardian Media Group plc Registered in England Number 908396 |
Hi Matthias, I've got a few more changes to calculon you may be interested in pulling:
Let me know if you would rather I separated these commits out into different pull requests.
Cheers,
Rupert