Giter Site home page Giter Site logo

stevegrunwell / intro-to-testing Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 7.77 MB

Slides for "Testing Like You've Never Tested Before (Because You Haven't)"

CoffeeScript 16.38% CSS 58.45% JavaScript 6.92% HTML 18.25%
testing phpunit mockery unit-testing integration-testing slides

intro-to-testing's Introduction

Testing Like You've Never Tested Before (Because You Haven't)

Testing software in an automated fashion is one of the best ways to guarantee quality, reduce bugs, and prevent regressions in our code, and is a prerequisite to operating in a Continuous Integration environment. Unfortunately, the most difficult parts of testing come right at the beginning: scaffolding a test suite and writing our very first tests. For those who are new to automated testing, these hurdles can prove overwhelming.

This talk covers the fundamentals of testing, in a beginner-friendly way. We'll discuss how testing makes software better, the various levels of the Automation Pyramid, how to scaffold some basic unit and integration tests, and discuss the characteristics of great tests.

View slides

Resources

Presentation History

intro-to-testing's People

Contributors

stevegrunwell avatar vmitchell85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dexit

intro-to-testing's Issues

Accessibility of Red/Green/Refactor

While the term rolls off the tongue, it's important for the sake of accessibility to not rely only on colors. Some iconography would help make the slides more visible to the ~10% of the population with difficulties seeing red and/or green.

Props to @jmauerhan for catching this!

Test doubles with anonymous classes

After a good conversation with @Crell at Midwest PHP 2019, he raised some great points:

  1. Mocking libraries aren't really as necessary as they once were, since PHP 7.0 gave us anonymous classes. Requiring a mocking library can in fact be a code smell: https://steemit.com/php/@crell/don-t-use-mocking-libraries
  2. While there are different types of test doubles, the rules around them can be...well, squishy. Deeper acknowledgement that there's a lot of grey area would be helpful.

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.