Giter VIP home page Giter VIP logo

Comments (3)

ofek avatar ofek commented on July 22, 2024

Run hatch env remove hatch-test, remove this dependency https://github.com/datalad/datasalad/blob/5ed71d8d441c2a722fb572979e57b7610dbe95f6/pyproject.toml#L52, then try again and let me know what happens.

from hatch.

mih avatar mih commented on July 22, 2024

That did not work

Combined data file .coverage.meiner.1676650.XMHLGWKx
Combined data file .coverage.meiner.1676650.XTTTrcAx
Can't combine arc data with line data

However, initially I got

❯ hatch test --cov
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov
  inifile: /home/mih/hacking/datalad/salad/pyproject.toml
  rootdir: /home/mih/hacking/datalad/salad

which made me realize that I used pytests option, and not hatch's!

After I put back pytest-cov as a dependency I get

Combined data file .coverage.meiner.1677050.Xybzbnjx
Combined data file .coverage.meiner.1677119.XDnJqgFx
Skipping duplicate data .coverage.meiner.1677122.XcdYfiax
Skipping duplicate data .coverage.meiner.1677125.XYEzGHpx
Skipping duplicate data .coverage.meiner.1677128.XZXZdGJx
Skipping duplicate data .coverage.meiner.1677131.XLdFPpnx
Skipping duplicate data .coverage.meiner.1677134.XZhVLNTx
Skipping duplicate data .coverage.meiner.1677146.XOyEREYx
Skipping duplicate data .coverage.meiner.1677164.XRNSnUjx
Skipping duplicate data .coverage.meiner.1677226.XiBDIRfx
Skipping duplicate data .coverage.meiner.1677298.XOgPYUkx
Skipping duplicate data .coverage.meiner.1677301.XeiQpwBx
Skipping duplicate data .coverage.meiner.1677304.XOVReXBx
Skipping duplicate data .coverage.meiner.1677307.XmMJpiXx
Skipping duplicate data .coverage.meiner.1677310.XPbFtktx
Skipping duplicate data .coverage.meiner.1677313.XLZgtfLx
Skipping duplicate data .coverage.meiner.1677325.XQGroyix
Skipping duplicate data .coverage.meiner.1677343.XnuHLfox
Name                                                        Stmts   Miss Branch BrPart  Cover   Missing
-------------------------------------------------------------------------------------------------------
datasalad/__init__.py                                           0      0      0      0   100%
datasalad/iterable_subprocess/__init__.py                       2      0      0      0   100%
datasalad/iterable_subprocess/iterable_subprocess.py          106      7     32      2    91%   37, 143-147, 153-158, 220->222
datasalad/iterable_subprocess/test_iterable_subprocess.py     212      2     88      3    98%   69, 144->141, 152
datasalad/runners/__init__.py                                   3      0      0      0   100%
datasalad/runners/exception.py                                 57      0     20      0   100%
datasalad/runners/iter_subproc.py                               8      0      0      0   100%
datasalad/runners/tests/__init__.py                             0      0      0      0   100%
datasalad/runners/tests/test_exception.py                      28      0      8      1    97%   69->88
datasalad/runners/tests/test_iter_subproc.py                   16      1      6      1    91%   27
datasalad/tests/__init__.py                                     0      0      0      0   100%
-------------------------------------------------------------------------------------------------------
TOTAL                                                         432     10    154      7    96%

So "user error" -- thanks for helping me sort this out! Maybe worth a note in the docs to help avoid the underlying confusion.

from hatch.

ofek avatar ofek commented on July 22, 2024

Thanks, I'll think about how I can make that clearer!

from hatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.