Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
py-heptapod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
heptapod
py-heptapod
Commits
362aa38ad303
Commit
f7464719
authored
Nov 01, 2020
by
Georges Racinet
🦑
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README: update tests guide
parent
4bfffd69ef9a
Pipeline
#12349
passed with stages
in 2 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
README.md
README.md
+9
-5
No files found.
README.md
View file @
362aa38ad303
...
...
@@ -35,16 +35,20 @@ Python 2 support will be dropped entirely when we will have a new home for
### Launching the tests
We have unit tests with
`py.test`
, they'd be typically run in a virtualenv:
We have unit and integration tests with
`pytest`
, they'd be typically
run in a virtualenv:
```
python 3 -m venv venv
venv/bin/pip install -r install-requirements.txt -r test-requirements.txt
venv/bin/pytest
source venv/bin/activate
./run-all-tests
```
Note: relying on virtualenv activation to run the tests simply as
`pytest`
has
been playing tricks with us, but the direct form above worked in all cases
We have a 100% coverage policy, that is enforced by
`run-all-tests`
and
therefore by the continuous integration.
This full run takes about 20 seconds in our continuous integration, and
usually less than that on developer workstations.
### Workflow rules
...
...
Georges Racinet
🦑
@gracinet
mentioned in commit
0ae3a644a300
·
Nov 01, 2020
mentioned in commit
0ae3a644a300
mentioned in commit eb1cf71e4fbc510b70e47c896c8d6ac129dad552
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment