Giter Site home page Giter Site logo

Comments (9)

jost-s avatar jost-s commented on May 29, 2024 1

Got it, thanks. It's specifically with tarpaulin that it doesn't work and moving all integration tests the proper tests files would resolve that issue.

from holochain.

ThetaSinner avatar ThetaSinner commented on May 29, 2024

Note that the tarpaulin and test commands have filters but they are a bit limited. I can run all the tests in a module tree with test or a specific test with tarpaulin but I can't run arbitrary sets of tests. Using nextest is a bit better but it's still a fiddle selecting out the tests you want to exclude integration tests

from holochain.

jost-s avatar jost-s commented on May 29, 2024

I don't understand what you're trying to do. Please give an example using cargo test of which unit tests you'd like to run, omitting integration tests.

from holochain.

ThetaSinner avatar ThetaSinner commented on May 29, 2024

To add a specific example, I am testing with this command RUST_BACKTRACE=1 RUST_LOG=info cargo test --lib core::workflow::sys_validation_workflow-- --nocapture which lets me run all the sys validation tests. I pass --lib to cargo test because it speeds up the test run so much to not have to recompile the integration test binaries every time you want change test code in Holochain. I can't do the same thing with tarpaulin though because although it supports the --lib flag it doesn't directly pass your filter to cargo test. Plus the --lib flag is less effective when it has to compile a bunch of integration tests anyway.

I'd be happy enough if I didn't have to filter at all and could use run the unit tests with --lib which is what that flag is supposed to do. But we've got a mixture of unit tests and functional/integration tests in the lib source code.

from holochain.

ThetaSinner avatar ThetaSinner commented on May 29, 2024

I should also say, this isn't high priority for me - but I think we should try to address it as part of the sweettest uplift when we get to that

from holochain.

github-actions avatar github-actions commented on May 29, 2024

This item has been open for 30 days with no activity.

from holochain.

github-actions avatar github-actions commented on May 29, 2024

This item has been open for 30 days with no activity.

from holochain.

github-actions avatar github-actions commented on May 29, 2024

This item has been open for 30 days with no activity.

from holochain.

github-actions avatar github-actions commented on May 29, 2024

This item has been open for 30 days with no activity.

from holochain.

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.