Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Testing JavaScript Applications: How it's different?

 
Ranch Hand
Posts: 100
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucas da Costa congrats for your book!
This is one of the awkward interesting questions.

I was reviewing the available contents in Manning's site. I noticed that several concepts are similar to general testing, like the atomicity, assertions, mocks, stubs.

So, apart from libraries or tools?
How the concepts of testing JavaScript applications  differ from testing other languages (let say Java)?

Thanks.
 
Author
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even though I use Jest to _demonstrate_ how to write assertions, and deal with test doubles, the concepts they illustrate can certainly be partially applied to other languages.

The book focuses a lot on the _whys_  of techniques, not only on the _how_.

The main difference between using these techniques in JavaScript and using them in other languages is that due to JavaScript's dynamic nature we can leverage it's metaprogramming features to make testing more concise and flexible without having to build too many testing concerns into an application's design like dependency injection.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic