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/integration-tests.md
+13-17Lines changed: 13 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
## Integration Tests
2
2
3
-
Debugger.html integration test are end-to-end tests that simulate a user debugging an application.
3
+

4
4
5
-
The tests open two browser tabs, the debuggee and debugger, and go through the steps of debugging the debuggee.
5
+
The integration tests open two browser tabs, debuggee and debugger, and go through the debugging steps.
6
6
7
-
Here's one test that pauses while creating a Todo.
7
+
Here's one test that debugs todomvc:
8
8
9
9
```js
10
10
debugPage("todomvc");
@@ -18,26 +18,27 @@ stepOver();
18
18
stepOut();
19
19
```
20
20
21
-
#### Helpful Information
22
-
+`public/js/test/integration` - tests folder
23
-
+`public/js/test/cypress/commands` - test commands folder
21
+
The tests are driven with javascript [events](https://developer.mozilla.org/en-US/docs/Web/API/Document/createEvent)
22
+
like click, keypress, or change that simulate a user interacting with the debugger. All of the events are wrapped with
23
+
debugger specific commands like `stepIn` or `selectSource`[commands](https://github.com/jlongster/debugger.html/blob/master/public/js/test/cypress/commands/debugger.js#L110-L112).
24
24
25
25
#### Running tests
26
26
+`npm run firefox` - launch firefox
27
27
+`cypress run` - runs tests headlessly
28
28
+`cypress open` - opens cypress app
29
+
+`public/js/test/integration` - tests folder
30
+
+`public/js/test/cypress/commands` - test commands folder
31
+
29
32
30
-
**Installing Cypress**
31
-
Cypress needs to be installed before tests can be run.
0 commit comments