Skip to content

Deal with parallel execution of test cases #22

@Genki-S

Description

@Genki-S

Currently, when test cases are executed in parallel (like with parallelize_me! of MiniTest), mapping file is read and written at the same time and the file becomes corrupt.

I noticed this when I was trying TTNT in actionpack directory of rails/rails. The parallelization was specified here and when I comment it out, rake ttnt:test:anchor finished successfully (without commenting out, mapping file became corrupt).

I have 2 options for now:

  1. Disable parallelize_me! somehow
  2. Lock mapping file and hope parallelized executions stop when trying to access locked file

I think users can make tests run in parallel even without parallelize_me!, so second approach seems better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions