Comments (3)
it will always try to collect every test in the iotlabcli/ hierarchy
What do you mean by this ? It runs all tests or it displays coverage for all tests ?
I tried locally and there's indeed an issue when one wants to only run pytest on a single test. Example:
$ iotlabcli/tests/profile_test.py::TestM3Profile::test_valid_empty_profile
doesn't work: all tests are run. But this is not related to pytest-cov. I could fix it with the following pytest config (in setup.cfg):
[tool:pytest]
addopts = -v --ignore iotlabcli/integration
--cov=iotlabcli --cov-report=term --cov-report=xml --cov-report=html
--junit-xml=test-report.xml
--doctest-modules
--pep8
testpaths = iotlabcli
Using an empty PYTEST_ADDOPTS variable is not a good solution, since it will also clear other options (--doctest-module, --pep8, etc).
Also, having the global coverage when running a single test makes no sense and maybe the options related to coverage should be moved to the tests env in tox.ini. I tried that and it works well, will PR this, so you can try.
from cli-tools.
@rienafairefr, see #29
from cli-tools.
OK. Looks fixed by #29
from cli-tools.
Related Issues (15)
- Python3 incompatibility HOT 4
- Python 2.6 HOT 2
- Add "dev-mode" configuration file ~/.iotlab.api-url HOT 1
- Better error message when job name is too long
- Add "--version" switch on cli-tools HOT 1
- iotlab-experiment: errors when binaries have same name but different paths HOT 6
- More user-friendly `node-cli` when working with multiple archis
- Add --archi and --state filters for experiment-cli info
- Add a command to present frequently used outputs 'info-cli'
- experiment-cli -a raises a TypeError HOT 3
- testing: changes in tox HOT 1
- to fix before 2.6.0 release HOT 2
- Switch to pytest HOT 3
- Change CI infrastructure HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli-tools.