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
- Host: GitHub
- URL: https://github.com/fractal-code/rtd
- Owner: fractal-code
- Created: 2014-11-12T12:29:24.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-15T18:49:11.000Z (over 11 years ago)
- Last Synced: 2024-04-15T08:10:54.223Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 395 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
[](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