GithubHelp home page GithubHelp logo

Comments (6)

epage avatar epage commented on July 30, 2024 1

I think I missed the update on which crate. It looks like you are using assert_cmd for unit/whitebox tests (in src/), rather than integration/blackbox tests (in tests/). I do not believe the binary is guaranteed to be compiled at that. When not overriding the directory, I think it works just because something else had left behind an executable.

This is documented in the limitations

Going ahead and closing assuming this is the root cause. Feel free to ask for this to be re-opened if something still needs addressing.

from assert_cmd.

epage avatar epage commented on July 30, 2024

Thanks for reporting this!

A workaround would be to use escargot to get the binary.

I might not have time for a couple of days to dig into this if you weren't planning to. Is this blocking you or is that workaround insufficient until then?

And apparently, there are some broken links in the docs, so I created #118

from assert_cmd.

chevdor avatar chevdor commented on July 30, 2024

Is this blocking you or is that workaround insufficient until then?

This is not blocking me at all for now, no worries. I disabled my tests for now but I will be happy to enable them again :)

from assert_cmd.

epage avatar epage commented on July 30, 2024

I wonder if there is a platform or rustc specific aspect to this.

I just ran

assert_cmd $ TMPDIR=/Users/edpage/src/tmp/ CARGO_TARGET_DIR=/Users/edpage/src/tmp/ cargo test

(the TMPDIR is to workaround an IT thing)

assert_cmd on a Mac with 1.51.0 passes tests that lookup and run a binary included in assert_cmd (bin_fixture).

from assert_cmd.

epage avatar epage commented on July 30, 2024

Either way, I expect #120 to help

from assert_cmd.

chevdor avatar chevdor commented on July 30, 2024

Either way, I expect #120 to help

It may help in some cases but I tested again today and that does not seem to fix the issue.

from assert_cmd.

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.