Comments (4)
Looks like cargo read-manifest
is deprecated, but cargo metadata --no-deps
(the replacement) is an improvement!
from neotest-rust.
Interesting. I think we'd have to update
neotest-rust/lua/neotest-rust/init.lua
Lines 216 to 217 in e4baa0b
cargo metadata
and parse the output to find the correct package (and its name). I think if we're going to do that, we should start caching the output of cargo metadata
now that we're calling it repeatedly...
I'm not sure when I'll have time to get to this, but that's how I'd approach it if you want to take a shot!
from neotest-rust.
I added the cache to cargo metadata
, so all that's left is updating the package name logic (and adding tests).
from neotest-rust.
Hi, that approach looks good to me, but would do cargo read-manifest
instead of cargo metadata
in this case
from neotest-rust.
Related Issues (20)
- Support workspaces
- neotest-rust is getting called instead of neotest-python
- Tests with `#[should_panic]` macro are ignored HOT 1
- Error attempt to get length of field 'testsuite' (a nil value) HOT 1
- Unable to parse the test HOT 4
- No Tests found HOT 4
- Tests are not detected if comment exists after #[test] attribute
- Failed to run test after recent upgrade. HOT 10
- Running a single test fails HOT 2
- Running/listing tests in a workspace with a root package fails HOT 3
- Running a single test breaks on fish
- Low performance in a large codebase and multi-crate workspace HOT 3
- Test cases from /target folder are extracted unnecessarily HOT 1
- Debug fails because `file_path` is nil HOT 4
- Running file doesn't work HOT 4
- Investigate using Nextest's experimental machine-readable JSON output instead of junit XML
- Feature request: watch support
- Issues with workspaces HOT 11
- Support for doctests?
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 neotest-rust.