Skip to content
Browse files

chore: rename this shit to Karma

BREAKING CHANGE: this breaks in couple of ways
- whenever you call the "testacular" binary, change it to "karma", eg. `testacular start` becomes `karma start`.
- if you rely on default name of the config file, change it to `karma.conf.js`.
- if you access `__testacular__` object in the client code, change it to `__karma__`, eg. `window.__testacular__.files` becomes `window.__karma__.files`.
Conflicts:
	CHANGELOG.md
	CONTRIBUTING.md
	README.md
	Testacular.sublime-project
	adapter/angular-scenario.wrapper
	adapter/jasmine.wrapper
	adapter/mocha.wrapper
	adapter/qunit.wrapper
	adapter/require.wrapper
	lib/init.js
	lib/server.js
	static/testacular.src.js
	test/client/jasmine.spec.js
	test/e2e/basic/karma.conf.js
	test/e2e/mocha/karma.conf.js
	test/e2e/qunit/karma.conf.js
	test/unit/logger.spec.coffee
  • Loading branch information...
1 parent 8c138b5 commit 2b2044eeed2e4675afec9235430db314d46154ec @vojtajina vojtajina committed
Showing with 123 additions and 228 deletions.
  1. +1 −1 .npmignore
  2. +28 −18 CHANGELOG.md
  3. +12 −12 CONTRIBUTING.md
  4. +2 −2 Gruntfile.coffee
  5. +27 −29 README.md
  6. +0 −114 Testacular.sublime-project
  7. +1 −1 bin/{testacular → karma}
  8. +1 −1 config.template
  9. +6 −6 lib/cli.js
  10. +1 −1 lib/init.js
  11. +2 −2 lib/logger.js
  12. +2 −2 lib/server.js
  13. +1 −1 lib/web-server.js
  14. +9 −7 package.json
  15. +1 −1 static/client.html
  16. +2 −2 static/context.html
  17. +3 −3 static/debug.html
  18. +4 −4 static/testacular.src.js
  19. +2 −2 tasks/lib/changelog.js
  20. +2 −2 tasks/test.js
  21. +3 −3 test/client/{testacular.conf.js → karma.conf.js}
  22. 0 test/e2e/angular-scenario/{testacular.conf.js → karma.conf.js}
  23. +1 −1 test/e2e/basic/{testacular.conf.js → karma.conf.js}
  24. 0 test/e2e/coffee/{testacular.conf.js → karma.conf.js}
  25. +1 −1 test/e2e/coverage/{testacular.conf.js → karma.conf.js}
  26. +1 −1 test/e2e/coverageQunit/{testacular.conf.js → karma.conf.js}
  27. +1 −1 test/e2e/coverageRequirejs/{testacular.conf.js → karma.conf.js}
  28. +1 −1 test/e2e/coverageRequirejs/main.js
  29. +1 −1 test/e2e/junit/{testacular.conf.js → karma.conf.js}
  30. +1 −1 test/e2e/mocha/{testacular.conf.js → karma.conf.js}
  31. +1 −1 test/e2e/qunit/{testacular.conf.js → karma.conf.js}
  32. +1 −1 test/e2e/requirejs/{testacular.conf.js → karma.conf.js}
  33. +2 −2 test/e2e/requirejs/main.js
  34. 0 test/e2e/syntax-error/{testacular.conf → karma.conf.ignore.js}
  35. 0 test/e2e/timeout/{testacular.conf.ignore.js → karma.conf.ignore.js}
  36. +1 −1 test/unit/cli.spec.coffee
  37. +0 −1 test/unit/logger.spec.coffee
  38. +1 −1 test/unit/web-server.spec.coffee
