Coder Social home page Coder Social logo

Run tests with runtests about pysm_public HOT 2 CLOSED

bthorne93 avatar bthorne93 commented on September 13, 2024
Run tests with runtests

from pysm_public.

Comments (2)

rainwoodman avatar rainwoodman commented on September 13, 2024

Yes. If you decorate a test with MPITest, then it will be tested with a bunch of communicators.
If you don't then it will be run symmetrically on on ranks.

Some examples are in:

https://github.com/rainwoodman/pmesh/tree/master/pmesh/tests

test-domain is fully of MPI tests. test-window is full of non-mpi tests. (You can also mix them in the same file, but that's probably not a good design decision).

The other 'feature' of run-tests.py is that it forces you to make sure the package is fully installable; it installs before testing.

Therefore for finding the tests, you must specify how to install them in setup.py. I find it easiest to install the tests as a subpackage of the main package. e.g. https://github.com/rainwoodman/pmesh/blob/master/setup.py#L49

(don't forget init.py)

There are other "cleaner" ways to install the tests, e.g. with a MANIFEST.in file, but more troublesome.

I shall add some information about this in README.

from pysm_public.

zonca avatar zonca commented on September 13, 2024

implemented in #18

from pysm_public.

Related Issues (18)

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.