Skip to content

Investigate how to run (most?) PyCOMTest in CI #2492

@Avasam

Description

@Avasam

In #2467 , we (@Mscht and @geppi) first noticed that a few tests we would've expected to run and fail... aren't.

In #2491 (comment) I dig further, and here's what I found:

About the reason the CI doesn't run these tests, I think it's because PyCOMTest is a level 2 test

custom_test_cases = [
# Level 1 tests.
[],
# Level 2 tests.
[
PyCOMTest,
PippoTest,
],
# Level 3 tests
[],
# Level 4 tests.
[],
]
whilst only level 1 tests are run on the CI
# win32com
maybes = [
os.path.join(directory, "win32com", "test", "testall.py")
for directory in [os.path.join(project_root, "com")] + site_packages
]
extras = remains + ["1"] # only run "level 1" tests in CI
find_and_run(maybes, extras)

As @mhammond says:

That seems like a decision which aged poorly :)

Let's see if we can get more tests running on the CI. I'm opening this issue to centralize conversation around this and track blockers, progress, solutions, etc.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions