-
Notifications
You must be signed in to change notification settings - Fork 157
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
Revert "Fix move to line start in multi-line history entries" #704
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #704 +/- ##
==========================================
- Coverage 56.09% 49.32% -6.78%
==========================================
Files 46 46
Lines 7993 7998 +5
==========================================
- Hits 4484 3945 -539
- Misses 3509 4053 +544
|
We need to be able to run these tests on all (3) of our platforms including Windows and Mac... Currently the CI is not set up to do this... I would be willing to run the tests on my Mac once they are fixed and I am sure someone would be willing to run them on Windows as well prior to re-landing these tests... Thanks ! |
I don't think these tests belong in Engine. We want to keep the Engine code clean and just keep this one test in there that has been there for awhile. #[test]
fn thread_safe() {
fn f<S: Send>(_: S) {}
f(Reedline::create());
} I think we should start a test directory under the top level Reedline and put them there... The following comments were observed on a Mac. There appears to be some strange race conditions which are caused by running the tests in parallel They pass some of the time in the cargo test runner (with no issue) but have more serious issues in nextest which is not a good sign. |
I am going to experiment with refactoring the tests and getting rid of the rstest functionality. This may be blocking nextest which is what I am seeing... I think by refactoring the tests to have individual tests with just the different type of input scenarios would be simpler to test longer term. Right now all of the cases are bundled into two tests with 3 cases each... This makes it challenging to figure out what tests are more flaky than others and also we can't currently IGNORE the individual CASES. Also --- for some reason and this is a question for folks reading this.... I can NOT FIGURE OUT how to IGNORE rstests --- if anyone knows how to do this let me know ! thanks... #[ignore] It works with regular tests but not with rstests which is kind of annoying... |
That was my suspicion as well (multiple tests all trying to read/write from the terminal). But even when running the tests serially ( A more future-proof solution is to use |
after reverting the tests run fine on my mac too with the exception of the |
Reverts #584
This is causing odd test behavior like ansi escapes, seeing reedline prompts in the middle of testing, leaving the terminal in a raw state.
@boathouse2112 If you can find a fix for this it would be great!!
These are the two test commands that I run and see the problems.
and