Giter VIP home page Giter VIP logo

Comments (6)

pdebuyl avatar pdebuyl commented on August 26, 2024 1

The testing is a bit minimal but I consider the issue closed until further notice :-)

from pyh5md.

pdebuyl avatar pdebuyl commented on August 26, 2024

This is a good idea. I am looking at the tests for active_papers_py, would you consider it a good example of what you are thinking for pyh5md?

from pyh5md.

khinsen avatar khinsen commented on August 26, 2024

Yes, that's what I'd like to see. You just type "nosetests" in the pyh5md directory and all tests are run. There are of course options to run only parts or do lots of other things, but the nice thing about nose is that writing tests and running all tests are both very simple operations.

from pyh5md.

pdebuyl avatar pdebuyl commented on August 26, 2024

I have the impression that nosetests relies on test definitions that are fully compliant with the standard library's unittest. Is that correct?

from pyh5md.

khinsen avatar khinsen commented on August 26, 2024

It's one-way: nose will happily run tests written for Python's unittest module, but it also has its own much more light-weight test format. Any Python module can be a test suite, with any function inside it whose name starts with 'test_' considered a test. These test functions use plain assert statements for verifying conditions.

from pyh5md.

pdebuyl avatar pdebuyl commented on August 26, 2024

I added a pytest based test. It is very easy and takes care of temporary directories.

You can have a look at https://github.com/pdebuyl/pyh5md/tree/1.0-dev

from pyh5md.

Related Issues (4)

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.