Skip to content

Commit 2b2044e

Browse files
committed
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
1 parent 8c138b5 commit 2b2044e

38 files changed

Lines changed: 123 additions & 228 deletions

‎.npmignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jsl.conf
1313
Gruntfile.coffee
1414
changelog.sh
1515

16-
Testacular.sublime-*
16+
Karma.sublime-*
1717
screencast*
1818

1919
adapter/jasmine.src.js

‎CHANGELOG.md‎

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="v0.6.1"></a>
2+
### v0.6.1 (2013-03-18)
3+
4+
5+
#### Bug Fixes
6+
7+
* **config:** do not change urlRoot even if proxied ([1be1ae1d](https://github.com/karma-runner/karma/commit/1be1ae1dc7ff7314f4ac2854815cb39d31362f14))
8+
* **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))
9+
* **reporter.teamcity:** report spec names and proper browser name ([c8f6f5ea](https://github.com/karma-runner/karma/commit/c8f6f5ea0c5c40d37b511d51b49bd22c9da5ea86))
10+
111
<a name="v0.6.0"></a>
212
## v0.6.0 (2013-02-22)
313

@@ -7,32 +17,32 @@
717

818
#### Bug Fixes
919

10-
* **adapter.requirejs:** do not configure baseUrl automatically ([63f3f409](https://github.com/testacular/testacular/commit/63f3f409ae85a5137396a7ed6537bedfe4437cb3), closes [#291](https://github.com/testacular/testacular/issues/291))
11-
* **init:** add missing browsers (Opera, IE) ([f39e5645](https://github.com/testacular/testacular/commit/f39e5645ec561c2681d907f7c1611f01911ee8fd))
12-
* **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))
20+
* **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))
21+
* **init:** add missing browsers (Opera, IE) ([f39e5645](https://github.com/karma-runner/karma/commit/f39e5645ec561c2681d907f7c1611f01911ee8fd))
22+
* **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))
1323

1424

1525
#### Features
1626

17-
* add Teamcity reporter ([03e700ae](https://github.com/testacular/testacular/commit/03e700ae2234ca7ddb8f9235343e3b0c80868bbd))
18-
* **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))
19-
* **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))
27+
* add Teamcity reporter ([03e700ae](https://github.com/karma-runner/karma/commit/03e700ae2234ca7ddb8f9235343e3b0c80868bbd))
28+
* **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))
29+
* **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))
2030

2131
<a name="v0.5.10"></a>
2232
### v0.5.10 (2013-02-14)
2333

2434

2535
#### Bug Fixes
2636

