Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 59bfe8e

Browse files
committedApr 15, 2013
docs(tutorial): testacular renamed to karma
Replaced instances of 'Testacular' with 'Karma' to reflect name change of test runner. Replaced instances of 'http://vojtajina.github.com/testacular' with 'http://karma-runner.github.io/' to reflect dedicated page for Karma Test Runner. Added location of config file needed to start the Karma server. This is still labeled 'testacular.conf.js' and needs file name to be updated in the phone example repo.
1 parent a748410 commit 59bfe8e

10 files changed

+27
-26
lines changed
 

‎docs/content/misc/contribute.ngdoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ made available a local web server based on Node.js.
174174
<a name="unit-tests"></a>
175175
## Running the Unit Test Suite
176176

177-
Our unit and integration tests are written with Jasmine and executed with Testacular. To run all of the
177+
Our unit and integration tests are written with Jasmine and executed with Karma. To run all of the
178178
tests once on Chrome run:
179179

180180
grunt test:unit
@@ -188,12 +188,12 @@ Note there should be _no spaces between browsers_. `Opera, Firefox` is INVALID.
188188
During development it's however more productive to continuously run unit tests every time the source or test files
189189
change. To execute tests in this mode run:
190190

191-
1. To start the Testacular server, capture Chrome browser and run unit tests, run:
191+
1. To start the Karma server, capture Chrome browser and run unit tests, run:
192192

193193
grunt autotest:jqlite
194194

