Giter Site home page Giter Site logo

Comments (2)

rcarriga avatar rcarriga commented on August 17, 2024 1

I believe this is a vim-test issue. You just need to update the regex used to match the namespace in the cargo file here https://github.com/vim-test/vim-test/blob/master/autoload/test/rust/cargotest.vim#L8. They'll be happy to take a PR, just make sure to add a test to handle the new case 😄

from vim-ultest.

russ-dm avatar russ-dm commented on August 17, 2024

If I run the command:

cargo test -- -Z unstable-options --format json

I get the results:



{
  "type": "suite",
  "event": "started",
  "test_count": 3
}
{
  "type": "test",
  "event": "started",
  "name": "my_other_specific_tests::it_works"
}
{
  "type": "test",
  "event": "started",
  "name": "my_second_specific_tests::it_works"
}
{
  "type": "test",
  "event": "started",
  "name": "my_specific_tests::it_works"
}
{
  "type": "test",
  "name": "my_second_specific_tests::it_works",
  "event": "ok"
}
{
  "type": "test",
  "name": "my_other_specific_tests::it_works",
  "event": "failed",
  "stdout": "thread 'my_other_specific_tests::it_works' panicked at 'assertion failed: `(left == right)`\n  left: `2`,\n right: `4`', src/lib.rs:25:9\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n"
}
{
  "type": "test",
  "name": "my_specific_tests::it_works",
  "event": "failed",
  "stdout": "thread 'my_specific_tests::it_works' panicked at 'assertion failed: `(left == right)`\n  left: `2`,\n right: `4`', src/lib.rs:6:9\n"
}
{
  "type": "suite",
  "event": "failed",
  "passed": 1,
  "failed": 2,
  "ignored": 0,
  "measured": 0,
  "filtered_out": 0,
  "exec_time": 0.000321702
}

I put this here wondering if you think it's simpler making another test runner based on this command?

from vim-ultest.

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.