Skip to content

Commit

Permalink
Add a cover tox target to do coverage
Browse files Browse the repository at this point in the history
Having coverage information will help improve future testing.

Also add some POST tests to enhance coverage of the the SimpleWsgi
test backend.
  • Loading branch information
cdent committed Feb 2, 2015
1 parent 1acaa8d commit 485be48
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gabbi/gabbits_intercept/self.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,30 @@ tests:
response_headers:
x-gabbi-url: $SCHEME://$NETLOC/named/thing

- name: checklimit
url: /

- name: post a body
url: /somewhere
method: POST
data:
cow: barn
request_headers:
content-type: application/json
response_json_paths:
$.cow: barn

- name: post a body with query
url: /somewhere?chicken=coop
method: POST
data:
cow: barn
request_headers:
content-type: application/json
response_json_paths:
$.cow: barn
$.chicken[0]: coop

- name: get ssl page
url: /
ssl: True
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ commands =
[testenv:limit]
commands = {toxinidir}/test-limit.sh

[testenv:cover]
commands = python setup.py testr --coverage --testr-args="{posargs}"

[flake8]
ignore = H405,E126
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,docs
Expand Down

0 comments on commit 485be48

Please sign in to comment.