From 59bfe8e5a9edf7ba000d258b9ac1ef8355c9aca7 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Mon, 15 Apr 2013 12:28:31 +0100 Subject: 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. --- docs/content/tutorial/index.ngdoc | 12 ++++++------ docs/content/tutorial/step_02.ngdoc | 13 +++++++------ docs/content/tutorial/step_03.ngdoc | 4 ++-- docs/content/tutorial/step_04.ngdoc | 2 +- docs/content/tutorial/step_05.ngdoc | 2 +- docs/content/tutorial/step_08.ngdoc | 2 +- docs/content/tutorial/step_09.ngdoc | 2 +- docs/content/tutorial/step_11.ngdoc | 2 +- 8 files changed, 20 insertions(+), 19 deletions(-) (limited to 'docs/content/tutorial') diff --git a/docs/content/tutorial/index.ngdoc b/docs/content/tutorial/index.ngdoc index 2d6cf43f..21adceb6 100644 --- a/docs/content/tutorial/index.ngdoc +++ b/docs/content/tutorial/index.ngdoc @@ -54,14 +54,14 @@ and follow the instructions for setting up your computer.
    -
  1. You will need Node.js and Testacular to run unit tests, so please verify that you have +

  2. You will need Node.js and Karma to run unit tests, so please verify that you have Node.js v0.8 or better installed and that the node executable is on your PATH by running the following command in a terminal window:

    node --version
    -

    Additionally install Testacular if you +

    Additionally install Karma if you don't have it already:

    -
    npm install -g testacular
    +
    npm install -g karma
  3. You'll also need Git, which you can get from the Git site.

  4. Clone the angular-phonecat repository located at scripts/web-server.js, a simple bundled http server.

      -
    1. You will need Node.js and Testacular to run unit tests, so please verify that you have +

    2. You will need Node.js and Karma to run unit tests, so please verify that you have Node.js v0.8 or better installed and that the node executable is on your PATH by running the following command in a terminal window:

      node --version
      -

      Additionally install Testacular if you +

      Additionally install Karma if you don't have it already:

      -
      npm install -g testacular
      +
      npm install -g karma
    3. You'll also need Git, which you can get from the Git site.

    4. diff --git a/docs/content/tutorial/step_02.ngdoc b/docs/content/tutorial/step_02.ngdoc index d874b8ba..d8fa03f9 100644 --- a/docs/content/tutorial/step_02.ngdoc +++ b/docs/content/tutorial/step_02.ngdoc @@ -146,24 +146,25 @@ http://pivotal.github.com/jasmine/ Jasmine home page} and on the {@link https://github.com/pivotal/jasmine/wiki Jasmine wiki}. The angular-seed project is pre-configured to run all unit tests using {@link -http://vojtajina.github.com/testacular/ Testacular}. To run the test, do the following: +http://karma-runner.github.io/ Karma}. To run the test, do the following: 1. In a _separate_ terminal window or tab, go to the `angular-phonecat` directory and run -`./scripts/test.sh` to start the Testacular server. +`./scripts/test.sh` to start the Karma server (the config file necessary to start the server +is located at `./config/testacular.conf.js`). -2. Testacular will start a new instance of Chrome browser automatically. Just ignore it and let it run in - the background. Testacular will use this browser for test execution. +2. Karma will start a new instance of Chrome browser automatically. Just ignore it and let it run in + the background. Karma will use this browser for test execution. 3. You should see the following or similar output in the terminal: - info: Testacular server started at http://localhost:9876/ + info: Karma server started at http://localhost:9876/ info (launcher): Starting browser "Chrome" info (Chrome 22.0): Connected on socket id tPUm9DXcLHtZTKbAEO-n Chrome 22.0: Executed 1 of 1 SUCCESS (0.093 secs / 0.004 secs) Yay! The test passed! Or not... -4. To rerun the tests, just change any of the source or test files. Testacular will notice the change +4. To rerun the tests, just change any of the source or test files. Karma will notice the change and will rerun the tests for you. Now isn't that sweet? # Experiments diff --git a/docs/content/tutorial/step_03.ngdoc b/docs/content/tutorial/step_03.ngdoc index a5558608..54be3b5f 100644 --- a/docs/content/tutorial/step_03.ngdoc +++ b/docs/content/tutorial/step_03.ngdoc @@ -122,9 +122,9 @@ To run the end-to-end test, open one of the following in a new browser tab: `http://localhost:[port-number]/[context-path]/test/e2e/runner.html` * casual reader: {@link http://angular.github.com/angular-phonecat/step-3/test/e2e/runner.html} -Previously we've seen how Testacular can be used to execute unit tests. Well, it can also run the +Previously we've seen how Karma can be used to execute unit tests. Well, it can also run the end-to-end tests! Use `./scripts/e2e-test.sh` script for that. End-to-end tests are slow, so unlike -with unit tests, Testacular will exit after the test run and will not automatically rerun the test +with unit tests, Karma will exit after the test run and will not automatically rerun the test suite on every file change. To rerun the test suite, execute the `e2e-test.sh` script again. This test verifies that the search box and the repeater are correctly wired together. Notice how diff --git a/docs/content/tutorial/step_04.ngdoc b/docs/content/tutorial/step_04.ngdoc index 0a6a74e5..ed9d02ba 100644 --- a/docs/content/tutorial/step_04.ngdoc +++ b/docs/content/tutorial/step_04.ngdoc @@ -134,7 +134,7 @@ The unit test now verifies that the default ordering property is set. We used Jasmine's API to extract the controller construction into a `beforeEach` block, which is shared by all tests in the parent `describe` block. -You should now see the following output in the Testacular tab: +You should now see the following output in the Karma tab: Chrome 22.0: Executed 2 of 2 SUCCESS (0.021 secs / 0.001 secs) diff --git a/docs/content/tutorial/step_05.ngdoc b/docs/content/tutorial/step_05.ngdoc index 0c960722..f17174d7 100644 --- a/docs/content/tutorial/step_05.ngdoc +++ b/docs/content/tutorial/step_05.ngdoc @@ -208,7 +208,7 @@ Finally, we verify that the default value of `orderProp` is set correctly: }); -You should now see the following output in the Testacular tab: +You should now see the following output in the Karma tab: Chrome 22.0: Executed 2 of 2 SUCCESS (0.028 secs / 0.007 secs) diff --git a/docs/content/tutorial/step_08.ngdoc b/docs/content/tutorial/step_08.ngdoc index 160ba19f..7e7eb3ee 100644 --- a/docs/content/tutorial/step_08.ngdoc +++ b/docs/content/tutorial/step_08.ngdoc @@ -147,7 +147,7 @@ __`test/unit/controllersSpec.js`:__ ... -You should now see the following output in the Testacular tab: +You should now see the following output in the Karma tab: Chrome 22.0: Executed 3 of 3 SUCCESS (0.039 secs / 0.012 secs) diff --git a/docs/content/tutorial/step_09.ngdoc b/docs/content/tutorial/step_09.ngdoc index dbc455c9..286fa98a 100644 --- a/docs/content/tutorial/step_09.ngdoc +++ b/docs/content/tutorial/step_09.ngdoc @@ -110,7 +110,7 @@ describe('filter', function() { Note that you need to configure our test injector with the `phonecatFilters` module before any of our filter tests execute. -You should now see the following output in the Testacular tab: +You should now see the following output in the Karma tab: Chrome 22.0: Executed 4 of 4 SUCCESS (0.034 secs / 0.012 secs) diff --git a/docs/content/tutorial/step_11.ngdoc b/docs/content/tutorial/step_11.ngdoc index 9ab28da3..aff35703 100644 --- a/docs/content/tutorial/step_11.ngdoc +++ b/docs/content/tutorial/step_11.ngdoc @@ -214,7 +214,7 @@ describe('PhoneCat controllers', function() { }); -You should now see the following output in the Testacular tab: +You should now see the following output in the Karma tab: Chrome 22.0: Executed 4 of 4 SUCCESS (0.038 secs / 0.01 secs) -- cgit v1.2.3