Coder Social home page Coder Social logo

testing101's Introduction

Unit Testing 101

Lesson 1: Let's write our first unit tests

In lesson 1, you will write some unit tests for Stringie, a library to transform strings. Stringie developers heard about unit testing and wrote "something" like unit tests.

In this lesson, you will write 2 or 3 unit tests for one of the Stringie methods. This lesson will teach you how to organize your tests in a solution and how to name your test projects, classes and methods.

Begin Lesson 1.

Lesson 2: Let's fix some tests

In lesson 2, you will have to fix some unit tests. This time, Stringie developers wrote some unit tests, but they made some mistakes along the way. They forgot to use a naming convention, among other things.

In this lesson, you will have to fix the tests Stringie developers wrote.

Begin Lesson 2.

Lesson 3: Let's rename our tests

In lesson 3, you will have to rename some unit tests. This time, Stringie developers fixed almost all the mistakes in their tests, except fro one type of mistake: test names.

In this lesson, you will have to follow a naming convention.

Begin Lesson 3.

Credits

Stringie is intended for learning purposes only. Stringie methods were taken from FluentStrings.

testing101's People

Contributors

canro91 avatar

Watchers

James Cloos avatar

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.