View
2 .npmignore
@@ -13,7 +13,7 @@ jsl.conf
Gruntfile.coffee
changelog.sh
-Testacular.sublime-*
+Karma.sublime-*
screencast*
adapter/jasmine.src.js
View
46 CHANGELOG.md
@@ -1,3 +1,13 @@
+<a name="v0.6.1"></a>
+### v0.6.1 (2013-03-18)
+
+
+#### Bug Fixes
+
+* **config:** do not change urlRoot even if proxied ([1be1ae1d](https://github.com/karma-runner/karma/commit/1be1ae1dc7ff7314f4ac2854815cb39d31362f14))
+* **coverage:** always send a result object ([2d210aa6](https://github.com/karma-runner/karma/commit/2d210aa6697991f2eba05de58a696c5210485c88), closes [#365](https://github.com/karma-runner/karma/issues/365))
+* **reporter.teamcity:** report spec names and proper browser name ([c8f6f5ea](https://github.com/karma-runner/karma/commit/c8f6f5ea0c5c40d37b511d51b49bd22c9da5ea86))
+
<a name="v0.6.0"></a>
## v0.6.0 (2013-02-22)
@@ -7,16 +17,16 @@
#### Bug Fixes
-* **adapter.requirejs:** do not configure baseUrl automatically ([63f3f409](https://github.com/testacular/testacular/commit/63f3f409ae85a5137396a7ed6537bedfe4437cb3), closes [#291](https://github.com/testacular/testacular/issues/291))
-* **init:** add missing browsers (Opera, IE) ([f39e5645](https://github.com/testacular/testacular/commit/f39e5645ec561c2681d907f7c1611f01911ee8fd))
-* **reporter.junit:** Add browser log output to JUnit.xml ([f108799a](https://github.com/testacular/testacular/commit/f108799a4d8fd95b8c0250ee83c23ada25d026b9), closes [#302](https://github.com/testacular/testacular/issues/302))
+* **adapter.requirejs:** do not configure baseUrl automatically ([63f3f409](https://github.com/karma-runner/karma/commit/63f3f409ae85a5137396a7ed6537bedfe4437cb3), closes [#291](https://github.com/karma-runner/karma/issues/291))
+* **init:** add missing browsers (Opera, IE) ([f39e5645](https://github.com/karma-runner/karma/commit/f39e5645ec561c2681d907f7c1611f01911ee8fd))
+* **reporter.junit:** Add browser log output to JUnit.xml ([f108799a](https://github.com/karma-runner/karma/commit/f108799a4d8fd95b8c0250ee83c23ada25d026b9), closes [#302](https://github.com/karma-runner/karma/issues/302))
#### Features
-* add Teamcity reporter ([03e700ae](https://github.com/testacular/testacular/commit/03e700ae2234ca7ddb8f9235343e3b0c80868bbd))
-* **adapter.jasmine:** remove only last failed specs anti-feature ([435bf72c](https://github.com/testacular/testacular/commit/435bf72cb12112462940c8114fbaa19f9de38531), closes [#148](https://github.com/testacular/testacular/issues/148))
-* **config:** allow empty config file when called programmatically ([f3d77424](https://github.com/testacular/testacular/commit/f3d77424009f621e1fb9d60eeec7f052ebb3c585), closes [#358](https://github.com/testacular/testacular/issues/358))
+* add Teamcity reporter ([03e700ae](https://github.com/karma-runner/karma/commit/03e700ae2234ca7ddb8f9235343e3b0c80868bbd))
+* **adapter.jasmine:** remove only last failed specs anti-feature ([435bf72c](https://github.com/karma-runner/karma/commit/435bf72cb12112462940c8114fbaa19f9de38531), closes [#148](https://github.com/karma-runner/karma/issues/148))
+* **config:** allow empty config file when called programmatically ([f3d77424](https://github.com/karma-runner/karma/commit/f3d77424009f621e1fb9d60eeec7f052ebb3c585), closes [#358](https://github.com/karma-runner/karma/issues/358))
<a name="v0.5.10"></a>
### v0.5.10 (2013-02-14)
@@ -24,15 +34,15 @@
#### Bug Fixes
-* **init:** fix the logger configuration ([481dc3fd](https://github.com/testacular/testacular/commit/481dc3fd75f45a0efa8aabdb1c71e8234b9e8a06), closes [#340](https://github.com/testacular/testacular/issues/340))
-* **proxy:** fix crashing proxy when browser hangs connection ([1c78a01a](https://github.com/testacular/testacular/commit/1c78a01a19411accb86f0bde9e040e5088752575))
+* **init:** fix the logger configuration ([481dc3fd](https://github.com/karma-runner/karma/commit/481dc3fd75f45a0efa8aabdb1c71e8234b9e8a06), closes [#340](https://github.com/karma-runner/karma/issues/340))
+* **proxy:** fix crashing proxy when browser hangs connection ([1c78a01a](https://github.com/karma-runner/karma/commit/1c78a01a19411accb86f0bde9e040e5088752575))
#### Features
-* set urlRoot to /__testacular__/ when proxying the root ([8b4fd64d](https://github.com/testacular/testacular/commit/8b4fd64df6b7d07b5479e43dcd8cd2aa5e1efc9c))
-* **adapter.requirejs:** normalize paths before appending timestamp ([94889e7d](https://github.com/testacular/testacular/commit/94889e7d2de701c67a2612e3fc6a51bfae891d36))
-* update dependencies to the latest ([93f96278](https://github.com/testacular/testacular/commit/93f9627817f2d5d9446de9935930ca85cfa7df7f), [e34d8834](https://github.com/testacular/testacular/commit/e34d8834d69ec4e022fcd6e1be4055add96d693c))
+* set urlRoot to /__karma__/ when proxying the root ([8b4fd64d](https://github.com/karma-runner/karma/commit/8b4fd64df6b7d07b5479e43dcd8cd2aa5e1efc9c))
+* **adapter.requirejs:** normalize paths before appending timestamp ([94889e7d](https://github.com/karma-runner/karma/commit/94889e7d2de701c67a2612e3fc6a51bfae891d36))
+* update dependencies to the latest ([93f96278](https://github.com/karma-runner/karma/commit/93f9627817f2d5d9446de9935930ca85cfa7df7f), [e34d8834](https://github.com/karma-runner/karma/commit/e34d8834d69ec4e022fcd6e1be4055add96d693c))
<a name="v0.5.9"></a>
@@ -41,16 +51,16 @@
#### Bug Fixes
-* **adapter.requirejs:** show error if no timestamp defined for a file ([59dbdbd1](https://github.com/testacular/testacular/commit/59dbdbd136baa87467b9b9a4cb6ce226ae87bbef))
-* **init:** fix logger configuration ([557922d7](https://github.com/testacular/testacular/commit/557922d71941e0929f9cdc0d3794424a1f27b311))
-* **reporter:** remove newline from base reporter browser dump ([dfae18b6](https://github.com/testacular/testacular/commit/dfae18b63b413a1e6240d00b9dc0521ac0386ec5), closes [#297](https://github.com/testacular/testacular/issues/297))
-* **reporter.dots:** only add newline to message when needed ([dbe1155c](https://github.com/testacular/testacular/commit/dbe1155cb57fc4caa792f83f45288238db0fc7e0)
+* **adapter.requirejs:** show error if no timestamp defined for a file ([59dbdbd1](https://github.com/karma-runner/karma/commit/59dbdbd136baa87467b9b9a4cb6ce226ae87bbef))
+* **init:** fix logger configuration ([557922d7](https://github.com/karma-runner/karma/commit/557922d71941e0929f9cdc0d3794424a1f27b311))
+* **reporter:** remove newline from base reporter browser dump ([dfae18b6](https://github.com/karma-runner/karma/commit/dfae18b63b413a1e6240d00b9dc0521ac0386ec5), closes [#297](https://github.com/karma-runner/karma/issues/297))
+* **reporter.dots:** only add newline to message when needed ([dbe1155c](https://github.com/karma-runner/karma/commit/dbe1155cb57fc4caa792f83f45288238db0fc7e0)
#### Features
-* add "debug" button to easily open debugging window ([da85aab9](https://github.com/testacular/testacular/commit/da85aab927edd1614e4e05b136dee834344aa3cb))
-* **config:** support running on a custom hostname ([b8c5fe85](https://github.com/testacular/testacular/commit/b8c5fe8533b13fd59cbf48972d2021069a84ae5b))
-* **reporter.junit:** add a 'skipped' tag for skipped testcases ([6286406e](https://github.com/testacular/testacular/commit/6286406e0a36a61125ea16d6f49be07030164cb0), closes [#321](https://github.com/testacular/testacular/issues/321))
+* add "debug" button to easily open debugging window ([da85aab9](https://github.com/karma-runner/karma/commit/da85aab927edd1614e4e05b136dee834344aa3cb))
+* **config:** support running on a custom hostname ([b8c5fe85](https://github.com/karma-runner/karma/commit/b8c5fe8533b13fd59cbf48972d2021069a84ae5b))
+* **reporter.junit:** add a 'skipped' tag for skipped testcases ([6286406e](https://github.com/karma-runner/karma/commit/6286406e0a36a61125ea16d6f49be07030164cb0), closes [#321](https://github.com/karma-runner/karma/issues/321))
### v0.5.8
View
24 CONTRIBUTING.md
@@ -1,11 +1,11 @@
# How to contribute
-If you are thinking about making Testacular better, or you just want to hack on it, that’s great! Here
+If you are thinking about making Karma better, or you just want to hack on it, that’s great! Here
are some tips to get you started.
## Getting Started
* Make sure you have a [GitHub account](https://github.com/signup/free)
-* Consider [submiting a ticket](https://github.com/vojtajina/testacular/issues/new) for your issue,
+* Consider [submiting a ticket](https://github.com/karma-runner/karma/issues/new) for your issue,
assuming one does not already exist.
* Clearly describe the issue including steps to reproduce when it is a bug.
* Make sure you fill in the earliest version that you know has the issue.
@@ -14,11 +14,11 @@ are some tips to get you started.
* Fork the repository on GitHub
## Initial setup
-* Clone your fork. For these instructions, we assume you cloned into '~/github/testacular'.
+* Clone your fork. For these instructions, we assume you cloned into '~/github/karma'.
* Install dependencies:
```bash
- $ cd ~/github/testacular
+ $ cd ~/github/karma
# install local dependencies
$ npm install
@@ -29,7 +29,7 @@ are some tips to get you started.
* Ensure you have a stable working baseline for development.
```bash
# This will run a full build and test pass.
- $ cd ~/github/testacular
+ $ cd ~/github/karma
$ grunt
```
On an unmodified 'master' branch, this command should always complete and report success.
@@ -40,7 +40,7 @@ are some tips to get you started.
* File an issue (see above)
* Run 'grunt init-dev-env'. This will install a git commit trigger that will ensure your commit messages
- follows the [Testacular - Git Commit Msg Format Conventions]
+ follows the [Karma - Git Commit Msg Format Conventions]
@@ -58,7 +58,7 @@ are some tips to get you started.
* Add tests for your changes as (or before) you make them, if at all possible.
We use coffee script for our tests.
* Commit your changes
- * Follow the [Testacular - Git Commit Msg Format Conventions]
+ * Follow the [Karma - Git Commit Msg Format Conventions]
* Push your changes to your forked repository
* Send a pull request to the `master` branch.
* Before submitting, make sure the default 'grunt' command succeeds locally.
@@ -95,11 +95,11 @@ $ grunt test:client
* [Mailing List]
* [General GitHub documentation]
* [GitHub pull request documentation]
-* [@TestacularJS]
+* [@JsKarma]
-[Testacular - Git Commit Msg Format Conventions]: http://testacular.github.com/0.6.0/dev/git-commit-msg.html
-[Issue tracker]: https://github.com/vojtajina/testacular/issues
-[Mailing List]: https://groups.google.com/forum/#!forum/testacular
+[Karma - Git Commit Msg Format Conventions]: http://karma-runner.github.com/0.8/dev/git-commit-msg.html
+[Issue tracker]: https://github.com/karma-runner/karma/issues
+[Mailing List]: https://groups.google.com/forum/#!forum/karma-users
[General GitHub documentation]: http://help.github.com/
[GitHub pull request documentation]: http://help.github.com/send-pull-requests/
-[@TestacularJS]: http://twitter.com/TestacularJS
+[@JsKarma]: http://twitter.com/JsKarma
View
4 Gruntfile.coffee
@@ -28,8 +28,8 @@ module.exports = (grunt) ->
test:
unit: 'simplemocha:unit'
tasks: 'simplemocha:tasks'
- client: 'test/client/testacular.conf.js'
- e2e: 'test/e2e/*/testacular.conf.js'
+ client: 'test/client/karma.conf.js'
+ e2e: 'test/e2e/*/karma.conf.js'
simplemocha:
View
56 README.md
@@ -1,12 +1,12 @@
-# Testacular [![Build Status](https://secure.travis-ci.org/testacular/testacular.png?branch=stable)](http://travis-ci.org/testacular/testacular) [![Build Status](https://secure.travis-ci.org/testacular/testacular.png?branch=master)](http://travis-ci.org/testacular/testacular)
+# Karma [![Build Status](https://secure.travis-ci.org/karma-runner/karma.png?branch=stable)](http://travis-ci.org/karma-runner/karma) [![Build Status](https://secure.travis-ci.org/karma-runner/karma.png?branch=master)](http://travis-ci.org/karma-runner/karma)
A simple tool that allows you to execute JavaScript code in multiple
_real_ browsers, powered by [Node.js] and [Socket.io].
-> The main purpose of Testacular is to make your TDD development easy,
+> The main purpose of Karma is to make your TDD development easy,
> fast, and fun.
-## When should I use Testacular?
+## When should I use Karma?
* You want to test code in *real* browsers.
* You want to test code in multiple browsers (desktop, mobile,
@@ -23,7 +23,7 @@ _real_ browsers, powered by [Node.js] and [Socket.io].
## But I still want to use \_insert testing library\_
-Testacular is not a testing framework, neither an assertion library,
+Karma is not a testing framework, neither an assertion library,
so for that you can use pretty much anything you like. Right now out
of the box there is support for
@@ -56,14 +56,14 @@ Every serious project has a screencast, so here is ours. Just click
If you have [Node.js] installed, it's as simple as
```bash
-$ npm install -g testacular
+$ npm install -g karma
```
This will give you the latest stable version available on npm. If you
want to live life on the edge you can do so by
```bash
-$ npm install -g testacular@canary
+$ npm install -g karma@canary
```
The curious can have a look at the documentation articles for
@@ -71,37 +71,37 @@ The curious can have a look at the documentation articles for
### Using it.
-Go into your project and create a testacular configuration. That is
-just a simple JavaScript or CoffeeScript file that tells Testacular
+Go into your project and create a Karma configuration. That is
+just a simple JavaScript or CoffeeScript file that tells Karma
where all the awesomeness of your project are.
You can find a simple example in
-[test/client/testacular.conf.js](https://github.com/testacular/testacular/blob/master/test/client/testacular.conf.js)
+[test/client/karma.conf.js](https://github.com/karma-runner/karma/blob/master/test/client/karma.conf.js)
which contains most of the options.
To create your own from scratch there is the `init` command, which
-will be named `testacular.conf.js` by default:
+will be named `karma.conf.js` by default:
```bash
-$ testacular init
+$ karma init
```
This will ask you many questions and if you answered them all correct
-you will be allowed to use Testacular.
+you will be allowed to use Karma.
For more information on the configuration options see
[Configuration File Overview].
Now that you have your configuration all that is left to do is to
-start Testacular:
+start Karma:
```bash
-$ testacular start
+$ karma start
```
If you want to run tests manually (without auto watching file changes), you can:
```bash
-$ testacular run
+$ karma run
```
-But only if you have started the Testacular server before.
+But only if you have started the Karma server before.
## Why did you create this?
@@ -119,12 +119,12 @@ use the awesome [Socket.io] library and [Node.js].
* [Docs]
* [Mailing List]
* [Issuetracker]
-* [@TestacularJS] on Twitter
+* [@JsKarma] on Twitter
## This is so great. I want to help.
See
-[Contributing.md](https://github.com/vojtajina/testacular/blob/master/CONTRIBUTING.md)
+[Contributing.md](https://github.com/karma-runner/karma/blob/master/CONTRIBUTING.md)
or the [docs] for more information.
@@ -163,18 +163,16 @@ or the [docs] for more information.
[Jasmine]: http://pivotal.github.com/jasmine/
[Mocha]: http://visionmedia.github.com/mocha/
[QUnit]: http://qunitjs.com/
-[Semantic Versioning]: http://semver.org/
[here]: http://www.youtube.com/watch?v=MVw8N3hTfCI
-[installers]: http://nodejs.org/download/
-[Mailing List]: https://groups.google.com/forum/#!forum/testacular
-[Issuetracker]: https://github.com/testacular/testacular/issues
-[@TestacularJS]: http://twitter.com/TestacularJS
+[Mailing List]: https://groups.google.com/forum/#!forum/karma-users
+[Issuetracker]: https://github.com/karma-runner/karma/issues
+[@JsKarma]: http://twitter.com/JsKarma
[RequireJS]: http://requirejs.org/
[Istanbul]: https://github.com/gotwarlost/istanbul
-[Browsers]: http://testacular.github.com/0.6.0/config/browsers.html
-[Versioning]: http://testacular.github.com/0.6.0/about/versioning.html
-[Configuration File Overview]: http://testacular.github.com/0.6.0/config/configuration-file.html
-[docs]: http://testacular.github.com
-[Docs]: http://testacular.github.com
-[website]: http://testacular.github.com
+[Browsers]: http://karma-runner.github.com/0.8/config/browsers.html
+[Versioning]: http://karma-runner.github.com/0.8/about/versioning.html
+[Configuration File Overview]: http://karma-runner.github.com/0.8/config/configuration-file.html
+[docs]: http://karma-runner.github.com
+[Docs]: http://karma-runner.github.com
+[website]: http://karma-runner.github.com
View
114 Testacular.sublime-project
@@ -1,114 +0,0 @@
-{
- "build_systems":
- [
- {
- "name": "Mocha Unit tests",
- "cmd": ["mocha", "--compilers", "coffee:coffee-script", "test/unit"],
- "working_dir": "${project_path}",
- "path": "/usr/local/nvm/v0.8.4/bin"
- },
- {
- "name": "Unit tests",
- "cmd": ["grunt", "simplemocha:unit", "--no-color"],
- "working_dir": "${project_path}",
- "path": "/usr/local/nvm/v0.8.4/bin"
- },
- {
- "name": "Task tests",
- "cmd": ["grunt", "simplemocha:tasks", "--no-color"],
- "working_dir": "${project_path}",
- "path": "/usr/local/nvm/v0.8.4/bin"
- },
- {
- "name": "Client tests",
- "cmd": ["grunt", "test:client", "--no-color"],
- "working_dir": "${project_path}",
- "path": "/usr/local/nvm/v0.8.4/bin"
- }
- ],
- "folders":
- [
- {
- "path": ".",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "jasmine",
- "path": "../testacular-jasmine",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "mocha",
- "path": "../testacular-mocha",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "qunit",
- "path": "../testacular-qunit",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "chrome-launcher",
- "path": "../testacular-chrome-launcher",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "firefox-launcher",
- "path": "../testacular-firefox-launcher",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "phantomjs-launcher",
- "path": "../testacular-phantomjs-launcher",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "coverage",
- "path": "../testacular-coverage",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "growl-reporter",
- "path": "../testacular-growl-reporter",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "junit-reporter",
- "path": "../testacular-junit-reporter",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "ng-html2js-preprocessor",
- "path": "../testacular-ng-html2js-preprocessor",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- },
- {
- "name": "requirejs",
- "path": "../testacular-requirejs",
- "folder_exclude_patterns": ["node_modules"],
- "file_exclude_patterns": []
- }
- ],
- "settings":
- {
- "tab_size": 2,
- "open_related_patterns": [
- ["*/lib/*.js", "*/test/unit/*.spec.coffee"],
- ["*/adapter/*.src.js", "*/test/client/*.spec.js"],
- ["*/static/*.src.js", "*/test/client/*.spec.js"],
- ["*/tasks/*.js", "*/test/tasks/*.spec.coffee"]
- ],
- "build_switcher_systems": ["Unit tests", "Task tests", "Client tests", "Mocha Unit tests"]
- }
-}
View
2 bin/testacular → bin/karma
@@ -4,7 +4,7 @@ var path = require('path');
var fs = require('fs');
// Try to find a local install
-var dir = path.resolve(process.cwd(), 'node_modules', 'testacular', 'lib');
+var dir = path.resolve(process.cwd(), 'node_modules', 'karma', 'lib');
// Check if the local install exists else we use the install we are in
if (!fs.existsSync(dir)) {
View
2 config.template
@@ -1,4 +1,4 @@
-// Testacular configuration
+// Karma configuration
// Generated on %DATE%
View
12 lib/cli.js
@@ -12,7 +12,7 @@ var processArgs = function(argv, options) {
}
if (argv.version) {
- console.log('Testacular version: ' + constant.VERSION);
+ console.log('Karma version: ' + constant.VERSION);
process.exit(0);
}
@@ -51,7 +51,7 @@ var processArgs = function(argv, options) {
options.reporters = options.reporters.split(',');
}
- options.configFile = path.resolve(argv._.shift() || 'testacular.conf.js');
+ options.configFile = path.resolve(argv._.shift() || 'karma.conf.js');
return options;
};
@@ -59,7 +59,7 @@ var processArgs = function(argv, options) {
var describeShared = function() {
optimist
- .usage('Testacular - Spectacular Test Runner for JavaScript.\n\n' +
+ .usage('Karma - Spectacular Test Runner for JavaScript.\n\n' +
'Usage:\n' +
' $0 <command>\n\n' +
'Commands:\n' +
@@ -74,7 +74,7 @@ var describeShared = function() {
var describeInit = function() {
optimist
- .usage('Testacular - Spectacular Test Runner for JavaScript.\n\n' +
+ .usage('Karma - Spectacular Test Runner for JavaScript.\n\n' +
'INIT - Initialize a config file.\n\n' +
'Usage:\n' +
' $0 init [<configFile>]')
@@ -88,7 +88,7 @@ var describeInit = function() {
var describeStart = function() {
optimist
- .usage('Testacular - Spectacular Test Runner for JavaScript.\n\n' +
+ .usage('Karma - Spectacular Test Runner for JavaScript.\n\n' +
'START - Start the server / do a single run.\n\n' +
'Usage:\n' +
' $0 start [<configFile>] [<options>]')
@@ -112,7 +112,7 @@ var describeStart = function() {
var describeRun = function() {
optimist
- .usage('Testacular - Spectacular Test Runner for JavaScript.\n\n' +
+ .usage('Karma - Spectacular Test Runner for JavaScript.\n\n' +
'RUN - Run the tests (requires running server).\n\n' +
'Usage:\n' +
' $0 run [<options>]')
View
2 lib/init.js
@@ -85,7 +85,7 @@ var questions = [{
id: 'includedFiles',
question: 'Which files do you want to include with <script> tag ?',
hint: 'This should be a script that bootstraps your test by configuring Require.js and ' +
- 'kicking __testacular__.start()\n' +
+ 'kicking __karma__.start()\n' +
'You can use glob patterns, eg. "js/*.js" or "test/**/*Spec.js".\n' +
'Enter empty string to move to the next question.',
multiple: true,
View
4 lib/logger.js
@@ -56,7 +56,7 @@ var setup = function(level, colors, appenders) {
};
// Create a new logger. There are two optional arguments
-// * `name`, which defaults to `testacular` and
+// * `name`, which defaults to `karma` and
// If the `name = 'socket.io'` this will create a special wrapper
// to be used as a logger for socket.io.
// * `level`, which defaults to the global level.
@@ -64,7 +64,7 @@ var create = function(name, level) {
if (name === 'socket.io') {
return new LogWrapper('socket.io', level);
} else {
- var logger = log4js.getLogger(name || 'testacular');
+ var logger = log4js.getLogger(name || 'karma');
if (helper.isDefined(level)) {
logger.setLevel(level);
}
View
4 lib/server.js
@@ -57,7 +57,7 @@ var start = function(injector, config, launcher, globalEmitter, preprocess, file
});
webServer.listen(config.port, function() {
- log.info('Testacular v%s server started at http://%s:%s%s', constant.VERSION, config.hostname,
+ log.info('Karma v%s server started at http://%s:%s%s', constant.VERSION, config.hostname,
config.port, config.urlRoot);
if (config.browsers && config.browsers.length) {
@@ -184,7 +184,7 @@ var start = function(injector, config, launcher, globalEmitter, preprocess, file
runnerServer.on('listening', function() {
if (config.runnerPort !== constant.DEFAULT_RUNNER_PORT) {
- log.info('To run via this server, use "testacular run --runner-port %d"', config.runnerPort);
+ log.info('To run via this server, use "karma run --runner-port %d"', config.runnerPort);
}
});
View
2 lib/web-server.js
@@ -117,7 +117,7 @@ var createTestacularSourceHandler = function(promiseContainer, staticFolder, ada
return util.format(' \'%s\': \'%d\'', filePath, file.mtime.getTime());
});
- mappings = 'window.__testacular__.files = {\n' + mappings.join(',\n') + '\n};\n';
+ mappings = 'window.__karma__.files = {\n' + mappings.join(',\n') + '\n};\n';
return data.replace('%SCRIPTS%', scriptTags.join('\n')).replace('%MAPPINGS%', mappings);
});
View
16 package.json
@@ -1,13 +1,15 @@
{
- "name": "testacular",
+ "name": "karma",
"description": "Spectacular Test Runner for JavaScript.",
- "homepage": "http://vojtajina.github.com/testacular/",
+ "homepage": "http://karma-runner.github.com/",
"bugs": {
- "url": "https://github.com/vojtajina/testacular/issues"
+ "url": "https://github.com/karma-runner/karma/issues"
},
"keywords": [
- "Testacular",
- "nodejs",
+ "karma",
+ "spectacular",
+ "runner",
+ "testacular",
"js",
"javascript",
"testing",
@@ -103,11 +105,11 @@
"preferGlobal": true,
"repository": {
"type": "git",
- "url": "git://github.com/vojtajina/testacular.git"
+ "url": "git://github.com/karma-runner/karma.git"
},
"main": "./lib/index",
"bin": {
- "testacular": "./bin/testacular"
+ "karma": "./bin/karma"
},
"engines": {
"node": ">= 0.8.4"
View
2 static/client.html
@@ -102,7 +102,7 @@
<body>
<div id="banner" class="offline">
<a href="debug.html" target="_blank" class="btn-debug">DEBUG</a>
- <h1 id="title">Testacular - starting</h1>
+ <h1 id="title">Karma - starting</h1>
</div>
<ul id="browsers"></ul>
View
4 static/context.html
@@ -15,7 +15,7 @@
into it. If it is before body, then it fails to find the body and crashes and burns in an epic
manner. -->
<script type="text/javascript">
- // sets window.__testacular__ and overrides console and error handling
+ // sets window.__karma__ and overrides console and error handling
window.parent.testacular.setupContext(window);
// All served files with the latest timestamps
@@ -24,7 +24,7 @@
<!-- Dynamically replaced with <script> tags -->
%SCRIPTS%
<script type="text/javascript">
- window.__testacular__.loaded();
+ window.__karma__.loaded();
</script>
</body>
</html>
View
6 static/debug.html
@@ -6,7 +6,7 @@
-->
<html>
<head>
- <title>Testacular DEBUG RUNNER</title>
+ <title>Karma DEBUG RUNNER</title>
<!-- TOOD(vojta): create simple favicon and cache it -->
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -17,7 +17,7 @@
into it. If it is before body, then it fails to find the body and crashes and burns in an epic
manner. -->
<script type="text/javascript">
- window.__testacular__ = {
+ window.__karma__ = {
info: function(info) {
if (info.dump && window.console) window.console.log(info.dump);
},
@@ -39,7 +39,7 @@
<!-- Dynamically replaced with <script> tags -->
%SCRIPTS%
<script type="text/javascript">
- window.__testacular__.loaded();
+ window.__karma__.loaded();
</script>
</body>
</html>
View
8 static/testacular.src.js
@@ -29,7 +29,7 @@ var bannerElement = document.getElementById('banner');
var updateStatus = function(status) {
return function(param) {
var paramStatus = param ? status.replace('$', param) : status;
- titleElement.innerHTML = 'Testacular v' + VERSION + ' - ' + paramStatus;
+ titleElement.innerHTML = 'Karma v' + VERSION + ' - ' + paramStatus;
bannerElement.className = status === 'connected' ? 'online' : 'offline';
};
};
@@ -59,11 +59,11 @@ var Testacular = function(socket, context, navigator, location) {
};
};
- contextWindow.__testacular__ = this;
+ contextWindow.__karma__ = this;
// This causes memory leak in Chrome (17.0.963.66)
contextWindow.onerror = function() {
- return contextWindow.__testacular__.error.apply(contextWindow.__testacular__, arguments);
+ return contextWindow.__karma__.error.apply(contextWindow.__karma__, arguments);
};
// patch the console
@@ -71,7 +71,7 @@ var Testacular = function(socket, context, navigator, location) {
var browserConsoleLog = localConsole.log;
localConsole.log = function() {
- contextWindow.__testacular__.info({dump: Array.prototype.slice.call(arguments, 0)});
+ contextWindow.__karma__.info({dump: Array.prototype.slice.call(arguments, 0)});
return browserConsoleLog.apply(localConsole, arguments);
};
};
View
4 tasks/lib/changelog.js
@@ -12,8 +12,8 @@ var GIT_TAG_CMD = 'git describe --tags --abbrev=0';
var PATCH_HEADER_TPL = '<a name="%s"></a>\n### %s (%s)\n\n';
var MINOR_HEADER_TPL = '<a name="%s"></a>\n## %s (%s)\n\n';
-var LINK_ISSUE = '[#%s](https://github.com/testacular/testacular/issues/%s)';
-var LINK_COMMIT = '[%s](https://github.com/testacular/testacular/commit/%s)';
+var LINK_ISSUE = '[#%s](https://github.com/karma-runner/karma/issues/%s)';
+var LINK_COMMIT = '[%s](https://github.com/karma-runner/karma/commit/%s)';
var EMPTY_COMPONENT = '$$';
var MAX_SUBJECT_LENGTH = 80;
View
4 tasks/test.js
@@ -14,7 +14,7 @@ module.exports = function(grunt) {
var specDone = this.async();
var node = require('which').sync('node');
var path = require('path');
- var cmd = path.join(__dirname, '..', 'bin', 'testacular');
+ var cmd = path.join(__dirname, '..', 'bin', 'karma');
var spawnTestacular = function(args, callback) {
grunt.log.writeln(['Running', cmd].concat(args).join(' '));
@@ -59,7 +59,7 @@ module.exports = function(grunt) {
} else {
args[1] = tests.shift();
if (args[1]) {
- if (args[1] === 'test/e2e/angular-scenario/testacular.conf.js') {
+ if (args[1] === 'test/e2e/angular-scenario/karma.conf.js') {
processToKill = grunt.util.spawn({
cmd: node,
args: ['test/e2e/angular-scenario/server.js']
View
6 test/client/testacular.conf.js → test/client/karma.conf.js
@@ -1,9 +1,9 @@
// Sample Testacular configuration file, that contain pretty much all the available options
-// It's used for running client tests on Travis (http://travis-ci.org/#!/vojtajina/testacular)
-// Most of the options can be overriden by cli arguments (see testacular --help)
+// It's used for running client tests on Travis (http://travis-ci.org/#!/karma-runner/karma)
+// Most of the options can be overriden by cli arguments (see karma --help)
//
// For all available config options and default values, see:
-// https://github.com/vojtajina/testacular/blob/stable/lib/config.js#L54
+// https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54
// base path, that will be used to resolve files and exclude
View
0 test/e2e/angular-scenario/testacular.conf.js → test/e2e/angular-scenario/karma.conf.js
File renamed without changes.
View
2 test/e2e/basic/testacular.conf.js → test/e2e/basic/karma.conf.js
@@ -5,7 +5,7 @@ files = [
];
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
autoWatch = true;
View
0 test/e2e/coffee/testacular.conf.js → test/e2e/coffee/karma.conf.js
File renamed without changes.
View
2 test/e2e/coverage/testacular.conf.js → test/e2e/coverage/karma.conf.js
@@ -6,7 +6,7 @@ files = [
];
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
autoWatch = true;
View
2 test/e2e/coverageQunit/testacular.conf.js → test/e2e/coverageQunit/karma.conf.js
@@ -6,7 +6,7 @@ files = [
];
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
autoWatch = true;
View
2 .../e2e/coverageRequirejs/testacular.conf.js → test/e2e/coverageRequirejs/karma.conf.js
@@ -6,7 +6,7 @@ files = [
];
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
autoWatch = true;
View
2 test/e2e/coverageRequirejs/main.js
@@ -6,5 +6,5 @@ require.config({
deps: ['test'],
// we have to kick of jasmine, as it is asynchronous
- callback: window.__testacular__.start
+ callback: window.__karma__.start
});
View
2 test/e2e/junit/testacular.conf.js → test/e2e/junit/karma.conf.js
@@ -5,7 +5,7 @@ files = [
];
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
autoWatch = true;
View
2 test/e2e/mocha/testacular.conf.js → test/e2e/mocha/karma.conf.js
@@ -5,7 +5,7 @@ files = [
];
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
autoWatch = true;
View
2 test/e2e/qunit/testacular.conf.js → test/e2e/qunit/karma.conf.js
@@ -5,7 +5,7 @@ files = [
];
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
autoWatch = true;
View
2 test/e2e/requirejs/testacular.conf.js → test/e2e/requirejs/karma.conf.js
@@ -18,7 +18,7 @@ files = [
// list of files to exclude
exclude = [
- 'testacular.conf.js'
+ 'karma.conf.js'
];
View
4 test/e2e/requirejs/main.js
@@ -1,7 +1,7 @@
var allTestFiles = [];
var TEST_REGEXP = /test\.js$/;
-Object.keys(window.__testacular__.files).forEach(function(file) {
+Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
allTestFiles.push(file);
}
@@ -22,5 +22,5 @@ require.config({
deps: allTestFiles,
// we have to kick of jasmine, as it is asynchronous
- callback: window.__testacular__.start
+ callback: window.__karma__.start
});
View
0 test/e2e/syntax-error/testacular.conf → test/e2e/syntax-error/karma.conf.ignore.js
File renamed without changes.
View
0 test/e2e/timeout/testacular.conf.ignore.js → test/e2e/timeout/karma.conf.ignore.js
File renamed without changes.
View
2 test/unit/cli.spec.coffee
@@ -26,7 +26,7 @@ describe 'cli', ->
it 'should parse options without configFile and set default', ->
options = processArgs ['--auto-watch', '--auto-watch-interval', '10']
- expect(options.configFile).to.equal path.join(CWD, 'testacular.conf.js')
+ expect(options.configFile).to.equal path.join(CWD, 'karma.conf.js')
expect(options.autoWatch).to.equal true
expect(options.autoWatchInterval).to.equal 10
View
1 test/unit/logger.spec.coffee
@@ -5,7 +5,6 @@
describe 'logger', ->
loadFile = require('mocks').loadFile
logSpy = m = null
-
beforeEach ->
logSpy = sinon.spy()
m = loadFile __dirname + '/../../lib/logger.js'
View
2 test/unit/web-server.spec.coffee
@@ -243,7 +243,7 @@ describe 'web-server', ->
{path: '/tcular/adapter/c.js', mtime: new Date 321}]
response.once 'end', ->
- expect(response._content.toString()).to.equal 'window.__testacular__.files = {\n' +
+ expect(response._content.toString()).to.equal 'window.__karma__.files = {\n' +
" '/absolute/some/abs/a.js': '12345',\n" +
" '/base/b.js': '67890',\n" +
" '/adapter/c.js': '321'\n" +

0 comments on commit 2b2044e

Please sign in to comment.
Something went wrong with that request. Please try again.