Giter Club home page Giter Club logo

easyspec-presentation's Introduction

RSpec from Scratch

Episode 1

The primary goal is to start demystifying the RSpec domain specific language(a language on top of an existing language crafted for a specific use case, like writing specifications, or defining routing for a web app ie: Rails routing files) by actually constructing an approximation of it from scratch

I also want to explain the conceptual differences between specifications and xunit style tests and how ultimately they are both just making assertions

We'll go from print debugging to building a lightweight version of RSpec expectations and matchers and reveal the underlying structure of the expect syntax to make it easier to reason about when writing specs.

Then we'll look at sharing setup between specs by implementing basic versions of let and lifecycle hooks and try to clarify why they exist and what value they are providing.

We'll try to walk through all of this with the minimal amount of code necessary to understand conceptually how these work but this isn't a precise implementation, the actual RSpec library accounts for a lot more functionality and edge cases and uses a more robust and proven implementation.

Episode 2

TBD

  • mocks
  • specs

Episode 3

TBD

  • Testing approaches in depth

Resources

Websites

Presentations

Books

easyspec-presentation's People

Contributors

bnbry avatar

Stargazers

Justin Hammond avatar

Watchers

 avatar

Forkers

jemiahlee

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.