Conversation
|
Use insta crate pls (as i see you are doing snapshot testing) |
I thought insta crate is for unit test. However, this PR implements E2E test. |
So you want to use the final binary and use the show command then check output = snapshot? Well, the part before output can be a function that builds, runs and gives the output, then we use insta to do snapshotting. Yes its e2e, I am just asking to do it in rust using insta..... |
|
I don’t know the motivation to use Insta because we may have to change some APIs to test RustOwl using Insta. |
No we dont. Its simple. In rust, we call cargo to build it, then we use that binary to get output, then insta does its thing. |
|
But our RustOwl API doesn't written for insta E2E test. |
Ummmm a bit of confusion? rustowl api is not written for e2e test? as I said, it will run normal commands, get the output and send to insta macro (one line) get output and send to insta. About build, that test will build rustowl BY INVOKING COMMANDS. (Command::new) |
|
You should look at insta first. |
|
I already looked insta, and I couldn’t find any command execution macros. I think insta crate is not for E2E test. |
|
We will do command exceution with std (and maybe some other crates) and everything else before checking if it similar to snapshot (insta will do tha). |
|
Where will we do the command execution? The test requires that |
Test execution flow:
"ITS NOT RUSTOWL CODE I AM TELLING TO DO WHAT YOU ARE DOING IN THIS PR IN A TEST WITH RUST AND INSTA" |
|
So should I write test code in another new crate? |
No. Test macro |
|
Inside RustOwl crate?
|
|
Uhhhhhhhhh let me do it myself...... |
|
Okay, I will review it. |
|
I stop now. Lto in windows is not possible, even by rust. No cross lang lto, as we need an EXACT LLVM toolchain (which is another hard task). We keep on using normal no lto in windows. |
|
@cordx56 now review and merge |
Type Of Change