-
Notifications
You must be signed in to change notification settings - Fork 258
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
adding line_number test + updating some testing infrastructure #619
Conversation
I think that the log method is not actually being called. Could somebody please let me know if I am creating a logger instance incorrectly? |
@Thomasdezeeuw Is it ok for me to ping you for help? |
Yes, sorry I don't have time to look at this today, maybe tomorrow. |
You need to call |
@Thomasdezeeuw Thank you! |
Do you know what might be causing MSRV to fail? I was also wondering, how does the test build script work if it's just printing things? (It seems the necessary lib_build attribute is never passed to the tests, so when I had Thank You! Your answers mean a lot to me! |
Hmm, that test infrastructure is all a bit tangled I think. I wonder if it would be easier to rename |
I can try and combine them. |
I think defining a struct with just the state we want to test would cover it. It would be difficult to try capture the whole record, like you suggested it’s full of borrowed data and there’s no built-in way to create a shared version of one. |
ed1149b
to
90edfc3
Compare
@KodrAus
Should I change my approach in order to avoid external dependencies or should I use lazy_static/once_cell/std::sync::LazyStatic (stabilized only in 1.70)? Also, will it be a problem if the tests will need to be executed sequentially? |
@DIvkov575 It might be easier if we just roll the line number tests into exactly the |
@KodrAus |
@KodrAus Otherwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working through this @DIvkov575! This looks good to me, and should help future efforts to improve our test coverage for this type of thing.
This infrastructure here is all quite old, and I think it's mostly organized this way to test the max level Cargo features. I think setting Nice job finding your way through this very non-standard piece of Rust! |
Thanks @DIvkov575 |
Thank you |
resolves #601