setup nose for testing
This commit is contained in:
parent
ccb0b11ffb
commit
94670d9c87
|
@ -0,0 +1,3 @@
|
||||||
|
[run]
|
||||||
|
branch = false
|
||||||
|
omit = wakatime/packages/*
|
13
README.rst
13
README.rst
|
@ -74,3 +74,16 @@ Each plugin also has it's own log file for things outside of the common wakatime
|
||||||
* **Xcode** type ``sudo tail -f /var/log/system.log`` in a Terminal to view Xcode errors
|
* **Xcode** type ``sudo tail -f /var/log/system.log`` in a Terminal to view Xcode errors
|
||||||
|
|
||||||
Check that heartbeats are received by the WakaTime api with the ``last_heartbeat`` and ``last_plugin`` attributes from the `current user <https://wakatime.com/api/v1/users/current>`_ api resource. Saving a file forces a heartbeat to be sent.
|
Check that heartbeats are received by the WakaTime api with the ``last_heartbeat`` and ``last_plugin`` attributes from the `current user <https://wakatime.com/api/v1/users/current>`_ api resource. Saving a file forces a heartbeat to be sent.
|
||||||
|
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
------------
|
||||||
|
|
||||||
|
Before contributing a pull request, make sure tests pass:
|
||||||
|
|
||||||
|
virtualenv venv
|
||||||
|
. venv/bin/activate
|
||||||
|
pip install -r dev-requirements.txt
|
||||||
|
nosetests
|
||||||
|
|
||||||
|
Many thanks to all [contributors](./AUTHORS)!
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
coverage==3.7.1
|
||||||
|
nose==1.3.7
|
||||||
|
nose-exclude==0.3.0
|
|
@ -0,0 +1,5 @@
|
||||||
|
[nosetests]
|
||||||
|
exclude-dir = wakatime/packages
|
||||||
|
verbosity=3
|
||||||
|
with-coverage = 1
|
||||||
|
cover-package = wakatime
|
Loading…
Reference in New Issue