-
Notifications
You must be signed in to change notification settings - Fork 67
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 module name wrong detection regression #79
Comments
I'll have a look once I get home |
@Dushistov @kwrooijen the way it was working is that emacs would i think what is going on is that the regexp before this patch was ignoring the @Dushistov i haven't tried it but i suspect if you I would say the way to get around this particular instance involves tracking if we are inside a string context and ignoring those entries. A better way to fix this would be to work over the |
just ran into another behavior i want in this mode for working on top of #78, if you run if you are outside of that module, but still in that same buffer all tests will run. so a simple fix here is to move point to the very beginning of the file and then find the first another option is to just search for |
You mean outside of the If |
yep -- like this, point is where the fn foo() {}
mod tests {
#[test]
| fn it_works() {}
} => function will run fn foo() {}
|
mod tests {
#[test]
fn it_works() {}
} => function will run
it is optional but afaik a strong convention. it won't be 100% reliable, so then i would suggest we start from the top of the file and find the closest |
If And run In my code I have no test function with the same name, |
Looks like #76 breaks test running thing for me.
I have
My code looks like this:
And after #76
cargo.el
tries to runswig_foreign_types_map::another_test
instead oftests::another_test
I revert
git diff 8a79f4e..5462994
(cd ~/.emacs.d/elpa/cargo-20190101.2043 && patch -p1 -R)
and all starts work again as expected
cc @ralexstokes @kwrooijen
The text was updated successfully, but these errors were encountered: