GithubHelp home page GithubHelp logo

code cov?? whahhhhhhtttttt? about earthpy HOT 4 CLOSED

earthlab avatar earthlab commented on June 8, 2024
code cov?? whahhhhhhtttttt?

from earthpy.

Comments (4)

mbjoseph avatar mbjoseph commented on June 8, 2024

Codecov measures the coverage of the unit tests, e.g., what fraction of code is executed in the process of running the tests (more here: https://en.wikipedia.org/wiki/Code_coverage). Currently coverage is very low, since we're not actually hitting any of the meaningful code in the package (e.g., the code inside of our class and function definitions).

from earthpy.

lwasser avatar lwasser commented on June 8, 2024

ok so here is what i don't understand @mbjoseph . that is what i thought it might be doing BUT i'm confused as to where there is any coverage! ? We have no running unit tests right now that travis runs!

I"m also going to open up an issue about data as i think we definitely need to have some small files to test rasterio given it's all about import and export (IO) files!

Thank you so much!

from earthpy.

mbjoseph avatar mbjoseph commented on June 8, 2024

@lwasser there is some coverage because we import earthpy in the unit tests. To see what lines are being run you can go here: https://codecov.io/gh/earthlab/earthpy/tree/master/earthpy

So, we are running all of __init__.py and then essentially just defining our functions and methods in the io.py, spatial.py, and utils.py, but if you go to see what lines within those scripts are being run (https://codecov.io/gh/earthlab/earthpy/src/master/earthpy/spatial.py) you can see that the functions are not executed yet - they are only defined.

from earthpy.

lwasser avatar lwasser commented on June 8, 2024

ok i think i follow now @mbjoseph i'll close this for the time being because we are about to get a bunch of PR's from students but will reopen if i have more questions!!

from earthpy.

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.