Comments (9)
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.
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.
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.
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.
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.
This item has been open for 30 days with no activity.
from holochain.
This item has been open for 30 days with no activity.
from holochain.
This item has been open for 30 days with no activity.
from holochain.
This item has been open for 30 days with no activity.
from holochain.
Related Issues (20)
- Check TOML formatting on CI
- Release automation can't handle self deps with a version
- Dry run releases are broken due to a missing label HOT 4
- The release automation produces TOML which is not correctly formatted
- A bad return value from a callback crashes the conductor HOT 2
- [Release automation] Fix toml formatting HOT 1
- Release automation dep `crate-util` requires newer Rust version 1.76
- Simplification of the release process HOT 1
- Review of Key Manager Browser Extension
- Review of Launcher with Key Management
- (Must have) Run the HoloFuel sweettest test
- Atomic Holonix updates HOT 1
- (Must have) Manual testing, using a happ that we know is reasonably reliable
- (Must have) Leave a conductor running for a longer period of time
- (Nice to have) Automated (or at least semi) testing, maybe with HoloFuel?
- (Medium) Wind Tunnel simple baseline
- [BUG] Unable to open Database file on Windows 10
- Holochain dependency, dependencies updates
- [Workflow] Remove integration workflow
- [Integrity] Write helper to collectively return missing dependencies from must_get calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holochain.