Git Product home page Git Product logo

todo-example-concise-test's Introduction

todo-example-concise-test

An example codebase that's used in the book Build Your Own Test Framework (still a work in progress!).

TorontoJS setup instructions

Hello! ๐Ÿ‘‹

If you're joining the workshop on Dec 10, 2019, you can get a headstart by following these instructions. It's four steps, and it should take about 10 minutes in total.

The four steps are:

  • Upgrade to (or install) Node version 13.2
  • Fork this repo and clone it to your local machine
  • Create a new test runner project and link it
  • Read the session overview section below

Upgrade to (or install) Node version 13.2

This workshop uses ES6 modules which are on by default from Node 13.2. To check which version, you're on, open a command line and type:

node -v

If Node isn't found, you'll need to install it. If the version is old, please consider upgrading.

Some of you may not wish to upgrade, which is totally fine, however if you're on anything less than 13.2, you'll need to use the --experimental-modules flag with every Node command.

Fork this repo and clone it to your local machine

There's no requirement to fork as this repo isn't the one we'll be doing the most work in.

git clone https://github.com/dirv/todo-example-concise-test.git

During the workshop we'll be modifying the file test/tests.js.

Create a new test runner project

Most of the workshop will be writing code in a new NPM library. You can get a head start by doing all the plumbing beforehand.

  1. Open a terminal in your local workspace.
  2. mkdir concise-test
  3. cd concise-test
  4. npm init -- then fill in all the blanks
  5. mkdir src test
  6. Open package.json and add the following two lines:
   "type": "module",
   "bin" : "./src/cli"

Link the projects

The todo-example-concise-test project makes use of this new library you'll be building, so we need to link the two so it can be accessed.

Starting in the project folder of concise-test that you created in the last step...

  1. npm link -- this makes it available in your local package repo
  2. Change directory to the previous repo, e.g. cd ../todo-example-concise-test
  3. npm link concise-test

That's it.

Overview

This workshop we'll be building out both the todo-example-concise-test and concise-test projects.

The todo-example-concise-test project is like our scaffold, and will allow us to manually test the constructs we make in concise-test. As we build more and more features into concise-test, we'll update concise-test-todo-example to use those features.

You can see where we're going to end up by looking at the with-concise-test branch of this repo.

todo-example-concise-test's People

Contributors

dirv 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.