Gadgets – TechCrunch Romain Dillet

 Apple released an iOS update in the middle of the night (Cupertino time). iOS 11.2 brings Apple Pay Cash, but the feature is not live yet. The company still needs to flip a switch on its servers to enable it. Today’s update also enables support for faster 7.5W Qi wireless charging. If you have an iPhone 8 or an iPhone X as well as a wireless charger that supports 7.5W or more, your… Read More

Zalando Tech Blog – Technical Articles Vadym Kukhtin

Two brothers examine the pros and cons of UI testing

Based on their different experiences in Partner-Solutions and Zalando Media Solutions respectively, we speak to front-end developers, Vadym Kukhtin and Aleks Kukhtin about their opposing opinions on UI testing.

The Case Against UI Testing - Vadym

TL;DR It depends on preference, but I believe that UI testing isn’t required in every instance

In my experience, it is a sisyphean task to force developers to write even basic Unit tests, nevermind UI and E2E. Only Spartans led by Leonidas can achieve UI and E2E testing.

Of course, the case for UI testing is more complex than a simple “good vs bad” dichotomy. For example, the scale and scope of the app should be taken into account. If the app is small or short-term, most probably UI tests aren’t required. If it’s a monster project that needs to be covered as much as possible, then unit and E2E tests are required.

In the real world app, any interaction should change some state of the app, whether it’s a click, hover or any custom event. With unit tests, the developer can test internal component or service functionality, and with E2E the developer can test common component interactions and connections to third-party services, and API and backend functionality.

Example:

  • Use case: User should be able to login using OAuth and see “Hello” board.
  • App: LoginComponent:
  • Test case:

This process can be incredibly time consuming, with developers spending time writing the tests and mocking all dependencies. For small or short-term apps, we have to ask ourselves: is the time worth it?


My answer would be no.

The Case for UI Testing - Aleks

TL;DR In most cases I think we don’t need to write UI tests.

Let’s start with a small illustration. You start a new project and a month later have a nicely working app. You then decide to change one component in your structure. It is only UI component, so you know, that logic has no changes. The change itself works, but now the app has some of errors: it looks like you forgot about some style changes and your component now looks awkward. So, you fix the styles, deploy the changes, sit back and relax. But now, you have unwanted style issues in other component. So you again do the same thing and deploy the changes. Ideally, UI tests can identify this kind of problems.

Like most things in life, UI tests has advantages and disadvantages. Some argue it takes too much time, but this time can be considered an investment, safeguarding against any unwanted games of “tennis” as seen in the example above. Testing UI helps us better understand our code, and what actually it should render.

Yes, testing is complicated. Complex UI logic is pretty hard to test, but not inconceivable. Problem appears here: the process has so much troubles for the advantages gained: you need to write a lot of tests, but in result even small changes (that often happened with UI) force to rewrite bigger part of it.

In Conclusion
The biggest takeaway from our discussion is that UI testing cannot be simply filed away under “good” or “bad”. In some circumstances – such as small apps or short-term projects – testing may not be the best use of time. In others, testing is a must for maintaining the integrity of the components and saving time in the future.

Got an opinion on UI testing and want to bring it to a dynamic team? Get in touch. We’re hiring.

Gadgets – TechCrunch Romain Dillet

 Apple has updated its App Store support page with new metrics. As of November 6, 2017, iOS 11 is now installed on 52 percent of iPhones and iPads currently in use. 38 percent of devices still run iOS 10, and only 10 percent of people are using an earlier version of iOS. Apple usually updates this page quite quickly after the release of a major iOS update. This year, the company waited a bit as… Read More

Gadgets – TechCrunch Natasha Lomas

 What do you get if you combine the Internet of Things with the business of home insurance? UK startup Neos is hoping the answer is damage and/or theft prevention rather than just after-the-unfortunate-fact payouts. Read More

Gadgets – TechCrunch Romain Dillet

 New emojis. Do you need to hear anything else? Apple just released an iOS update. iOS 11.1 is the first feature update for iOS 11. It adds a couple of new things, starting with dozens of new emojis. Apple already previewed some of the new emojis, but they are now available to everyone. It includes mythical creatures, such as wizards, fairies, mermaids and vampires. There are some new… Read More

Gadgets – TechCrunch Darrell Etherington

 Astropad’s forthcoming Luna display adapter and software turns your iPad into a wireless, essentially lag-free monitor for your Mac – and the company wanted to make it even cooler by including a clever hack that turned the iPad’s mostly useless front-facing camera into a software button. But, unsurprisingly, Apple has nixed the feature by rejecting the update which included… Read More

Gadgets – TechCrunch Romain Dillet

 With the iPhone X, Apple has had to rethink many of the iOS core gestures. The new device features a brand new design with a taller display, Face ID and no home button. If you plan on buying a new iPhone X, it’s going to take a while to get used to these new metaphors. So here’s a list of some not-so-obvious features in the iPhone X. Matthew Panzarino also wrote a thorough review… Read More

Gadgets – TechCrunch Josh Constine

 How come only 0.08% of Snapchat’s users bought its camera sunglasses? Hundreds of thousands of pairs of Spectacles sit rotting in warehouses after the company bungled the launch. Initial hype and lines for its roving, limited time only Snapbot vending machines led Snap to overestimate demand but underdeliver on quality and content. Massive piles of assembled and unassembled… Read More

Gadgets – TechCrunch Romain Dillet

 Google’s big event is today. And this time, it’s all about new devices — the company should unveil a handful of new hardware products. The event will start at 9 AM in San Francisco, 12 PM in New York, 5 PM in London, 6 PM in Paris. And we already know what to expect. The big elephant in the room is Google’s new flagship Android phone, the Pixel 2 and Pixel 2 XL. It… Read More

Gadgets – TechCrunch Romain Dillet

 Google’s big event is today. And this time, it’s all about new devices — the company should unveil a handful of new hardware products. The event will start at 9 AM in San Francisco, 12 PM in New York, 5 PM in London, 6 PM in Paris. And we already know what to expect. The big elephant in the room is Google’s new flagship Android phone, the Pixel 2 and Pixel 2 XL. It… Read More