Skip to content

Provide a public API for manually advancing test execution  #1228

@mdebbar

Description

@mdebbar

Tell us about your runtime:

  • QUnit version: 2.4.0
  • What environment are you running QUnit in? (e.g., browser, Node): both
  • How are you running QUnit? (e.g., script, testem, Grunt): testem

What are you trying to do?

I'm trying to run the tests and pause after each test. Then I need to manually resume the tests.

I've tried using QUnit.config.blocking = true; after a test is finished. It works as expected. The tests are paused. But there's no way to tell QUnit to resume the execution of tests. Setting QUnit.config.blocking to false doesn't help. Looking at this code it seems like QUnit stops polling for the queue when blocking is set to true.

What are you proposing?

Expose the advance method from src/core/processing-queue.js as a public API. Maybe add some checks to make sure advance is used correctly (e.g. it can't be called when a test is already running).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions