An open API service indexing awesome lists of open source software.

https://github.com/fractal-code/rtd

Meteor Test Runner
https://github.com/fractal-code/rtd

Last synced: about 1 year ago
JSON representation

Meteor Test Runner

Awesome Lists containing this project

README

          

## This is a modified version of [the original RTD](https://github.com/xolvio/rtd) developed by xolv.io

# RTD - The Test Runner for Meteor

An end-to-end testing solution for Meteor, combining Karma, Selenium Webdriver and Istanbul.

[![RTD DEMO](http://img.youtube.com/vi/ESVRDEY-QSk/0.jpg)](http://xolvio.github.io/rtd/)

## Instructions
Ensure you have node and Meteor and that the dependencies below are globally installed (you may need to run this as sudo, depending on your setup):

For growl notifications, you need to install a notifier if you don't already have it:

```console
MAC:
$ sudo gem install terminal-notifier
LINUX:
$ sudo apt-get install libnotify-bin
```

Next you need to move your meteor code into an app directory the structure of your application as follows:

```console
├──
│ ├── .git
│ ├── app
│ │ └── .meteor
│ │ └──
```

You will also want to structure your tests as follows:

```
├──
│ ├── .git
│ ├── app
│ │ └── .meteor
│ │ └──
│ ├── test
│ │ └── acceptance
│ │ │ └── fixtures
│ │ │ │ └──
│ │ │ └──
│ │ └── unit
│ │ │ └──
│ │ │ └──
```

Now you can add RTD to your package.json like [in the example](https://github.com/gliesesoftware/rtd-example/blob/master/package.json) (you'll need all of the dev dependencies there too).

To have RTD run in development mode, you type:

```console
./node_modules/.bin/rtd
```

And to test your app once (for pre-commit or on a CI server) you type:

```console
./node_modules/.bin/rtd runOnce
```

Use debug flag for more verbose output --debug

```console
./node_modules/.bin/rtd runOnce
```

To see the actual coverage report in detail, go to http://localhost:8000/coverage