On the last GTAC Mark Trostler (a Google Software Engineer) has given a presentation about testable JavaScript Code and how testability relates to high quality code and adaptivity to requirement changes. You can apply these principles also to SAPUI5 development.  In the next weeks I am going to publish several blog posts around specific aspects of the testability of SAPUI5 applications. This video introduces some basics and I can really recommend watching the video:

Mark Trostler (Google): Testable JavaScript is a process. Whether starting with a blank slate or an already implemented application (or somewhere in-between) being able to test your JavaScript code simply, cleanly, and effectively is a necessary feature.

While JavaScript is unique due to the myriad of environments within which it runs, there are several tried and true ‘testable’ methodologies from other languages which also hold true for JavaScript. And of course there remain the unique challenges that JavaScript developers must face while writing and testing their code. What patterns make code testable? Which anti-patterns hinder testing? What metrics and common sense guideposts can be used to measure the testability of our code? Once the process of creating testable code has started now what?

Join me to break down the process of writing testable JavaScript. We will investigate ideas, patterns, and methodologies that greatly increase the testability, and hence the maintainability, correctness, and longevity of your code. Whether you write client- or server-side JavaScript mastering this process will greatly enhance the quality of your code.”


Video: http://www.youtube.com/watch?v=JjqKQ8ezwKQ&list=SPSIUOFhnxEiCODb8XQB-RUQ0RGNZ2yW7d

Slides: https://docs.google.com/presentation/d/1dp0GOtvl2-pZoxkyzvGvq5zmPdMIDQIBzr2Vv_3JzQo/pub?start=false&loop=false&delayms=3000#slide=id.gd2fff574_080


This blog post is part of a series, like the following blog post to stay tuned and get updates about more topics around software engineering with SAPUI5 and JavaScript:

http://scn.sap.com/community/developer-center/front-end/blog/2013/12/12/engineering-in-javascript

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Bronwyn St Clair

    Thanks for providing this. I’m really pleased to see Test Driven Design being used in a UI5 environment, which many classical developers are still coming to terms with, and will look forward to following your blogs.

    (0) 

Leave a Reply