@@ -27,6 +27,8 @@ MODULE=schema_salad
27
27
# `[[` conditional expressions.
28
28
PYSOURCES =$(wildcard ${MODULE}/** .py tests/* .py) setup.py
29
29
DEVPKGS =pep8 diff_cover autopep8 pylint coverage pep257 pytest flake8
30
+ COVBASE =coverage run --branch --append --source=${MODULE} \
31
+ --omit=schema_salad/tests/*
30
32
31
33
VERSION =$(shell git describe --tags --dirty | sed s/v//)
32
34
@@ -103,37 +105,31 @@ diff_pylint_report: pylint_report.txt
103
105
diff-quality --violations=pylint pylint_report.txt
104
106
105
107
.coverage : $(PYSOURCES )
106
- coverage run --branch --source= ${MODULE} setup.py test
107
- coverage run --append --branch --source= ${MODULE} \
108
- -m schema_salad.main \
108
+ rm -f .coverage
109
+ $( COVBASE ) setup.py test
110
+ $( COVBASE ) -m schema_salad.main \
109
111
--print-jsonld-context schema_salad/metaschema/metaschema.yml \
110
112
> /dev/null
111
- coverage run --append --branch --source=${MODULE} \
112
- -m schema_salad.main \
113
+ $(COVBASE ) -m schema_salad.main \
113
114
--print-rdfs schema_salad/metaschema/metaschema.yml \
114
115
> /dev/null
115
- coverage run --append --branch --source=${MODULE} \
116
- -m schema_salad.main \
116
+ $(COVBASE ) -m schema_salad.main \
117
117
--print-avro schema_salad/metaschema/metaschema.yml \
118
118
> /dev/null
119
- coverage run --append --branch --source=${MODULE} \
120
- -m schema_salad.main \
119
+ $(COVBASE ) -m schema_salad.main \
121
120
--print-rdf schema_salad/metaschema/metaschema.yml \
122
121
> /dev/null
123
- coverage run --append --branch --source=${MODULE} \
124
- -m schema_salad.main \
122
+ $(COVBASE ) -m schema_salad.main \
125
123
--print-pre schema_salad/metaschema/metaschema.yml \
126
124
> /dev/null
127
- coverage run --append --branch --source=${MODULE} \
128
- -m schema_salad.main \
125
+ $(COVBASE ) -m schema_salad.main \
129
126
--print-index schema_salad/metaschema/metaschema.yml \
130
127
> /dev/null
131
- coverage run --append --branch --source=${MODULE} \
132
- -m schema_salad.main \
128
+ $(COVBASE ) -m schema_salad.main \
133
129
--print-metadata schema_salad/metaschema/metaschema.yml \
134
130
> /dev/null
135
- coverage run --append --branch --source= ${MODULE} \
136
- -m schema_salad.makedoc schema_salad/metaschema/metaschema.yml \
131
+ $( COVBASE ) -m schema_salad.makedoc \
132
+ schema_salad/metaschema/metaschema.yml \
137
133
> /dev/null
138
134
139
135
coverage.xml : .coverage
0 commit comments