Skip to content

Commit e475c5a

Browse files
committed
Swapped nosetests for green
1 parent 4a6bf87 commit e475c5a

File tree

3 files changed

+43
-21
lines changed

3 files changed

+43
-21
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ This will use a Docker container instead of a Virtual Machine (VM). Everything e
5656

5757
## Running the code
5858

59-
You can now run `nosetests` to run the tests and make sure that everything works as expected.
59+
You can now run `green` to run the tests and make sure that everything works as expected.
6060

6161
```bash
62-
$ nosetests
62+
$ green
6363
```
6464

6565
You can then run the server with:

requirements.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Pinned dependencies that cause breakage
2-
Werkzeug==2.2.3
2+
Werkzeug==2.3.3
33
urllib3==1.26.15
44

55
# Runtime dependencies
6-
Flask==2.2.3
6+
Flask==2.3.2
77
flask-restx==1.1.0
88
cloudant==2.15.0
9-
retry==0.9.2
10-
python-dotenv==0.21.1
9+
retry2==0.9.5
10+
python-dotenv==1.0.0
1111

1212
# Runtime tools
1313
gunicorn==20.1.0
@@ -19,8 +19,7 @@ flake8==6.0.0
1919
black==23.1.0
2020

2121
# Testing dependencies
22-
nose==1.3.7
23-
pinocchio==0.4.3
22+
green==3.4.3
2423
factory-boy==3.2.1
2524
coverage==7.1.0
2625

setup.cfg

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
1-
[nosetests]
2-
verbosity=2
3-
with-spec=1
4-
spec-color=1
5-
with-coverage=1
6-
cover-erase=1
7-
cover-package=service
8-
cover-xml=1
9-
cover-xml-file=./coverage.xml
10-
exe=1
11-
# with-xunit=1
12-
# xunit-file=./unittests.xml
1+
[green]
2+
verbose=3
3+
processes=1
4+
run-coverage=1
5+
termcolor=1
6+
minimum-coverage=95
7+
junit-report=./unittests.xml
8+
9+
[flake8]
10+
max-line-length = 127
11+
per-file-ignores =
12+
*/__init__.py: F401 E402
13+
14+
[pylint.'MESSAGES CONTROL']
15+
disable=E1101
16+
17+
[coverage:run]
18+
source = service
19+
omit =
20+
venv/*
21+
.venv/*
1322

1423
[coverage:report]
15-
show_missing = True
24+
show_missing = true
25+
exclude_lines =
26+
pragma: no cover
27+
pragma: no branch
28+
pass
29+
subprocess.CalledProcessError
30+
sys.exit
31+
if __name__ == .__main__.:
32+
ignore_errors = true
33+
34+
[coverage:xml]
35+
output=./coverage.xml
36+
37+
[coverage:html]
38+
title = 'Test Coverage Report'

0 commit comments

Comments
 (0)