nodejsil / lecture-topics

Lecture topics for the Israeli Node.js community monthly meetups
http://www.nodejsil.com
12 stars 0 forks source link

Beyond Mocha, Chai and unit testing #4

Open goldbergyoni opened 6 years ago

goldbergyoni commented 6 years ago

One-liner: An overview of modern testing techniques and tools that address few areas where traditional unit testing falls short

Motif: Writing unit testing is the most fundamental and popular testing techniques. Yet, it falls short on two significant use cases: (a) To get high code coverage it dictates to tediously writing tests cases for each and every method (b) It's focused on the app internals only leaving the components that deal with database, neighbor services and API clients untested. As a result, many applications defer test writing, those who try often get low code coverage

The emerging techniques: Few modern techniques and tools aim to tap into this gap and provide a much leaner path with a better effort to value ratio and techniques to test the application interaction with live databases, microservices and the contract with the API clients.

Presenter: Me, Yoni Goldberg, or any other community memeber

Agenda:

  1. The revolutionary testing pyramid
  2. Testing Microservice as a whole using supertest
  3. Testing clients to other microservices using Nock
  4. Consumer-driven contracts testing with PACT
  5. Live database testing
itaysabato commented 6 years ago

@i0natan I assume this is a lecture you would like to give yourself? If so, it is worth mentioning.

goldbergyoni commented 6 years ago

@itaysabato I can give myself or sit in the crowd. I included the TOC should someone else wishes to present this. I'll mention that I can hold this session myself