Skip to content

Configuring runtime test log for minitest through rake task #1022

@Ben3eeE

Description

@Ben3eeE

I am trying to even test group runtimes for minitest. We have two different CI jobs for minitest and we call this gems rake task in them. Because we have two different jobs running different tests I would want them to write a different runtime log.

I tried passing the --runtime-log argument in the rake task like this to write the log to a different filename.

      task unit: :environment do
        ci_db_setup
        Rake::Task['parallel:test'].invoke(nil, '^test/unit', nil, '--runtime-log tmp/parallel_runtime_unit.log')
      end

      task functional: :environment do
        ci_db_setup
        Rake::Task['parallel:test'].invoke(nil, '^test/functional', nil, '--runtime-log tmp/parallel_runtime_functional.log')
      end

But the setting is not respected and it still writes to the default location.

Is there some other way this can be configured?

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