Giter VIP home page Giter VIP logo

Comments (7)

andlaus avatar andlaus commented on July 19, 2024

@rolk I've created a CDash project for opm-core, see

http://opm-project.org/CDash/index.php?project=opm-core

if you don't want to use it, I will remove it again.

from opm-core.

atgeirr avatar atgeirr commented on July 19, 2024

I'm not familiar with CDash, but I assume that it can be used to automatically build and test the library. However, I could not figure out if that had been set up. It would be a good thing to have, certainly.

We do build tests internally with Jenkins, but any additional testing is good!

from opm-core.

rolk avatar rolk commented on July 19, 2024

I could need some guidance on how the tests are run; about one third of them uses Boost.Test, but many of the remaining don't even return a status value!

from opm-core.

bska avatar bska commented on July 19, 2024

We currently do not run any tests automatically. At best, the tests that use Boost.Test are invoked manually, e.g.,

$ ./test_wells
Running 3 test cases...

*** No errors detected

All other executables in the tests directories aren't really tests in the language of "unit tests". They are more akin to quick (manual) checks that we get expected behaviour. For instance, the test_sf2p executable simply computes mobilities and mobility derivatives at a number of saturation points to verify (by inspection) that a particular fluid model behaves as expected. I think many of these should simply be removed and the remaining converted into proper tests.

from opm-core.

rolk avatar rolk commented on July 19, 2024

We can of course run the tests and then grep for key items that determines if they are accurate. However, I think Boost.Test unit tests (or some other unit testing framework -- Boost.Test already being used) are the best approach, because the build system could just iterate all files and run them.

I suggest that I move everything that does not currently run automatically into a separate directory (for later cleanup, whenever that will be) and then automate the rest. I think it would make it easier to write more unit tests in the future.

from opm-core.

bska avatar bska commented on July 19, 2024

@rolk stated:

I suggest that I move everything that does not currently run automatically into a separate directory ... and then automate the rest

Yes, please. That would be great.

from opm-core.

rolk avatar rolk commented on July 19, 2024

This issue should be fixed as of commit ade22d2

To add a new unit test, put a file called test_XXX.cpp in the directory tests/. It will be automatically picked up by the build system. It should use Boost.Test to provide an acceptable interface to the testing framework.

from opm-core.

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.