Comments (10)
/assign
from youki.
Sorry I don't follow. For local unit test, you also run cargo test -- --nocapture
to see the error output in case test fails when developing. It works exactly the same.
from youki.
@utam0k I wasn't sure if you want to add --nocapture
to cargo test
on CI as a solution? This issue is asking for that.
from youki.
@utam0k I wasn't sure if you want to add
--nocapture
tocargo test
on CI as a solution? This issue is asking for that.
That may be fine for CI, but what about local execution unit tests...
from youki.
I think nocapture
can not meet the requirement of this issue.
https://doc.rust-lang.org/cargo/commands/cargo-test.html#display-options
It seems that the nocapture
option means do not capture the output of our tested binary
, something like println
in our code.
But this issue is looking for the output information by rust test
, something like which assert in which file is failed (The difference between two screenshots in the description.)
But maybe add nocapture
to CI is also a good advice.
from youki.
I agree with this. However, I don't think this is the root solution.
But maybe add nocapture to CI is also a good advice.
from youki.
It seems that the nocapture option means do not capture the output of our tested binary, something like println in our code.
But this issue is looking for the output information by rust test, something like which assert in which file is failed (The difference between two screenshots in the description.)
I may be misunderstanding the request for this issue. From the link, I read:
By default the Rust test harness hides output from test execution to keep results readable. Test output can be recovered (e.g., for debugging) by passing --nocapture to the test binaries:
The information about which assert failed in which line is exactly the info outputted by --nocapture
, in addition to the logs and println. There is also the -v
and -vv
flag to output additional info for the test build scripts and etc.
Anyhow, you seem to have a clear idea of what you'd like to accomplish in this issue, so I will leave you to it.
from youki.
The information about which assert failed in which line is exactly the info outputted by --nocapture, in addition to the logs and println. There is also the -v and -vv flag to output additional info for the test build scripts and etc.
I do have a try on add nocapture
to the test, and it won't help.(I deliberately change the code to make test failed)
The output here does not have which assert in which file failed
.
And if comment the tests code in tty.rs, the failure message show up again. Just like the failure message is eaten by the tty.
And here is the point I think.
Anyhow, you seem to have a clear idea of what you'd like to accomplish in this issue, so I will leave you to it.
Actually I have no idea how to deal with it right now, any suggestion is welcome.
from youki.
And if comment the tests code in tty.rs, the failure message show up again. Just like the failure message is eaten by the tty.
And here is the point I think.
Somehow I overlooked this line. Stupid me... You are right, what I mentioned is not a solution. The root cause is likely something else isolated to the tty tests.
from youki.
And if comment the tests code in tty.rs, the failure message show up again. Just like the failure message is eaten by the tty.
And here is the point I think.
Somehow I overlooked this line. Stupid me... You are right, what I mentioned is not a solution. The root cause is likely something else isolated to the tty tests.
ah never mind, the screen shot is too big to see the words. 😆
from youki.
Related Issues (20)
- Decide which runc to use for validating the rust oci test validation HOT 8
- add io priority e2e test HOT 1
- Unclear on how to run `libcontainer` based container HOT 4
- add different wasmruntime test to ci HOT 2
- Invite @lengrongfu as a reviwer HOT 5
- GitPod fails HOT 3
- README.md of integration test is not up-to-date HOT 2
- Vagrantfile does not work HOT 2
- Convert unwraps to `?` and improve logging HOT 3
- App using WasmEdge networking freezes when used with youki HOT 9
- Implement a crate like opencontainers/selinux HOT 11
- Update nix to 0.28.0 HOT 5
- Getting away from libseccomp HOT 5
- default debug level HOT 1
- On some systems, mounting cgroup v1 by `setup_emulated_subsystem` may missing some subsystems HOT 9
- Creating container without network namespace leads to mount error HOT 3
- Wrong directory when using a tenant container and w/ a mount namespace HOT 1
- `runc` differences given the same `config.json` HOT 2
- Packaging youki for openSUSE: How to disable the tests that need dbus? HOT 6
- Unexpected `chdir` invoked on container `init` and `start` HOT 9
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 youki.