Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

This Week in Mobile: Creating Better Test Cases

DZone's Guide to

This Week in Mobile: Creating Better Test Cases

The highlight of this week's articles is reducing flakiness in Swift tests, plus app provisioning and another case for Java vs. Kotlin in the enterprise.

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

The last week was dominated with iPhone Pro/8 rumors after some developers took a look at the source code for the upcoming HomePod. As always, there's so much more going on.

iOS 

We’ve all been hit by test cases that aren’t reliable, and apart from it signaling big problems, it’s the worst feeling after putting in the time to build tests. John Sundell outlines how you can go about Reducing Flakiness in Swift Tests.

No matter how well you think you understanding iOS provisioning, it’s worth taking the time out to read Cory Bohon’s excellent series on Demystifying iOS Provisioning (part 1 | part 2). 

You might be depending on GCD for your operations, but it actually works together with Operations and OperationQueues, which are described really well in this article

Here’s a useful article on how to Use Multiple Firebase Environments in iOS so that you can have one setup for development and another for production.

Some projects to check out: 

  • Queuer: Queue manager build on top of OperationQueue and Dispatch (aka GCD).
  • SeeFood: Inspired by HBO’s Silicon Valley, SeeFood is an iOS app that uses CoreML to detect various dishes.
  • AGImageControls: Cool tools for editing images.
  • LNZCollectionLayouts: A collection of CollectionViewLayouts.

Android 

In Kotlin in the Enterprise, Remy Chantenay puts forward the case for Java, reminding developers that just because you can use Kotlin doesn’t mean you should.

The team at ZeroTurnaround have put together a nice one-page cheatsheet for RxJava.  Also, check out this piece on Error Handling in RxJava which shows how to deal with exceptions properly. 

Want to get better animations in your Android app? Check out this Introduction to Physics-based Animations in Android. David Ganster has written about his AdditiveAnimation library which Brings Smooth Animation Transitions.  

Here’s a great step by step tutorial on How to Implement An Awesome Login Screen, starting off with a design concept and showing how to build it from scratch.

Some projects to check out: 

General

Ever wonder why blue was such a prominent color in apps that you use? Find out in The Most Important Color in UI Design

See How Google Designers Adapt Material, with examples of Keep and Inbox bend some of the guidelines.

No matter what your stage in the journey, it’s worth reading about the Evolution of a Software Engineer.

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:
swift ,ios ,java ,kotlin ,android ,mobile ,mobile app development

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}