195195
2. To capture more browsers, open this url in the desired browser (url might be different if you have multiple instance
196-
of Testacular running, read Testacular's console output for the correct url):
196+
of Karma running, read Karma's console output for the correct url):
197197

198198
http://localhost:9876/
199199

‎docs/content/tutorial/index.ngdoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ and follow the instructions for setting up your computer.
5454
<div class="tabbable" show="true">
5555
<div class="tab-pane well" id="git-mac" title="Git on Mac/Linux">
5656
<ol>
57-
<li><p>You will need Node.js and Testacular to run unit tests, so please verify that you have
57+
<li><p>You will need Node.js and Karma to run unit tests, so please verify that you have
5858
<a href="http://nodejs.org/">Node.js</a> v0.8 or better installed
5959
and that the <code>node</code> executable is on your <code>PATH</code> by running the following
6060
command in a terminal window:</p>
6161
<pre>node --version</pre>
62-
<p>Additionally install <a href="http://vojtajina.github.com/testacular">Testacular</a> if you
62+
<p>Additionally install <a href="http://karma-runner.github.io/">Karma</a> if you
6363
don't have it already:</p>
64-
<pre>npm install -g testacular</pre>
64+
<pre>npm install -g karma</pre>
6565
<li><p>You'll also need Git, which you can get from
6666
<a href="http://git-scm.com/download">the Git site</a>.</p></li>
6767
<li><p>Clone the angular-phonecat repository located at <a
@@ -81,14 +81,14 @@ to run <code>scripts/web-server.js</code>, a simple bundled http server.</p></l
8181

8282
<div class="tab-pane well" id="git-win" title="Git on Windows">
8383
<ol>
84-
<li><p>You will need Node.js and Testacular to run unit tests, so please verify that you have
84+
<li><p>You will need Node.js and Karma to run unit tests, so please verify that you have
8585
<a href="http://nodejs.org/">Node.js</a> v0.8 or better installed
8686
and that the <code>node</code> executable is on your <code>PATH</code> by running the following
8787
command in a terminal window:</p>
8888
<pre>node --version</pre>
89-
<p>Additionally install <a href="http://vojtajina.github.com/testacular">Testacular</a> if you
89+
<p>Additionally install <a href="http://karma-runner.github.io/">Karma</a> if you
9090
don't have it already:</p>
91-
<pre>npm install -g testacular</pre>
91+
<pre>npm install -g karma</pre>
9292
</li>
9393
<li><p>You'll also need Git, which you can get from
9494
<a href="http://git-scm.com/download">the Git site</a>.</p></li>

‎docs/content/tutorial/step_02.ngdoc

+7-6
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,25 @@ http://pivotal.github.com/jasmine/ Jasmine home page} and on the {@link
146146
https://github.com/pivotal/jasmine/wiki Jasmine wiki}.
147147

148148
The angular-seed project is pre-configured to run all unit tests using {@link
149-
http://vojtajina.github.com/testacular/ Testacular}. To run the test, do the following:
149+
http://karma-runner.github.io/ Karma}. To run the test, do the following:
150150

151151
1. In a _separate_ terminal window or tab, go to the `angular-phonecat` directory and run
152-
`./scripts/test.sh` to start the Testacular server.
152+
`./scripts/test.sh` to start the Karma server (the config file necessary to start the server
153+
is located at `./config/testacular.conf.js`).
153154

154-
2. Testacular will start a new instance of Chrome browser automatically. Just ignore it and let it run in
155-
the background. Testacular will use this browser for test execution.
155+
2. Karma will start a new instance of Chrome browser automatically. Just ignore it and let it run in
156+
the background. Karma will use this browser for test execution.
156157

157158
3. You should see the following or similar output in the terminal:
158159

159-
info: Testacular server started at http://localhost:9876/
160+
info: Karma server started at http://localhost:9876/
160161
info (launcher): Starting browser "Chrome"
161162
info (Chrome 22.0): Connected on socket id tPUm9DXcLHtZTKbAEO-n
162163
Chrome 22.0: Executed 1 of 1 SUCCESS (0.093 secs / 0.004 secs)
163164

164165
Yay! The test passed! Or not...
165166

166-
4. To rerun the tests, just change any of the source or test files. Testacular will notice the change
167+
4. To rerun the tests, just change any of the source or test files. Karma will notice the change
167168
and will rerun the tests for you. Now isn't that sweet?
168169

169170
# Experiments

‎docs/content/tutorial/step_03.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ To run the end-to-end test, open one of the following in a new browser tab:
122122
`http://localhost:[port-number]/[context-path]/test/e2e/runner.html`
123123
* casual reader: {@link http://angular.github.com/angular-phonecat/step-3/test/e2e/runner.html}
124124

125-
Previously we've seen how Testacular can be used to execute unit tests. Well, it can also run the
125+
Previously we've seen how Karma can be used to execute unit tests. Well, it can also run the
126126
end-to-end tests! Use `./scripts/e2e-test.sh` script for that. End-to-end tests are slow, so unlike
127-
with unit tests, Testacular will exit after the test run and will not automatically rerun the test
127+
with unit tests, Karma will exit after the test run and will not automatically rerun the test
128128
suite on every file change. To rerun the test suite, execute the `e2e-test.sh` script again.
129129

130130
This test verifies that the search box and the repeater are correctly wired together. Notice how

‎docs/content/tutorial/step_04.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The unit test now verifies that the default ordering property is set.
134134
We used Jasmine's API to extract the controller construction into a `beforeEach` block, which is
135135
shared by all tests in the parent `describe` block.
136136

137-
You should now see the following output in the Testacular tab:
137+
You should now see the following output in the Karma tab:
138138

139139
Chrome 22.0: Executed 2 of 2 SUCCESS (0.021 secs / 0.001 secs)
140140

‎docs/content/tutorial/step_05.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Finally, we verify that the default value of `orderProp` is set correctly:
208208
});
209209
</pre>
210210

211-
You should now see the following output in the Testacular tab:
211+
You should now see the following output in the Karma tab:
212212

213213
Chrome 22.0: Executed 2 of 2 SUCCESS (0.028 secs / 0.007 secs)
214214

‎docs/content/tutorial/step_08.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ __`test/unit/controllersSpec.js`:__
147147
...
148148
</pre>
149149

150-
You should now see the following output in the Testacular tab:
150+
You should now see the following output in the Karma tab:
151151

152152
Chrome 22.0: Executed 3 of 3 SUCCESS (0.039 secs / 0.012 secs)
153153

‎docs/content/tutorial/step_09.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe('filter', function() {
110110
Note that you need to configure our test injector with the `phonecatFilters` module before any of
111111
our filter tests execute.
112112

113-
You should now see the following output in the Testacular tab:
113+
You should now see the following output in the Karma tab:
114114

115115
Chrome 22.0: Executed 4 of 4 SUCCESS (0.034 secs / 0.012 secs)
116116

‎docs/content/tutorial/step_11.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ describe('PhoneCat controllers', function() {
214214
});
215215
</pre>
216216

217-
You should now see the following output in the Testacular tab:
217+
You should now see the following output in the Karma tab:
218218

219219
Chrome 22.0: Executed 4 of 4 SUCCESS (0.038 secs / 0.01 secs)
220220

‎init-repo.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Script to initialize angular repo
44
# - install required node packages
5-
# - install Testacular
5+
# - install Karma
66
# - install git hooks
77

88

@@ -22,10 +22,10 @@ fi
2222
echo "Installing required npm packages..."
2323
npm install
2424

25-
testacular=`which testacular 2>&1`
25+
karma=`which karma 2>&1`
2626
if [ $? -ne 0 ]; then
27-
echo "Installing Testacular..."
28-
npm install -g testacular
27+
echo "Installing Karma..."
28+
npm install -g karma
2929
fi
3030

3131
echo "Installing git hooks..."

0 commit comments

Comments
 (0)