27-
* **init:** fix the logger configuration ([481dc3fd](https://github.com/testacular/testacular/commit/481dc3fd75f45a0efa8aabdb1c71e8234b9e8a06), closes [#340](https://github.com/testacular/testacular/issues/340))
28-
* **proxy:** fix crashing proxy when browser hangs connection ([1c78a01a](https://github.com/testacular/testacular/commit/1c78a01a19411accb86f0bde9e040e5088752575))
37+
* **init:** fix the logger configuration ([481dc3fd](https://github.com/karma-runner/karma/commit/481dc3fd75f45a0efa8aabdb1c71e8234b9e8a06), closes [#340](https://github.com/karma-runner/karma/issues/340))
38+
* **proxy:** fix crashing proxy when browser hangs connection ([1c78a01a](https://github.com/karma-runner/karma/commit/1c78a01a19411accb86f0bde9e040e5088752575))
2939

3040

3141
#### Features
3242

33-
* set urlRoot to /__testacular__/ when proxying the root ([8b4fd64d](https://github.com/testacular/testacular/commit/8b4fd64df6b7d07b5479e43dcd8cd2aa5e1efc9c))
34-
* **adapter.requirejs:** normalize paths before appending timestamp ([94889e7d](https://github.com/testacular/testacular/commit/94889e7d2de701c67a2612e3fc6a51bfae891d36))
35-
* update dependencies to the latest ([93f96278](https://github.com/testacular/testacular/commit/93f9627817f2d5d9446de9935930ca85cfa7df7f), [e34d8834](https://github.com/testacular/testacular/commit/e34d8834d69ec4e022fcd6e1be4055add96d693c))
43+
* set urlRoot to /__karma__/ when proxying the root ([8b4fd64d](https://github.com/karma-runner/karma/commit/8b4fd64df6b7d07b5479e43dcd8cd2aa5e1efc9c))
44+
* **adapter.requirejs:** normalize paths before appending timestamp ([94889e7d](https://github.com/karma-runner/karma/commit/94889e7d2de701c67a2612e3fc6a51bfae891d36))
45+
* update dependencies to the latest ([93f96278](https://github.com/karma-runner/karma/commit/93f9627817f2d5d9446de9935930ca85cfa7df7f), [e34d8834](https://github.com/karma-runner/karma/commit/e34d8834d69ec4e022fcd6e1be4055add96d693c))
3646

3747

3848
<a name="v0.5.9"></a>
@@ -41,16 +51,16 @@
4151

4252
#### Bug Fixes
4353

44-
* **adapter.requirejs:** show error if no timestamp defined for a file ([59dbdbd1](https://github.com/testacular/testacular/commit/59dbdbd136baa87467b9b9a4cb6ce226ae87bbef))
45-
* **init:** fix logger configuration ([557922d7](https://github.com/testacular/testacular/commit/557922d71941e0929f9cdc0d3794424a1f27b311))
46-
* **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))
47-
* **reporter.dots:** only add newline to message when needed ([dbe1155c](https://github.com/testacular/testacular/commit/dbe1155cb57fc4caa792f83f45288238db0fc7e0)
54+
* **adapter.requirejs:** show error if no timestamp defined for a file ([59dbdbd1](https://github.com/karma-runner/karma/commit/59dbdbd136baa87467b9b9a4cb6ce226ae87bbef))
55+
* **init:** fix logger configuration ([557922d7](https://github.com/karma-runner/karma/commit/557922d71941e0929f9cdc0d3794424a1f27b311))
56+
* **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))
57+
* **reporter.dots:** only add newline to message when needed ([dbe1155c](https://github.com/karma-runner/karma/commit/dbe1155cb57fc4caa792f83f45288238db0fc7e0)
4858

4959
#### Features
5060

51-
* add "debug" button to easily open debugging window ([da85aab9](https://github.com/testacular/testacular/commit/da85aab927edd1614e4e05b136dee834344aa3cb))
52-
* **config:** support running on a custom hostname ([b8c5fe85](https://github.com/testacular/testacular/commit/b8c5fe8533b13fd59cbf48972d2021069a84ae5b))
53-
* **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))
61+
* add "debug" button to easily open debugging window ([da85aab9](https://github.com/karma-runner/karma/commit/da85aab927edd1614e4e05b136dee834344aa3cb))
62+
* **config:** support running on a custom hostname ([b8c5fe85](https://github.com/karma-runner/karma/commit/b8c5fe8533b13fd59cbf48972d2021069a84ae5b))
63+
* **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))
5464

5565

5666
### v0.5.8

‎CONTRIBUTING.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# How to contribute
2-
If you are thinking about making Testacular better, or you just want to hack on it, that’s great! Here
2+
If you are thinking about making Karma better, or you just want to hack on it, that’s great! Here
33
are some tips to get you started.
44

55
## Getting Started
66

77
* Make sure you have a [GitHub account](https://github.com/signup/free)
8-
* Consider [submiting a ticket](https://github.com/vojtajina/testacular/issues/new) for your issue,
8+
* Consider [submiting a ticket](https://github.com/karma-runner/karma/issues/new) for your issue,
99
assuming one does not already exist.
1010
* Clearly describe the issue including steps to reproduce when it is a bug.
1111
* 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.
1414
* Fork the repository on GitHub
1515

1616
## Initial setup
17-
* Clone your fork. For these instructions, we assume you cloned into '~/github/testacular'.
17+
* Clone your fork. For these instructions, we assume you cloned into '~/github/karma'.
1818
* Install dependencies:
1919

2020
```bash
21-
$ cd ~/github/testacular
21+
$ cd ~/github/karma
2222
# install local dependencies
2323
$ npm install
2424

@@ -29,7 +29,7 @@ are some tips to get you started.
2929
* Ensure you have a stable working baseline for development.
3030
```bash
3131
# This will run a full build and test pass.
32-
$ cd ~/github/testacular
32+
$ cd ~/github/karma
3333
$ grunt
3434
```
3535
On an unmodified 'master' branch, this command should always complete and report success.
@@ -40,7 +40,7 @@ are some tips to get you started.
4040
* File an issue (see above)
4141

4242
* Run 'grunt init-dev-env'. This will install a git commit trigger that will ensure your commit messages
43-
follows the [Testacular - Git Commit Msg Format Conventions]
43+
follows the [Karma - Git Commit Msg Format Conventions]
4444

4545

4646

@@ -58,7 +58,7 @@ are some tips to get you started.
5858
* Add tests for your changes as (or before) you make them, if at all possible.
5959
We use coffee script for our tests.
6060
* Commit your changes
61-
* Follow the [Testacular - Git Commit Msg Format Conventions]
61+
* Follow the [Karma - Git Commit Msg Format Conventions]
6262
* Push your changes to your forked repository
6363
* Send a pull request to the `master` branch.
6464
* Before submitting, make sure the default 'grunt' command succeeds locally.
@@ -95,11 +95,11 @@ $ grunt test:client
9595
* [Mailing List]
9696
* [General GitHub documentation]
9797
* [GitHub pull request documentation]
98-
* [@TestacularJS]
98+
* [@JsKarma]
9999

100-
[Testacular - Git Commit Msg Format Conventions]: http://testacular.github.com/0.6.0/dev/git-commit-msg.html
101-
[Issue tracker]: https://github.com/vojtajina/testacular/issues
102-
[Mailing List]: https://groups.google.com/forum/#!forum/testacular
100+
[Karma - Git Commit Msg Format Conventions]: http://karma-runner.github.com/0.8/dev/git-commit-msg.html
101+
[Issue tracker]: https://github.com/karma-runner/karma/issues
102+
[Mailing List]: https://groups.google.com/forum/#!forum/karma-users
103103
[General GitHub documentation]: http://help.github.com/
104104
[GitHub pull request documentation]: http://help.github.com/send-pull-requests/
105-
[@TestacularJS]: http://twitter.com/TestacularJS
105+
[@JsKarma]: http://twitter.com/JsKarma

‎Gruntfile.coffee‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ module.exports = (grunt) ->
2828
test:
2929
unit: 'simplemocha:unit'
3030
tasks: 'simplemocha:tasks'
31-
client: 'test/client/testacular.conf.js'
32-
e2e: 'test/e2e/*/testacular.conf.js'
31+
client: 'test/client/karma.conf.js'
32+
e2e: 'test/e2e/*/karma.conf.js'
3333

3434

3535
simplemocha:

‎README.md‎

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# 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)
1+
# 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)
22

33
A simple tool that allows you to execute JavaScript code in multiple
44
_real_ browsers, powered by [Node.js] and [Socket.io].
55

6-
> The main purpose of Testacular is to make your TDD development easy,
6+
> The main purpose of Karma is to make your TDD development easy,
77
> fast, and fun.
88
9-
## When should I use Testacular?
9+
## When should I use Karma?
1010

1111
* You want to test code in *real* browsers.
1212
* You want to test code in multiple browsers (desktop, mobile,
@@ -23,7 +23,7 @@ _real_ browsers, powered by [Node.js] and [Socket.io].
2323

2424
## But I still want to use \_insert testing library\_
2525

26-
Testacular is not a testing framework, neither an assertion library,
26+
Karma is not a testing framework, neither an assertion library,
2727
so for that you can use pretty much anything you like. Right now out
2828
of the box there is support for
2929

@@ -56,52 +56,52 @@ Every serious project has a screencast, so here is ours. Just click
5656
If you have [Node.js] installed, it's as simple as
5757

5858
```bash
59-
$ npm install -g testacular
59+
$ npm install -g karma
6060
```
6161

6262
This will give you the latest stable version available on npm. If you
6363
want to live life on the edge you can do so by
6464

6565
```bash
66-
$ npm install -g testacular@canary
66+
$ npm install -g karma@canary
6767
```
6868

6969
The curious can have a look at the documentation articles for
7070
[Getting Started] and [Versioning].
7171

7272
### Using it.
7373

74-
Go into your project and create a testacular configuration. That is
75-
just a simple JavaScript or CoffeeScript file that tells Testacular
74+
Go into your project and create a Karma configuration. That is
75+
just a simple JavaScript or CoffeeScript file that tells Karma
7676
where all the awesomeness of your project are.
7777

7878
You can find a simple example in
79-
[test/client/testacular.conf.js](https://github.com/testacular/testacular/blob/master/test/client/testacular.conf.js)
79+
[test/client/karma.conf.js](https://github.com/karma-runner/karma/blob/master/test/client/karma.conf.js)
8080
which contains most of the options.
8181

8282
To create your own from scratch there is the `init` command, which
83-
will be named `testacular.conf.js` by default:
83+
will be named `karma.conf.js` by default:
8484

8585
```bash
86-
$ testacular init
86+
$ karma init
8787
```
8888
This will ask you many questions and if you answered them all correct
89-
you will be allowed to use Testacular.
89+
you will be allowed to use Karma.
9090

9191
For more information on the configuration options see
9292
[Configuration File Overview].
9393

9494
Now that you have your configuration all that is left to do is to
95-
start Testacular:
95+
start Karma:
9696
```bash
97-
$ testacular start
97+
$ karma start
9898
```
9999

100100
If you want to run tests manually (without auto watching file changes), you can:
101101
```bash
102-
$ testacular run
102+
$ karma run
103103
```
104-
But only if you have started the Testacular server before.
104+
But only if you have started the Karma server before.
105105

106106

107107
## Why did you create this?
@@ -119,12 +119,12 @@ use the awesome [Socket.io] library and [Node.js].
119119
* [Docs]
120120
* [Mailing List]
121121
* [Issuetracker]
122-
* [@TestacularJS] on Twitter
122+
* [@JsKarma] on Twitter
123123

124124
## This is so great. I want to help.
125125

126126
See
127-
[Contributing.md](https://github.com/vojtajina/testacular/blob/master/CONTRIBUTING.md)
127+
[Contributing.md](https://github.com/karma-runner/karma/blob/master/CONTRIBUTING.md)
128128
or the [docs] for more information.
129129

130130

@@ -163,18 +163,16 @@ or the [docs] for more information.
163163
[Jasmine]: http://pivotal.github.com/jasmine/
164164
[Mocha]: http://visionmedia.github.com/mocha/
165165
[QUnit]: http://qunitjs.com/
166-
[Semantic Versioning]: http://semver.org/
167166
[here]: http://www.youtube.com/watch?v=MVw8N3hTfCI
168-
[installers]: http://nodejs.org/download/
169-
[Mailing List]: https://groups.google.com/forum/#!forum/testacular
170-
[Issuetracker]: https://github.com/testacular/testacular/issues
171-
[@TestacularJS]: http://twitter.com/TestacularJS
167+
[Mailing List]: https://groups.google.com/forum/#!forum/karma-users
168+
[Issuetracker]: https://github.com/karma-runner/karma/issues
169+
[@JsKarma]: http://twitter.com/JsKarma
172170
[RequireJS]: http://requirejs.org/
173171
[Istanbul]: https://github.com/gotwarlost/istanbul
174172

175-
[Browsers]: http://testacular.github.com/0.6.0/config/browsers.html
176-
[Versioning]: http://testacular.github.com/0.6.0/about/versioning.html
177-
[Configuration File Overview]: http://testacular.github.com/0.6.0/config/configuration-file.html
178-
[docs]: http://testacular.github.com
179-
[Docs]: http://testacular.github.com
180-
[website]: http://testacular.github.com
173+
[Browsers]: http://karma-runner.github.com/0.8/config/browsers.html
174+
[Versioning]: http://karma-runner.github.com/0.8/about/versioning.html
175+
[Configuration File Overview]: http://karma-runner.github.com/0.8/config/configuration-file.html
176+
[docs]: http://karma-runner.github.com
177+
[Docs]: http://karma-runner.github.com
178+
[website]: http://karma-runner.github.com

0 commit comments

Comments
 (0)