Skip to content

Pytest: one test timing out should not affect the other tests #311

@hhc97

Description

@hhc97

re-opened from: MarkUsProject/Markus#5567

I understand this will require infrastructure changes in the backend, so I'm lodging this report with hopes that it will eventually be implemented in the future.

Currently, if you run a set of tests like this on Markus:
image
Because the third test will hit the runtime limit, all tests for this test suite get assigned a grade of 0. However, the desired behaviour is that the test that times out gets a grade of 0, but the other tests run as expected.

The reason for requesting this fix is because it wastes precious instructor time to go run these tests manually for the students that timed out so that they can get part marks for the tests that do pass.

This may also be a limitation of PyTest, but with some tinkering I'm sure there's a fix for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions