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
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
feat(runner): add beta support for using mocha as your test framework
This change adds limited support for using mocha as the test framework instead
of jasmine. Make the switch by using `--framework=mocha` on the command line
or adding `framework: 'mocha'` to the config. Tests will be run using the
BDD interface. The interface is adapted so that tests run asynchronously
without needing to call `done()`.
Note that there is currently no support for an assertion framework, so you will
need to require whichever assertion framework you prefer. This means there
is no adapter to make the assertions unwrap promises, so you will need to
resolve promises yourself and run the assertions afterwards.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ The Protractor runner is a binary which accepts a config file. Install protracto
31
31
# Run the line below to see command line options
32
32
protractor
33
33
34
-
You will need a *configuration file* containing setup info and *test files* containing the actual test scripts. The config file specifies how the runner should start webdriver, where your test files are, and global setup options. The test files use Jasmine framework, but other adapters may be added in the future.
34
+
You will need a *configuration file* containing setup info and *test files* containing the actual test scripts. The config file specifies how the runner should start webdriver, where your test files are, and global setup options. The test files use Jasmine framework by default (Mocha is supported in beta).
35
35
36
36
Create a configuration file - an example with detailed comments is shown in `node_modules/protractor/referenceConf.js`. Edit the configuration file to point to your test files.
0 commit comments