A sample project demonstrating how to do Test-Driven Development in Ember using Mocha.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
mirage
public
tests
vendor
.editorconfig
.ember-cli
.eslintignore
.eslintrc.js
.gitignore
.npmrc
.template-lintrc.js
.travis.yml
.watchmanconfig
LICENSE.txt
README.md
ember-cli-build.js
package.json
testem.js

README.md

Learn TDD in Ember

A sample project demonstrating how to do Test-Driven Development in Ember.

Usage

This repo shows the process of going from an empty Ember app to a single complete feature built via TDD: the ability to create a blog post. To follow along with the TDD process, view the commit history for the repo. Each step either adds a failing test (red), or adds production code that gets past an error message or causes the test to pass (green). You can checkout any commit to see the state of the codebase at that time and run the tests yourself.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone https://github.com/learn-tdd-in/ember.git learn-tdd-in-ember
  • cd learn-tdd-in-ember
  • yarn install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Linting

  • yarn lint:hbs
  • yarn lint:js
  • yarn lint:js -- --fix

Building

  • ember build (development)
  • ember build --environment production (production)

Contributing

We welcome contributions to this repo and any other part of Learn TDD! See the Learn TDD Contributing page for info.

License

MIT. For more info, see LICENSE.txt.