Code Monkey home page Code Monkey logo

testing_workshop's Introduction

Testing Workshop

It will be aimed at more intermediate to advanced topics. I'll introduce you to my basic workflow of testing code with MiniTest and some other tips and tricks along the way.

Testing workshop recording available at: https://www.youtube.com/watch?v=9w8QRDZy9Kw

We'll focus on testing:

• Models

• Controllers

• Helpers

• Model Concerns in isolation (can be tricky)

• Controller Concerns in isolation (can be even trickier)

• ApplicationController methods in isolation

• Dependencies on external services, mocking or VCR

• Acceptance testing with Capybara (if time permits)

• Gem testing (if time permits)

Additionally, I will touch briefly on organizing your code in a smart way so you avoid overtesting, talk about what not to test, and touch on some helpful testing tools along the way.

Getting started

  • Create a config/database.yml file for your machine like in config/database-sample.yml

  • Create a config/application.yml file for your machine like in config/application-sample.yml This is only used for Giphy API key

  • Run bundle, rake db:create, rake db:migrate per usual

testing_workshop's People

Contributors

beneggett avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

bondparkerbond

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.