Skip to content

Commit 6d4a185

Browse files
author
Peter Götz
committed
Add Dockerfile to run automated tests in a build pipeline
1 parent 1e0c253 commit 6d4a185

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

DockerfileBuild

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM python:3.6
2+
LABEL author="Peter Götz ([email protected])"
3+
4+
WORKDIR /torpydo
5+
6+
ENV PYTHONPATH=/torpydo
7+
8+
COPY requirements.txt /torpydo
9+
COPY features/ /torpydo/features
10+
COPY tests/ /torpydo/tests
11+
COPY torpydo/ /torpydo/torpydo
12+
13+
RUN pip install --upgrade pip
14+
RUN pip install -r requirements.txt
15+
16+
CMD cd torpydo && python -m torpydo

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ to run with coverage:
7676
nosetests --exe --with-coverage
7777
```
7878

79+
to run and store the test results for further examination (e.g. build pipeline)
80+
```
81+
nosetests --exe --with-xunit
82+
behave --junit
83+
```
84+
7985
Run behave tests with coverage:
8086
```
8187
https://stackoverflow.com/a/37447392/736079

0 commit comments

Comments
 (0)