-
Notifications
You must be signed in to change notification settings - Fork 722
Add v2 version of fake driver #4222
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
Conversation
…lt unless user explicitly forces 16
… for 16 color mode
Fixes for VTS enabled
Behold a green tick! |
What's wrong is the test sending a 'f' instead a 'F'. What's differentiate upper from lower case is the shift flag. So, you are doing the same wrong. Only replace the test with 'F'. |
The PR tznind#184 leverage the hard coded |
Fix SendKeys method and add extension to unit test
V2 fake driver fix
I think iteration is running on more than 1 thread. I am exploring in my We can see for any fluent test it can crash in many ways in layout and in draw. I need to add thread id tracking to main loop to see if it is ever hit from more than 1 thread. Critically i can trigger the error just running a single test over and over so its not knock on effects of multiple tests at once See: #4225 I will start by detecting any time iteration is on other thread id, but then also look at layout or draw. If any of them is running on non main UI thread it is bad. |
One way I used to resolve the fluent unit tests, is in the PR #4210. |
@tznind please fix conficts and I'll review. |
This work stands alone and is good but will be further extended in #4225 where I deal with all the secret multi threading issues it turns out there are in the fluent test. Basically any time you do anything on the 'test' thread then you might trip over what is going on in the 'run thread' that the fluent sets up. I fix that by removing frame limiter on the main loop so it iterates constantly. That is still WIP though. |
@tznind Please resovle conflicts. |
This is subset of iteration-zero #4225 so will close for now as that is better PR to do and has no conflicts |
Fixes
FakeDriver
with av2fake
or equivalent #3947Requirements
Support creating
Application
andDriver
level tests for v2.[SetupFakeDriver]
[AutoInitShutdown]
These tests need:
Implementation
To enable this workflow we first need to pull all the Dependency Injection elements out into a shared provider factory. This lets us create classes but swap out Mocks and fakes as needed.
This lets us inject fakes.
Test Assumption Changes
Run
multiple views one after the other without first disposing the first. This is not a sensible activity and so part of v2.Pull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)