Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,26 @@ All files | 100 | 100 | 100 | 100 | |

*Note: The “tests failed” line appears twice because it is displayed once at the end of each test suite, then again at the end of the entire test run with the total count. Since we only have one test suite, the two values are identical.*

These same tests can be run directly within a Web browser by navigating to `http://path/to/intern-tutorial/node_modules/intern/client.html?config=tests/intern`. (In fact, you don’t need Node.js to be installed at all to use `client.html`.)
If `intern-tutorial` is within the scope of an http server, these same tests can be run directly within a web browser by navigating to `http://path/to/intern-tutorial/node_modules/intern/client.html?config=tests/intern`. You don’t actually need Node.js to be installed at all to use `client.html`.

#### Example using python SimpleHTTPServer.

yourself@vm:~$cd ~/tryout
yourself@vm:~/tryout$ tree -L 2
.
└── intern-tutorial
   ├── app
   ├── index.html
   ├── node_modules
   ├── package.json
   ├── README.md
   └── tests
yourself@vm:~/tryout$ python -m SimpleHTTPServer 8080

To see the greeting page simply open [http://localhost:8080/intern-tutorial/](http://localhost:8080/intern-tutorial/).

To **test** the greeting page go to [http://localhost:8080/intern-tutorial/node_modules/intern/client.html?config=tests/intern](http://localhost:8080/intern-tutorial/node_modules/intern/client.html?config=tests/intern).


## Step 4: Write a functional test

Expand Down