-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test refactor continued #1030
Test refactor continued #1030
Conversation
Creates the following output (for the functional tests):
The we would have three categories; unit, functional and end to end, and of course the doc tests. Seems pretty good to me. |
Cargo fmt fails with |
Cool! What happens if you remove the |
Then we can't import poll, as it will look for |
Well, what would happen if you eliminated both |
I'm stupid. I started with just having |
@carllerche you also ok with this layout? If so I'll update #1030 with this structure. |
Ok, rustfmt failed again but this this it's just a bug I think. |
I think its rust-lang/rustfmt#3572. |
@Thomasdezeeuw I'm fine w/ the structure, but how do you plan to deal w/ the rustfmt bug? |
I don't yet, I've just asked in rust-lang/rustfmt#3572 for a work around. Maybe we should just merge #1019 as is and move this structure if/when we find a work around or a fix. |
@Thomasdezeeuw Yeah, lets just merge #1019 and wait for a fix. Thanks for trying out this option 👍 |
cc189c0
to
0d188fc
Compare
I've force pushed some changes, these use a (too complicated) macro to set the path correctly for each file as a workaround for the rustfmt bugs. A downside is that I'm pretty sure that rustfmt doesn't reach and formats the files anymore, but at least it won't return an error. |
What you think about the macro approach? It isn't great, but I don't really see another way to get it to work currently. |
Up to you, but IMO it isn't worth going against the grain and I would just stick with #1019. |
This is the first step in changing the test structure into the following: * functional * end_to_end * regressions The begins with a function tests of Poll. This includes a workaround rustfmt bugs bugs #3572 and/or tokio-rs#1208.
0d188fc
to
8abd613
Compare
Rustfmt fails with yet anther issue, but I wanted to get some feedback first. @carllerche, @asomers what do you think of the new output. |
My vote is still to follow |
I like it. It's just what I had in mind. Too bad about that annoying rustfmt bug, though. |
The last commit works around the last rustfmt bug, however Azure doesn't seem to want to run. Any way to start it manually? |
I'm closing this for now, to many rebase conflicts. |
No description provided.