-
Notifications
You must be signed in to change notification settings - Fork 516
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
[WIP] ATC, ApplicationTestCase #235
base: master
Are you sure you want to change the base?
Conversation
As mentioned, its pretty rough right now, but the goal iss to provide an features for making testing features that require a full running application quick and easy.
New wrappers invoke test methods within target widget on a test-by-test basis. test_atc is accomodating, test_frame not yet addressed. cored out most of TestWidget due to no-longer-necessary.
works as anticipated.
@RobinD42 Any suggestions for addressing the current launch protocol? As mentioned in the second item in TODO. Details can be found in unittests/atc.py |
…ld the timeout occur
…ly long timeout test.
This is a very cool idea and I like how it is shaping up. Definitely looking forward to it becoming more generally useful. A couple quick suggestions after my first pass over the code and example:
|
On Windows and OSX you can probably start things with just a The difference is due to the X Window not being created as soon as the client-side GUI APIs are called. It needs to wait until the Xlib commands have been sent to the server and it responds back, which is when wx sends the |
…ved it to top of module for in-module usage. the exception-protection is now applied to OnTest, meaning that the test widget's test_ methods will automatically have testCritical's protection
Rearranged some code to put user-exposed methods and classes first added dunders to methods not intended to be user-accessible.
… procedures take care of the rest
…ly showing the Frame
…e, similar to what occurs in wtc
…sting framing accordingly.
When this PR is finished go ahead and remove the wip label and add the needs-review label. Thanks. |
I'm dropping TestSuite support as a goal for a couple reasons: Right now I'm not sure how useful additional decorators will be. testCritical covers unexpected failures, but an endsTest decorator could be misleading and cause false failures. I personally believe it would be better to have ATC obviously misbehave (hang) rather than falsify tests. If some kind of demand arises for them later I'll take another look. |
This pull request tracks completion progress for a new tool to aid in unit testing.
ATC aims to make creating unit tests that require a full running application quick and easy with minimal compromise.
This is the list of required features and standards that must be fulfilled before a formal Pull Request will be made:
This is a general TODO list for changes that need to be completed as well
Ensure ATC plays nice with custom TestSuitesCreate decorator to minimize usage of test(Passed/Failed)Polish!(Well this was just a bad goal... Cleaning up is never done!)Please feel free to add any new requirements as seen fit.