-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] RFC8 - Move to pytest testing tool [Issue#428] #492
Changes from all commits
84acf66
95cee97
4aca3bd
07d644a
0ecc653
5f5c272
6d78dbb
820d390
625db7f
28b8127
e481836
3d640da
3e4ae83
207b9e4
a96c146
9c93bbd
fb02cb2
d3e8c73
45740e0
825c417
963c91b
1f7dbd5
daa52ba
852347d
5909cc5
22d20d8
6ba89af
094f602
8fa84a1
ed8b384
e7233b3
546c87a
7c71a0c
2ee0b9f
5dd9379
850a63a
93e6c14
4a21b40
936d5b5
9eae009
657bcf5
a3da2e4
2e4944d
c57370b
7c1a230
537b2ec
99187d1
425744c
c4be99d
eccdea0
8709622
affe847
4b8117f
c544071
f38e1fb
87a9307
305c071
d21a808
19147b6
7cc7d32
aa44c18
d0f3d00
e8ddd58
d84f5e2
f3db82c
5e9c231
1d8bbee
76bf5df
2ba3579
b0274e3
6c227aa
2946d29
24af749
2a1c4b3
3f790f4
35627e8
62162fe
a80b0c9
3d4e10a
0e5f02e
0cf53ac
6f4d39c
621a988
af3bcc9
c1964dc
e8654ce
87e8cd7
868981d
de4cb6d
267a9e8
1427598
b73c281
cd49f53
1ab35ea
95253b4
37289c6
c37de9a
6dbcf88
d1ec34d
6dee5b8
73ec843
c0b10aa
cbcafb0
052b5ec
a102698
ca8f4bf
a16a907
306ba20
a1c0f9c
0de23c0
dc8853d
151cb47
cc5a433
76d29e2
bc30518
7eb3367
cda6ab6
25c708e
686d2a4
393f162
4acbcdd
32299b3
c904a06
d2bdf23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[run] | ||
branch = True | ||
source = pycsw | ||
|
||
[paths] | ||
source = | ||
pycsw | ||
.tox/*/lib/python*/site-packages/pycsw | ||
/usr/local/lib/python*/dist-packages/pycsw | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this hardcoded path safe enough or should it be abstracted somehow? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe so.
|
||
|
||
[report] | ||
show_missing = True |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,15 @@ | |
- Python version: | ||
- pycsw version: | ||
- source/distribution | ||
- [ ] git clone | ||
- [ ] DebianGIS/UbuntuGIS | ||
- [ ] PyPI | ||
- [ ] zip/tar.gz | ||
- [ ] other (please specify): | ||
- [ ] git clone | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes in this file are already committed upstream. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, I really have to clean up the commit history... |
||
- [ ] DebianGIS/UbuntuGIS | ||
- [ ] PyPI | ||
- [ ] zip/tar.gz | ||
- [ ] other (please specify): | ||
- web server | ||
- [ ] Apache/mod_wsgi | ||
- [ ] CGI | ||
- [ ] other (please specify): | ||
- [ ] Apache/mod_wsgi | ||
- [ ] CGI | ||
- [ ] other (please specify): | ||
|
||
# Steps to Reproduce | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,34 @@ | ||
language: python | ||
|
||
sudo: required | ||
dist: trusty | ||
cache: pip | ||
|
||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.4" | ||
dist: trusty | ||
|
||
#matrix: | ||
# allow_failures: | ||
# - python: "3.4" | ||
matrix: | ||
include: | ||
- python: "2.6" | ||
env: TOXENV=py26-sqlite | ||
- python: "2.7" | ||
env: TOXENV=py27-sqlite | ||
- python: "3.4" | ||
env: TOXENV=py34-sqlite | ||
- python: "3.5" | ||
env: TOXENV=py35-sqlite | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libgeos-c1 | ||
- libgeos-dev | ||
- libpq-dev | ||
- libxml2-dev | ||
|
||
before_script: | ||
- pycsw-admin.py -c get_sysprof | ||
- libxslt1-dev | ||
- libz-dev | ||
|
||
install: | ||
- pip install -r requirements.txt | ||
- pip install -r requirements-dev.txt | ||
- pip install -r requirements-standalone.txt | ||
- python setup.py -q install | ||
- pip install tox | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we just include tox in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is not possible. The way in which In short, its tox's job to install the requirements, so tox has to be already installed and there is no benefit in including it in |
||
|
||
script: | ||
- paver test | ||
|
||
after_script: | ||
- paver stop | ||
- tox -- --exitfirst -k 'not harvesting' | ||
|
||
notifications: | ||
irc: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,9 @@ | |
|
||
# -- General configuration ----------------------------------------------------- | ||
|
||
# locale | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes in this file are already committed upstream. |
||
locale_dirs = ['locale/'] | ||
|
||
# If your documentation needs a minimal Sphinx version, state it here. | ||
#needs_sphinx = '1.0' | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this file for coverage.py? Is coverage.py enabled by the tox
--cov
flag?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.coveragerc
is the configuration for runningcoverage.py
. More details here. In our case I am using it mostly to:if.. elif.. else
blockstox.ini
. I've chosen to enable coverage only on python3.4 for now. In the future we can report coverage on all python versions and then combine them all, but this will require additional work