-
Notifications
You must be signed in to change notification settings - Fork 775
Provide a public API for manually advancing test execution #1228
Copy link
Copy link
Closed
Labels
Description
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).
Reactions are currently unavailable