Skip to content

Equivalent of nose's --process-restartworker #6372

Description

@jiasli

In our project, we have a process-level cache. On Windows with nose test framework, we can use --process-restartworker to isolate each ScenarioTest in a different process. However, with pytest if multiple ScenarioTests are assigned to the same process, there will be conflicts in the cache.

With pytest, is there an equivalent of --process-restartworker? If --forked doesn't work on Windows, is it possible to just restart the process instead?

Also see:
https://stackoverflow.com/questions/48234032/run-py-test-test-in-different-process
https://stackoverflow.com/questions/45462374/mark-test-to-be-run-in-independent-process
https://stackoverflow.com/questions/51187188/pytest-run-each-test-in-a-separate-process

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: windowswindows platform-specific problemtype: questiongeneral question, might be closed after 2 weeks of inactivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions