Skip to content

Commit

Permalink
Set up Coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiller committed Mar 12, 2016
1 parent 3ae3191 commit 32349d0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
source =
wardround
omit =
wardround/tests/*
*/migrations/*

[report]
exclude_lines =
def __unicode__
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ python:
install:
- python setup.py develop
- pip install -r requirements.txt
- pip install coveralls
- npm install karma karma-coverage karma-jasmine karma-firefox-launcher
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- opal test
- opal test --coverage
after_success: coveralls
notifications:
slack: ohcuk:6spaME3CB7f2PGrMAcklYWqp
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
Virtual ward round plugin for OPAL.

[![Coverage Status](https://coveralls.io/repos/github/openhealthcare/opal-wardround/badge.svg?branch=master)](https://coveralls.io/github/openhealthcare/opal-wardround?branch=master)
[![Build Status](https://travis-ci.org/openhealthcare/opal-wardround.svg?branch=master)](https://travis-ci.org/openhealthcare/opal-wardround)

Define wardronds in your implementation by subclassing wardrounds.WardRound.

As a minimum, you will need to specify a name & description, and implemenet the episodes
As a minimum, you will need to specify a name & description, and implemenet the episodes
staticmethod.

```python
Expand All @@ -13,15 +16,15 @@ def episodes():

### Filters

Your wardround may also define user filters for the episodes included in this ward round.
Your wardround may also define user filters for the episodes included in this ward round.

The template for the HTML snippet containing the UI for this should be set as the `filter_template` property
of your ward round

The filters themselves are set as a dictionary in the `filters` property.
The filters themselves are set as a dictionary in the `filters` property.

This should be a dictionary where the key is the filters.foo property being set in your UI snippet,
the value being an expression to eval. This expression will have access to the following variables:
the value being an expression to eval. This expression will have access to the following variables:

- episode: the OPAL Episode() instance
- value: the value of your filter as set by the UI.
Expand All @@ -45,4 +48,4 @@ Your wardround detail view may restrict the available fields by implementing the

This method should return a column schema (an ordered iterable of models.)

This returns opal.views.core.schema.detail_columns by default.
This returns opal.views.core.schema.detail_columns by default.

0 comments on commit 32349d0

Please sign in to comment.