Skip to content
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

Make tests runnable on AppVeyor CI and environment-specific tests be skipped #298

Merged
merged 40 commits into from
Jun 9, 2022

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Jun 8, 2022

related to #267

This PR has taken over from #271 by @dmwyatt.

With this change, tests can run on AppVeyor CI(and perhaps on developer machines).

The goal of this PR as is @dmwyatt's comment,

It seems like it'd be better to have a test suite that runs but doesn't cover everything than a test suite that doesn't run but hypothetically covers more.
#267 (comment)

Overview of changes

links to issue/PR comments.

Skips environment-specific tests

Fixes failed or warned tests

dmwyatt added 30 commits June 5, 2022 08:45
This module causes the whole test suite to fail.  Why?  I don't know!
These tests take many minutes to run on my machines. This is too long for unit tests!

They either need discarded or moved to some sort of integration testing suite that can be run outside of the unit test suite.
I don't understand what this was for, but the tests pass without it.

That doesn't mean the tests are correct, but I don't understand the problem being solved by this removed line.
Need to figure out if that is a good idea or if there is an alternative way to test this functionalitty that does not require admin.
I'm not sure of the utility of these tests.

 1. Dozens of them fail on my machine.
 2. The tests that get run will vary from machine to machine because of the way the tests are built.
 3. I think that maybe more tests the other libraries on the system rather than tests comtypes itself.
15+ years ago Thomas Heller created a test running system that could enable or disable all sorts of different tests based upon various strings in this array.

We have better solutions for this nowadays which the test suite should evolve to use.  For now we'll use the `*` to enable all tests in this bespoke test running system.
These need investigated in more detail.
Needs further investigation.
The L suffix doesn't matter for python2, but causes python3 to not parse the file.
Both python2.7 and 3 support the b"x" format.
If this test is necessary we should introduce dev dependencies to comtypes.
Probably should move this to github issues once it's fleshed-out some.
@dmwyatt
Copy link
Contributor

dmwyatt commented Jun 8, 2022

Thanks for picking up the baton on this, @junkmd. I got too busy to troubleshoot the AppVeyor stuff.

vasily-v-ryabov added a commit to vasily-v-ryabov/pywinauto that referenced this pull request Jun 9, 2022
@vasily-v-ryabov vasily-v-ryabov merged commit 7f7c283 into enthought:master Jun 9, 2022
@junkmd junkmd deleted the make_minimun_tests_runnable branch June 9, 2022 12:43
@junkmd
Copy link
Collaborator Author

junkmd commented Jun 9, 2022

@dmwyatt
You're welcome.

Your discussion of the testing policy in #267 was very interesting and helpful to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants