Giter Club home page Giter Club logo

book's People

Contributors

alex-wilmer avatar baronlior-gt avatar gernotstarke avatar iteles avatar karinakozarova avatar lcustodio avatar nelsonic avatar nkamc avatar nwjohn avatar panoramix360 avatar pavanjadhaw avatar rupeshiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

book's Issues

Does 100% Code Coverage Mean my Code is Perfect?

yes, this is a click-bait question... πŸ˜‰
obviously we can write poor code and still test it and get coverage...

insert example ...

But... we like to think of code coverage in a packaged food analogy:
Imagine you are at the "health food store" and you see tasty-sounding words on a new product: "Vegan, Raw, All-Natural Delicious, etc..." however, no ingredients are listed.
You ask the store assistant: "can you tell me what is in this...?"
she replies: "oh, just avocado, nuts and a dash of formaldehyde"
_Formalda ... WHAT?_ you exclaim as you prepare to leave the store!!
Yes, formaldehyde is a naturally occurring organic compound, which has been used by bad companies to extend the shelf life of "food" see: http://en.wikipedia.org/wiki/Formaldehyde#Contaminant_in_food

We (used to!) eat packaged foods all the time and trust the manufacturers to have our health and best interest at heart... but unless we know everything that goes into those products, and the precise process by which they are produced, we have no idea what we are consuming!

Testing Spectrum

There's a spectrum of "testedness".
It ranges from "we really need to write some tests" (i.e. zero tests!) to "fully automated continuous deployment".

Where does your current project sit?

(tiny) typo

Release Shedule --> Release Schedule
πŸ˜ƒ

Possible Analogy: Learning to Drive a Car (requires passing a test) ...?

To drive on public roads people are required to pass a driving test, the test proves that the person can drive the vehicle competently and know essential road safety.

There is no (generally accepted) "test" for being a software developer/engineer, so how do you know the people you are working with are any good?

20 Benefits of TDD

  1. Writing tests first require you to really consider what you want from the code
  2. Fast feedback
  3. Creates a detailed specification
  4. Reduced time in rework
  5. Less time spent in the debugger
  6. Identify the error/problem quickly
  7. Tells you whether your last change (or refactoring) has broken previously working code
  8. Allows the design to evolve and adapt to your changing understanding of the problem.
  9. Forces radical simplification of the code, you will only write code in response to the requirements of the tests.
  10. Forces you to write small classes focused on one thing.
  11. Creates SOLID code
  12. Cleans Interface
  13. Maintainable, Flexible, Easily Extensible
  14. The resulting Unit Tests are simple and act as documentation for the code. Since TDD use-cases are written as tests, other programmers can view the tests as usage examples of how the code is intended to work.
  15. Shorten the development Time to Market
  16. Increase the programmer’s productivity
  17. Cut development costs
  18. Improves quality
  19. Reduces bugs
  20. TDD gives programmers the confidence to change the larger architecture of an application when adding new functionality. Without the flexibility of TDD, developers frequently add new functionality by virtually bolting it to the existing application without true integration – clearly, this can cause problems down the road

Addapted from http://apiumtech.com/blog/20-benefits-of-test-driven-development/
Thanks to @sarahabimay @foundersandcoders

Mocha and Chai?

(even though jest is the "official" testing framework...) Mocha and Chai appear to be the default choices in the React/Redux world. should we add a section addressing this?

Lab Coat? (Embroidered/Personalised)

Since high school (DT/Art) I've loved the idea of wearing a Lab Coat while working.
Both to protect one's clothing and to encourage an experimentation mindset.
labcoat-embroidered

About Chai

I saw that early on , this tutorial had Chai as a dependency ,
Any reason this was removed? I'm wondering if there's anything wrong with it as I'm just getting into TDD and want to do it correctly ;)

Thanks.

Make Tea Workflow?

Can we use making tea as an analogy for a workflow in manual testing?

How to reset test database before each test run?

In order to have repeatable tests it seems a good idea to have a test database populated with known data against which to write the tests. Populating this database is straightforward and resetting it could be as simple as dropping it at the end of the test. But adding an automated drop database to my test scripts seems like a very bad idea since a config error could easily result in dropping a production database. Any suggestions? I'm using MongoDB and Mocha/Karma/Protractor.

Mocking? Why When & How to Mock in your Tests

Why?

_Situation_: You want to use a service (API) made by someone else in your project, but you don't want to call that API inside your tests because the network is slow/unreliable or simply because the service requires multi-step (user-input) authentication (e.g: OAuth2) and you don't want to go through that in your tests.

What?

In unit testing a _Mock_ is used to simulate an object or response (from an API) in a controlled way.

How?

Lets say you are building an app called "_BroLee?_" that gives people recommendations on when they should carry an umbrella to wear based on the weather conditions in their location.

Example:

_nock_ is made by @pgte and is the _gold standard_ in simplified libraries.

Notes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.