You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/QUnit/module.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,7 @@ The module's callback is invoked with the test environment as its `this` context
59
59
60
60
## Exclusive tests
61
61
62
-
When you are debugging your code, you will often need to _only_ run a subset of tests. You can append `only` to `QUnit.module` to specify which module you want to run.
63
-
64
-
Note that if more than one module was defined using `QUnit.module.only()`, only the first one will run.
62
+
When you are debugging your code, you will often need to _only_ run a subset of tests. You can append `only` to `QUnit.module` to specify which module(s) you want to run.
65
63
66
64
It works the same way `QUnit.only()` does for tests.
Copy file name to clipboardExpand all lines: docs/QUnit/only.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
layout: default
3
3
title: only
4
-
description: Adds a test to exclusively run, preventing all other tests from running.
4
+
description: Adds a test to exclusively run, preventing any other tests not defined with `QUnit.only()` from running.
5
5
categories:
6
6
- main
7
7
---
8
8
9
9
## `QUnit.only( name, callback )`
10
10
11
-
Adds a test to exclusively run, preventing all other tests from running.
11
+
Adds a test to exclusively run, preventing any other tests not defined with `QUnit.only()` from running.
12
12
13
13
| parameter | description |
14
14
|-----------|-------------|
@@ -23,9 +23,7 @@ Adds a test to exclusively run, preventing all other tests from running.
23
23
24
24
### Description
25
25
26
-
Use this method to focus your test suite on a specific test. `QUnit.only` will cause any other tests in your suite to be ignored.
27
-
28
-
Note that if more than one `QUnit.only` is present only the first instance will run.
26
+
Use this method to focus your test suite on specific tests. `QUnit.only` will cause any other tests in your suite to be ignored.
29
27
30
28
This is an alternative to filtering tests to run in the HTML reporter. It is especially useful when you use a console reporter or in a codebase with a large set of long running tests.
0 commit comments