diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e3089e975..3ceadb8ed 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -7,4 +7,4 @@ assignees: '' --- -Please read http://karma-runner.github.io/4.0/intro/troubleshooting.html first +Please read https://karma-runner.github.io/4.0/intro/troubleshooting.html first diff --git a/.travis.yml b/.travis.yml index e6bee9aca..bbc3f0547 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,19 +6,16 @@ jobs: include: - node_js: "10" script: - - npm run init - npm run test:unit - npm run test:e2e - node_js: "12" script: - - npm run init - npm run test:unit - npm run test:e2e - node_js: "14" script: - - npm run init - if [[ "$TRAVIS_BRANCH" != "master" ]]; then commitlint-travis; fi; diff --git a/CHANGELOG.md b/CHANGELOG.md index 361bfb99f..81bfc9b61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [6.3.3](https://github.com/karma-runner/karma/compare/v6.3.2...v6.3.3) (2021-06-01) + + +### Bug Fixes + +* **server:** clean up vestigial code from proxy ([#3640](https://github.com/karma-runner/karma/issues/3640)) ([f4aeac3](https://github.com/karma-runner/karma/commit/f4aeac313ec07d61ce42edc2bd7ae5392a7b3fbc)), closes [/tools.ietf.org/html/std66#section-3](https://github.com//tools.ietf.org/html/std66/issues/section-3) + ## [6.3.2](https://github.com/karma-runner/karma/compare/v6.3.1...v6.3.2) (2021-03-29) @@ -120,7 +127,7 @@ server.start(); `dart` file type has been removed without a replacement. -`customFileHandlers` DI token has been removed. Use [`middleware`](http://karma-runner.github.io/5.2/config/configuration-file.html#middleware) to achieve similar functionality. +`customFileHandlers` DI token has been removed. Use [`middleware`](https://karma-runner.github.io/5.2/config/configuration-file.html#middleware) to achieve similar functionality. `customScriptTypes` DI token has been removed. It had no effect, so no replacement is provided. * **deps:** Some projects have socket.io tests that are version sensitive. @@ -1297,7 +1304,7 @@ to match this new format. #### Bug Fixes -* **client:** Fix stringify serializing objects ([0d0972a5](http://github.com/karma-runner/karma/commit/0d0972a59e6e0354033c9fdfec72d5ddfbfe8e1e)) +* **client:** Fix stringify serializing objects ([0d0972a5](https://github.com/karma-runner/karma/commit/0d0972a59e6e0354033c9fdfec72d5ddfbfe8e1e)) @@ -1306,7 +1313,7 @@ to match this new format. #### Bug Fixes -* **socket.io:** Force 0.9.16 which works with Chrome ([840ee5f7](http://github.com/karma-runner/karma/commit/840ee5f771d547f0fd140c3728ecb92edadf835e)) +* **socket.io:** Force 0.9.16 which works with Chrome ([840ee5f7](https://github.com/karma-runner/karma/commit/840ee5f771d547f0fd140c3728ecb92edadf835e)) @@ -1315,8 +1322,8 @@ to match this new format. #### Bug Fixes -* **proxy:** proxy to correct port ([a483636e](http://github.com/karma-runner/karma/commit/a483636efd440c13e6db36f6b661861558464089)) -* **watcher:** Close file watchers on exit event ([71810257](http://github.com/karma-runner/karma/commit/718102572a13d7e70d1f2c0b48b6b60a766b76b2)) +* **proxy:** proxy to correct port ([a483636e](https://github.com/karma-runner/karma/commit/a483636efd440c13e6db36f6b661861558464089)) +* **watcher:** Close file watchers on exit event ([71810257](https://github.com/karma-runner/karma/commit/718102572a13d7e70d1f2c0b48b6b60a766b76b2)) @@ -1325,7 +1332,7 @@ to match this new format. #### Bug Fixes -* **server:** complete acknowledgment ([f4144b0d](http://github.com/karma-runner/karma/commit/f4144b0d2d5eafff7245301454305d2005e46449)) +* **server:** complete acknowledgment ([f4144b0d](https://github.com/karma-runner/karma/commit/f4144b0d2d5eafff7245301454305d2005e46449)) @@ -1334,8 +1341,8 @@ to match this new format. #### Bug Fixes -* **browser:** don't add already active socket again on reconnect ([37a7958a](http://github.com/karma-runner/karma/commit/37a7958ae5517b8bf16e36cc90fe0b1cf0c09afd)) -* **reporter:** sourcemap not working in windows ([a9516af2](http://github.com/karma-runner/karma/commit/a9516af2af87953154e81b6080214798a9b64da5)) +* **browser:** don't add already active socket again on reconnect ([37a7958a](https://github.com/karma-runner/karma/commit/37a7958ae5517b8bf16e36cc90fe0b1cf0c09afd)) +* **reporter:** sourcemap not working in windows ([a9516af2](https://github.com/karma-runner/karma/commit/a9516af2af87953154e81b6080214798a9b64da5)) @@ -1344,7 +1351,7 @@ to match this new format. #### Bug Fixes -* **cli:** override if an arg is defined multiple times ([31eb2c2c](http://github.com/karma-runner/karma/commit/31eb2c2c3ca1663eff94f0398768a9b582332a93), closes [#1192](http://github.com/karma-runner/karma/issues/1192)) +* **cli:** override if an arg is defined multiple times ([31eb2c2c](https://github.com/karma-runner/karma/commit/31eb2c2c3ca1663eff94f0398768a9b582332a93), closes [#1192](https://github.com/karma-runner/karma/issues/1192)) @@ -1353,11 +1360,11 @@ to match this new format. #### Bug Fixes -* add emscripten memory image as binary suffix ([f6b2b561](http://github.com/karma-runner/karma/commit/f6b2b561c5d5e083cd204df9564024cac163b611)) -* Wrap url.parse to always return an object for query property ([72452e9f](http://github.com/karma-runner/karma/commit/72452e9fce4c42dc843c1157c19c08d39e3996df), closes [#1182](http://github.com/karma-runner/karma/issues/1182)) -* **client.html:** always open debug.html in a new browser process ([d176bcf4](http://github.com/karma-runner/karma/commit/d176bcf47e9b3a7df8c6ae691f767f1012214c53)) -* **preprocessor:** calculate sha1 on content returned from a preprocessor ([6cf79557](http://github.com/karma-runner/karma/commit/6cf795576bd6d77decac68ecc4838871b6df4836), closes [#1204](http://github.com/karma-runner/karma/issues/1204)) -* **runner:** Fix typo in CSS class name for .idle ([fc5a7ce0](http://github.com/karma-runner/karma/commit/fc5a7ce0904a78ece6a9cfa29215b17bd5c1929d)) +* add emscripten memory image as binary suffix ([f6b2b561](https://github.com/karma-runner/karma/commit/f6b2b561c5d5e083cd204df9564024cac163b611)) +* Wrap url.parse to always return an object for query property ([72452e9f](https://github.com/karma-runner/karma/commit/72452e9fce4c42dc843c1157c19c08d39e3996df), closes [#1182](https://github.com/karma-runner/karma/issues/1182)) +* **client.html:** always open debug.html in a new browser process ([d176bcf4](https://github.com/karma-runner/karma/commit/d176bcf47e9b3a7df8c6ae691f767f1012214c53)) +* **preprocessor:** calculate sha1 on content returned from a preprocessor ([6cf79557](https://github.com/karma-runner/karma/commit/6cf795576bd6d77decac68ecc4838871b6df4836), closes [#1204](https://github.com/karma-runner/karma/issues/1204)) +* **runner:** Fix typo in CSS class name for .idle ([fc5a7ce0](https://github.com/karma-runner/karma/commit/fc5a7ce0904a78ece6a9cfa29215b17bd5c1929d)) @@ -1366,7 +1373,7 @@ to match this new format. #### Bug Fixes -* Wrap url.parse to always return an object for query property ([72452e9f](http://github.com/karma-runner/karma/commit/72452e9fce4c42dc843c1157c19c08d39e3996df), closes [#1182](http://github.com/karma-runner/karma/issues/1182)) +* Wrap url.parse to always return an object for query property ([72452e9f](https://github.com/karma-runner/karma/commit/72452e9fce4c42dc843c1157c19c08d39e3996df), closes [#1182](https://github.com/karma-runner/karma/issues/1182)) ### 0.12.23 (2014-08-28) @@ -1374,13 +1381,13 @@ to match this new format. #### Bug Fixes -* **file_list:** Incorrect response after remove and add file ([0dbc0201](http://github.com/karma-runner/karma/commit/0dbc0201b2d1f7c909f74816cc50bc68013fc70f)) -* **preprocessor:** Throw error if can't open file ([bb4edde9](http://github.com/karma-runner/karma/commit/bb4edde9f15a07e6dac0d4dc01731f1e277d34a4)) +* **file_list:** Incorrect response after remove and add file ([0dbc0201](https://github.com/karma-runner/karma/commit/0dbc0201b2d1f7c909f74816cc50bc68013fc70f)) +* **preprocessor:** Throw error if can't open file ([bb4edde9](https://github.com/karma-runner/karma/commit/bb4edde9f15a07e6dac0d4dc01731f1e277d34a4)) #### Features -* **init:** install coffee-script automatically ([e876db63](http://github.com/karma-runner/karma/commit/e876db63dc5c4708345f5cdc335195fe4a5b8808), closes [#1152](http://github.com/karma-runner/karma/issues/1152)) +* **init:** install coffee-script automatically ([e876db63](https://github.com/karma-runner/karma/commit/e876db63dc5c4708345f5cdc335195fe4a5b8808), closes [#1152](https://github.com/karma-runner/karma/issues/1152)) @@ -1389,7 +1396,7 @@ to match this new format. #### Bug Fixes -* **preprocessor:** treat *.tgz, *.tbz2, *.txz & *.xz as binary ([7b642449](http://github.com/karma-runner/karma/commit/7b642449811b0c0af63147f74159c6dbb8900563)) +* **preprocessor:** treat *.tgz, *.tbz2, *.txz & *.xz as binary ([7b642449](https://github.com/karma-runner/karma/commit/7b642449811b0c0af63147f74159c6dbb8900563)) @@ -1398,7 +1405,7 @@ to match this new format. #### Bug Fixes -* **web-server:** cache static files ([eb5bd53f](http://github.com/karma-runner/karma/commit/eb5bd53ff0b6dc01e247fce9af01d0ed97d8c9ba)) +* **web-server:** cache static files ([eb5bd53f](https://github.com/karma-runner/karma/commit/eb5bd53ff0b6dc01e247fce9af01d0ed97d8c9ba)) @@ -1407,10 +1414,10 @@ to match this new format. #### Bug Fixes -* **config:** #1113 Watching is not working properly on linux ([c91ffbc0](http://github.com/karma-runner/karma/commit/c91ffbc05f78f2c17dcc43039300cdf045e64ccc), closes [#1113](http://github.com/karma-runner/karma/issues/1113)) +* **config:** #1113 Watching is not working properly on linux ([c91ffbc0](https://github.com/karma-runner/karma/commit/c91ffbc05f78f2c17dcc43039300cdf045e64ccc), closes [#1113](https://github.com/karma-runner/karma/issues/1113)) * **preprocessor:** - * treat *.gz files as binary ([1b56932f](http://github.com/karma-runner/karma/commit/1b56932fb49e0f3793f00599e11c24f6254236f4)) - * treat *.swf files as binary ([62d7d387](http://github.com/karma-runner/karma/commit/62d7d3873ed3e046ab24530cb20297ddad51cf85)) + * treat *.gz files as binary ([1b56932f](https://github.com/karma-runner/karma/commit/1b56932fb49e0f3793f00599e11c24f6254236f4)) + * treat *.swf files as binary ([62d7d387](https://github.com/karma-runner/karma/commit/62d7d3873ed3e046ab24530cb20297ddad51cf85)) @@ -1419,7 +1426,7 @@ to match this new format. #### Bug Fixes -* **proxy:** More useful proxyError log message ([96640a75](http://github.com/karma-runner/karma/commit/96640a75dab089255c0619733ca9d5f9fe80127d)) +* **proxy:** More useful proxyError log message ([96640a75](https://github.com/karma-runner/karma/commit/96640a75dab089255c0619733ca9d5f9fe80127d)) @@ -1428,7 +1435,7 @@ to match this new format. #### Bug Fixes -* **watcher:** handle paths on Windows ([6164d869](http://github.com/karma-runner/karma/commit/6164d8699c0f07fd8fcbae88221eb35d99fb02e4)) +* **watcher:** handle paths on Windows ([6164d869](https://github.com/karma-runner/karma/commit/6164d8699c0f07fd8fcbae88221eb35d99fb02e4)) @@ -1437,15 +1444,15 @@ to match this new format. #### Bug Fixes -* **logging:** Summarize SKIPPED tests in debug.html. Before: hundreds of SKIPPING lines in con ([a01100f5](http://github.com/karma-runner/karma/commit/a01100f5c6404366dd4219b9bf6c3161300dc735), closes [#1111](http://github.com/karma-runner/karma/issues/1111)) -* **server:** Force clients disconnect on Windows ([28239f42](http://github.com/karma-runner/karma/commit/28239f420460bdb9dd3b71f8088a0dfc1277dca6), closes [#1109](http://github.com/karma-runner/karma/issues/1109)) -* **travis_ci:** converted node versions as string ([25ee6fc9](http://github.com/karma-runner/karma/commit/25ee6fc9c57e11a012ecc3910fcb72386a3403a1)) +* **logging:** Summarize SKIPPED tests in debug.html. Before: hundreds of SKIPPING lines in con ([a01100f5](https://github.com/karma-runner/karma/commit/a01100f5c6404366dd4219b9bf6c3161300dc735), closes [#1111](https://github.com/karma-runner/karma/issues/1111)) +* **server:** Force clients disconnect on Windows ([28239f42](https://github.com/karma-runner/karma/commit/28239f420460bdb9dd3b71f8088a0dfc1277dca6), closes [#1109](https://github.com/karma-runner/karma/issues/1109)) +* **travis_ci:** converted node versions as string ([25ee6fc9](https://github.com/karma-runner/karma/commit/25ee6fc9c57e11a012ecc3910fcb72386a3403a1)) #### Features -* serve ePub as binary files ([82ed0c6e](http://github.com/karma-runner/karma/commit/82ed0c6e94e77757270e6694f7082eac5ef5e066)) -* **preprocessor:** add 'mp3' and 'ogg' as binary formats to avoid media corruption in the browser. ([65a0767e](http://github.com/karma-runner/karma/commit/65a0767e8024879e3a5c4557f376d8b6684530e8)) +* serve ePub as binary files ([82ed0c6e](https://github.com/karma-runner/karma/commit/82ed0c6e94e77757270e6694f7082eac5ef5e066)) +* **preprocessor:** add 'mp3' and 'ogg' as binary formats to avoid media corruption in the browser. ([65a0767e](https://github.com/karma-runner/karma/commit/65a0767e8024879e3a5c4557f376d8b6684530e8)) @@ -1454,7 +1461,7 @@ to match this new format. #### Bug Fixes -* **launcher:** cancel kill timeout when process exits cleanly ([bd662744](http://github.com/karma-runner/karma/commit/bd662744bfbe353ccb63c7a795f691d12530129c), closes [#946](http://github.com/karma-runner/karma/issues/946)) +* **launcher:** cancel kill timeout when process exits cleanly ([bd662744](https://github.com/karma-runner/karma/commit/bd662744bfbe353ccb63c7a795f691d12530129c), closes [#946](https://github.com/karma-runner/karma/issues/946)) ### v0.12.15 (2014-05-08) @@ -1462,7 +1469,7 @@ to match this new format. #### Bug Fixes -* **server:** don't wait for socket.io store expiration timeout ([cd30a422](http://github.com/karma-runner/karma/commit/cd30a422fbc3d9d96b9aae791063a20d02a5f195)) +* **server:** don't wait for socket.io store expiration timeout ([cd30a422](https://github.com/karma-runner/karma/commit/cd30a422fbc3d9d96b9aae791063a20d02a5f195)) ### v0.12.14 (2014-04-27) @@ -1470,7 +1477,7 @@ to match this new format. #### Bug Fixes -* **debug.html:** Added whitespace after 'SKIPPED' ([218ee859](http://github.com/karma-runner/karma/commit/218ee859d8c8f1c7d2f47435548030f367f1e05d)) +* **debug.html:** Added whitespace after 'SKIPPED' ([218ee859](https://github.com/karma-runner/karma/commit/218ee859d8c8f1c7d2f47435548030f367f1e05d)) ### v0.12.13 (2014-04-27) @@ -1478,7 +1485,7 @@ to match this new format. #### Bug Fixes -* **preprocessor:** serve NaCl binaries ([1cc6a1e3](http://github.com/karma-runner/karma/commit/1cc6a1e34b24768bffdaf47fb5e36559f5dc5135)) +* **preprocessor:** serve NaCl binaries ([1cc6a1e3](https://github.com/karma-runner/karma/commit/1cc6a1e34b24768bffdaf47fb5e36559f5dc5135)) ### v0.12.12 (2014-04-25) @@ -1486,7 +1493,7 @@ to match this new format. #### Bug Fixes -* **server:** properly close flash transport ([de89cd33](http://github.com/karma-runner/karma/commit/de89cd33b772d373569d2db2e9066c6656016aa3)) +* **server:** properly close flash transport ([de89cd33](https://github.com/karma-runner/karma/commit/de89cd33b772d373569d2db2e9066c6656016aa3)) ### v0.12.11 (2014-04-25) @@ -1494,7 +1501,7 @@ to match this new format. #### Bug Fixes -* **preprocessor:** remove ts from binary extensions ([82698523](http://github.com/karma-runner/karma/commit/8269852304d2d420bb25a0e4bb13bba58a339f39)) +* **preprocessor:** remove ts from binary extensions ([82698523](https://github.com/karma-runner/karma/commit/8269852304d2d420bb25a0e4bb13bba58a339f39)) ### v0.12.10 (2014-04-23) @@ -1502,7 +1509,7 @@ to match this new format. #### Bug Fixes -* **server:** clear web server close timeout on clean close ([34123fed](http://github.com/karma-runner/karma/commit/34123fed2fbe99b3a9a39ad5e0a141d55decb9f6)) +* **server:** clear web server close timeout on clean close ([34123fed](https://github.com/karma-runner/karma/commit/34123fed2fbe99b3a9a39ad5e0a141d55decb9f6)) ### v0.12.9 (2014-04-14) @@ -1510,7 +1517,7 @@ to match this new format. #### Bug Fixes -* **web-server:** strip scheme, host and port ([06a0da09](http://github.com/karma-runner/karma/commit/06a0da09320340a988513285046b577b4a7518fd)) +* **web-server:** strip scheme, host and port ([06a0da09](https://github.com/karma-runner/karma/commit/06a0da09320340a988513285046b577b4a7518fd)) ### v0.12.8 (2014-04-14) @@ -1518,7 +1525,7 @@ to match this new format. #### Bug Fixes -* **web-server:** inline the config, when serving debug.html ([1eb36430](http://github.com/karma-runner/karma/commit/1eb36430ca26a769cd8fd2ab5a471aecb31cad9f)) +* **web-server:** inline the config, when serving debug.html ([1eb36430](https://github.com/karma-runner/karma/commit/1eb36430ca26a769cd8fd2ab5a471aecb31cad9f)) ### v0.12.7 (2014-04-14) @@ -1526,8 +1533,8 @@ to match this new format. #### Bug Fixes -* don't crash/terminate upon errors within chokidar ([2c389311](http://github.com/karma-runner/karma/commit/2c389311ce683646675adccf5a7b7b3160335148)) -* **preprocessor:** consider SVG files as text files, not binary files ([ff288036](http://github.com/karma-runner/karma/commit/ff2880369f0c4e8b78d95bb20365cead340f8fc9), closes [#1026](http://github.com/karma-runner/karma/issues/1026)) +* don't crash/terminate upon errors within chokidar ([2c389311](https://github.com/karma-runner/karma/commit/2c389311ce683646675adccf5a7b7b3160335148)) +* **preprocessor:** consider SVG files as text files, not binary files ([ff288036](https://github.com/karma-runner/karma/commit/ff2880369f0c4e8b78d95bb20365cead340f8fc9), closes [#1026](https://github.com/karma-runner/karma/issues/1026)) ### v0.12.6 (2014-04-09) @@ -1538,7 +1545,7 @@ to match this new format. #### Bug Fixes -* **reporters:** format fix for console log ([d2d1377d](http://github.com/karma-runner/karma/commit/d2d1377d1be0da17196a1c82bf5584997d502b68), closes [#934](http://github.com/karma-runner/karma/issues/934)) +* **reporters:** format fix for console log ([d2d1377d](https://github.com/karma-runner/karma/commit/d2d1377d1be0da17196a1c82bf5584997d502b68), closes [#934](https://github.com/karma-runner/karma/issues/934)) ### v0.12.4 (2014-04-06) @@ -1546,7 +1553,7 @@ to match this new format. #### Bug Fixes -* **init:** Fix type in init text ([e34465b0](http://github.com/karma-runner/karma/commit/e34465b01cc583cac9645acc98d20acbf471c856), closes [#954](http://github.com/karma-runner/karma/issues/954)) +* **init:** Fix type in init text ([e34465b0](https://github.com/karma-runner/karma/commit/e34465b01cc583cac9645acc98d20acbf471c856), closes [#954](https://github.com/karma-runner/karma/issues/954)) ### v0.12.3 (2014-04-01) @@ -1554,12 +1561,12 @@ to match this new format. #### Bug Fixes -* **web-server:** implement a timeout on webServer.close() ([fe3dca78](http://github.com/karma-runner/karma/commit/fe3dca781def0a5f813e598fe73eb97b3f55d223), closes [#952](http://github.com/karma-runner/karma/issues/952)) +* **web-server:** implement a timeout on webServer.close() ([fe3dca78](https://github.com/karma-runner/karma/commit/fe3dca781def0a5f813e598fe73eb97b3f55d223), closes [#952](https://github.com/karma-runner/karma/issues/952)) #### Features -* **web-server:** run karma using multiple emulation modes, #631 ([b9a2930a](http://github.com/karma-runner/karma/commit/b9a2930a7fead5f29eb5f62b1a87739c4cf2e04b), closes [#936](http://github.com/karma-runner/karma/issues/936)) +* **web-server:** run karma using multiple emulation modes, #631 ([b9a2930a](https://github.com/karma-runner/karma/commit/b9a2930a7fead5f29eb5f62b1a87739c4cf2e04b), closes [#936](https://github.com/karma-runner/karma/issues/936)) ### v0.12.2 (2014-03-30) @@ -1570,7 +1577,7 @@ to match this new format. #### Features -* **preprocessor:** Adding the `dat` file extension as a recognised binary. ([be923571](http://github.com/karma-runner/karma/commit/be923571751199e0d795f620425fdf6eaf3f9818)) +* **preprocessor:** Adding the `dat` file extension as a recognised binary. ([be923571](https://github.com/karma-runner/karma/commit/be923571751199e0d795f620425fdf6eaf3f9818)) ## v0.12.0 (2014-03-10) @@ -1578,21 +1585,21 @@ to match this new format. #### Bug Fixes -* serving binary files ([8a30cf55](http://github.com/karma-runner/karma/commit/8a30cf55751bbaec672597f4f0ed66fe8742095f), closes [#864](http://github.com/karma-runner/karma/issues/864), [#885](http://github.com/karma-runner/karma/issues/885)) +* serving binary files ([8a30cf55](https://github.com/karma-runner/karma/commit/8a30cf55751bbaec672597f4f0ed66fe8742095f), closes [#864](https://github.com/karma-runner/karma/issues/864), [#885](https://github.com/karma-runner/karma/issues/885)) * **config:** - * fail if client.args is set to a non array ([fe4eaec0](http://github.com/karma-runner/karma/commit/fe4eaec09f1b7d34270dec7f948cd9441ef6fe48)) - * allow CoffeeScript 1.7 to be used ([a1583dec](http://github.com/karma-runner/karma/commit/a1583decd97438a241f99287159da2948eb3a95f)) -* **runner:** Karma hangs when file paths have \u in them #924 ([1199fc4d](http://github.com/karma-runner/karma/commit/1199fc4d7ee7be2d48a707876ddb857544cf2fb4), closes [#924](http://github.com/karma-runner/karma/issues/924)) + * fail if client.args is set to a non array ([fe4eaec0](https://github.com/karma-runner/karma/commit/fe4eaec09f1b7d34270dec7f948cd9441ef6fe48)) + * allow CoffeeScript 1.7 to be used ([a1583dec](https://github.com/karma-runner/karma/commit/a1583decd97438a241f99287159da2948eb3a95f)) +* **runner:** Karma hangs when file paths have \u in them #924 ([1199fc4d](https://github.com/karma-runner/karma/commit/1199fc4d7ee7be2d48a707876ddb857544cf2fb4), closes [#924](https://github.com/karma-runner/karma/issues/924)) * **web-server:** - * detach listeners after running ([3baa8e19](http://github.com/karma-runner/karma/commit/3baa8e1979003e4136e48515c0ba1815a950ca19)) - * close webserver after running ([f9dee468](http://github.com/karma-runner/karma/commit/f9dee4681cad716b56748e275680fb09e574978c)) + * detach listeners after running ([3baa8e19](https://github.com/karma-runner/karma/commit/3baa8e1979003e4136e48515c0ba1815a950ca19)) + * close webserver after running ([f9dee468](https://github.com/karma-runner/karma/commit/f9dee4681cad716b56748e275680fb09e574978c)) #### Features -* remove dependency on coffee-script ([af2d0e72](http://github.com/karma-runner/karma/commit/af2d0e72599d242c59ebefd6c3c965bf8496399e)) -* **config:** better error when Coffee/Live Script not installed ([aca84dc9](http://github.com/karma-runner/karma/commit/aca84dc9c6f4a966280bfcd080317c7c9d498f53)) -* **init:** generate test-main.(js/coffee) for RequireJS projects ([85900c93](http://github.com/karma-runner/karma/commit/85900c93f070264d71fdae6c257285767119c5c2)) +* remove dependency on coffee-script ([af2d0e72](https://github.com/karma-runner/karma/commit/af2d0e72599d242c59ebefd6c3c965bf8496399e)) +* **config:** better error when Coffee/Live Script not installed ([aca84dc9](https://github.com/karma-runner/karma/commit/aca84dc9c6f4a966280bfcd080317c7c9d498f53)) +* **init:** generate test-main.(js/coffee) for RequireJS projects ([85900c93](https://github.com/karma-runner/karma/commit/85900c93f070264d71fdae6c257285767119c5c2)) ### v0.11.14 (2014-02-04) @@ -1600,9 +1607,9 @@ to match this new format. #### Features -* **preprocessor:** allow preprocessor to cancel test run ([4d669bf3](http://github.com/karma-runner/karma/commit/4d669bf36b091e8808c9a280900fe19c8b2a72cc), closes [#550](http://github.com/karma-runner/karma/issues/550)) -* **reporter:** use spaces rather than tabs when formatting errors ([112becf7](http://github.com/karma-runner/karma/commit/112becf7ffa79d2519777300be0beff568114fe6)) -* **web-server:** include html files as ([03d7b106](http://github.com/karma-runner/karma/commit/03d7b1065e31e6a42e67a0eb3e22009731865648)) +* **preprocessor:** allow preprocessor to cancel test run ([4d669bf3](https://github.com/karma-runner/karma/commit/4d669bf36b091e8808c9a280900fe19c8b2a72cc), closes [#550](https://github.com/karma-runner/karma/issues/550)) +* **reporter:** use spaces rather than tabs when formatting errors ([112becf7](https://github.com/karma-runner/karma/commit/112becf7ffa79d2519777300be0beff568114fe6)) +* **web-server:** include html files as ([03d7b106](https://github.com/karma-runner/karma/commit/03d7b1065e31e6a42e67a0eb3e22009731865648)) ### v0.11.13 (2014-01-19) @@ -1610,12 +1617,12 @@ to match this new format. #### Bug Fixes -* **launcher:** compatibility with old launchers ([df557cec](http://github.com/karma-runner/karma/commit/df557cec8093de301a8d7dea4ddca8670629c0af)) +* **launcher:** compatibility with old launchers ([df557cec](https://github.com/karma-runner/karma/commit/df557cec8093de301a8d7dea4ddca8670629c0af)) #### Features -* support LiveScript configuration ([88deebe7](http://github.com/karma-runner/karma/commit/88deebe74a0b6f01e23f3ceefea5811183218600)) +* support LiveScript configuration ([88deebe7](https://github.com/karma-runner/karma/commit/88deebe74a0b6f01e23f3ceefea5811183218600)) ### v0.11.12 (2013-12-25) @@ -1623,14 +1630,14 @@ to match this new format. #### Bug Fixes -* **client:** show error if an adapter is removed ([a8b250cf](http://github.com/karma-runner/karma/commit/a8b250cf6a89cf064f67ecb1e2c040cc224d91e9)) +* **client:** show error if an adapter is removed ([a8b250cf](https://github.com/karma-runner/karma/commit/a8b250cf6a89cf064f67ecb1e2c040cc224d91e9)) #### Features -* **deps:** update all deps ([355a762c](http://github.com/karma-runner/karma/commit/355a762c0fd709261ff1403213bb10db6aa0a396), closes [#794](http://github.com/karma-runner/karma/issues/794)) -* **reporter:** support source maps (rewrite stack traces) ([70e4abd9](http://github.com/karma-runner/karma/commit/70e4abd9b8db6b05de557ca6e9204339a21be06b), closes [#594](http://github.com/karma-runner/karma/issues/594)) -* **watcher:** use polling on Mac ([66f50d7e](http://github.com/karma-runner/karma/commit/66f50d7e584d4cbde820e70746be3f3378440fa8)) +* **deps:** update all deps ([355a762c](https://github.com/karma-runner/karma/commit/355a762c0fd709261ff1403213bb10db6aa0a396), closes [#794](https://github.com/karma-runner/karma/issues/794)) +* **reporter:** support source maps (rewrite stack traces) ([70e4abd9](https://github.com/karma-runner/karma/commit/70e4abd9b8db6b05de557ca6e9204339a21be06b), closes [#594](https://github.com/karma-runner/karma/issues/594)) +* **watcher:** use polling on Mac ([66f50d7e](https://github.com/karma-runner/karma/commit/66f50d7e584d4cbde820e70746be3f3378440fa8)) ### v0.11.11 (2013-12-23) @@ -1638,10 +1645,10 @@ to match this new format. #### Bug Fixes -* **events:** resolve async events without any listener ([4e4bba88](http://github.com/karma-runner/karma/commit/4e4bba8803d1e4f461e568cc2e2ccf82e369721d)) +* **events:** resolve async events without any listener ([4e4bba88](https://github.com/karma-runner/karma/commit/4e4bba8803d1e4f461e568cc2e2ccf82e369721d)) * **launcher:** - * compatibility with Node v0.8 ([6a46be96](http://github.com/karma-runner/karma/commit/6a46be96499876e9aa0892325d783627bd1c535d)) - * compatibility with old launchers ([ffb74800](http://github.com/karma-runner/karma/commit/ffb74800638417910f453e108c8a4c6ffabaee29)) + * compatibility with Node v0.8 ([6a46be96](https://github.com/karma-runner/karma/commit/6a46be96499876e9aa0892325d783627bd1c535d)) + * compatibility with old launchers ([ffb74800](https://github.com/karma-runner/karma/commit/ffb74800638417910f453e108c8a4c6ffabaee29)) ### v0.11.10 (2013-12-22) @@ -1649,23 +1656,23 @@ to match this new format. #### Bug Fixes -* **completion:** add missin --log-level for karma init ([1e79eb55](http://github.com/karma-runner/karma/commit/1e79eb553e40530adef36b30b35a79f7a8026ddf)) -* **init:** clean the terminal if killed ([e2aa7497](http://github.com/karma-runner/karma/commit/e2aa74972ce84388a49090533e353b61bd9b16ed)) +* **completion:** add missin --log-level for karma init ([1e79eb55](https://github.com/karma-runner/karma/commit/1e79eb553e40530adef36b30b35a79f7a8026ddf)) +* **init:** clean the terminal if killed ([e2aa7497](https://github.com/karma-runner/karma/commit/e2aa74972ce84388a49090533e353b61bd9b16ed)) #### Features -* revert default usePolling to false ([e88fbc24](http://github.com/karma-runner/karma/commit/e88fbc24dd34e7976cae2547bad07e6f044a768b)) +* revert default usePolling to false ([e88fbc24](https://github.com/karma-runner/karma/commit/e88fbc24dd34e7976cae2547bad07e6f044a768b)) * **config:** - * remove default preprocessors (coffee, html2js) ([ada74d55](http://github.com/karma-runner/karma/commit/ada74d55aaf02882a5e12031838404e9ade07d36)) - * Add the abillity to supress the client console. This adds the client config opti ([4734962d](http://github.com/karma-runner/karma/commit/4734962de747c2a8eab5c8078954bd567e4b4410), closes [#744](http://github.com/karma-runner/karma/issues/744)) - * set default host/port from env vars ([0a6a0ee4](http://github.com/karma-runner/karma/commit/0a6a0ee4dd443250521d7898ab3086e7fc4f3afc)) - * Allow tests be to run in a new window instead of iframe ([471e3a8a](http://github.com/karma-runner/karma/commit/471e3a8a506836ba9711637d325c680cfbfff64f)) + * remove default preprocessors (coffee, html2js) ([ada74d55](https://github.com/karma-runner/karma/commit/ada74d55aaf02882a5e12031838404e9ade07d36)) + * Add the abillity to supress the client console. This adds the client config opti ([4734962d](https://github.com/karma-runner/karma/commit/4734962de747c2a8eab5c8078954bd567e4b4410), closes [#744](https://github.com/karma-runner/karma/issues/744)) + * set default host/port from env vars ([0a6a0ee4](https://github.com/karma-runner/karma/commit/0a6a0ee4dd443250521d7898ab3086e7fc4f3afc)) + * Allow tests be to run in a new window instead of iframe ([471e3a8a](https://github.com/karma-runner/karma/commit/471e3a8a506836ba9711637d325c680cfbfff64f)) * **init:** - * install karma-coffee-preprocessor ([29f5cf2d](http://github.com/karma-runner/karma/commit/29f5cf2d4b8c16a49d8528e02f781ef394e19191)) - * add nodeunit, nunit frameworks ([b4da1a08](http://github.com/karma-runner/karma/commit/b4da1a08b98414e903440d6ec2df7e94b48daea8)) - * install missing plugins (frameworks, launchers) ([1ba70a6f](http://github.com/karma-runner/karma/commit/1ba70a6fa673fbbb0c1750c777974662989dbf67)) -* **launcher:** log how long it took each browser to capture ([8dd54369](http://github.com/karma-runner/karma/commit/8dd54369f2ec3377ca1cf2d9c3cdacdc80a1331a)) + * install karma-coffee-preprocessor ([29f5cf2d](https://github.com/karma-runner/karma/commit/29f5cf2d4b8c16a49d8528e02f781ef394e19191)) + * add nodeunit, nunit frameworks ([b4da1a08](https://github.com/karma-runner/karma/commit/b4da1a08b98414e903440d6ec2df7e94b48daea8)) + * install missing plugins (frameworks, launchers) ([1ba70a6f](https://github.com/karma-runner/karma/commit/1ba70a6fa673fbbb0c1750c777974662989dbf67)) +* **launcher:** log how long it took each browser to capture ([8dd54369](https://github.com/karma-runner/karma/commit/8dd54369f2ec3377ca1cf2d9c3cdacdc80a1331a)) #### Breaking Changes @@ -1681,7 +1688,7 @@ Removed plugins that need to be installed explicitly are: * karma-chrome-launcher * karma-firefox-launcher * karma-phantomjs-launcher -* karma-script-launcher ([e033d561](http://github.com/karma-runner/karma/commit/e033d5618a98e1f83323bb650e0eaf89c339e5b5)) +* karma-script-launcher ([e033d561](https://github.com/karma-runner/karma/commit/e033d5618a98e1f83323bb650e0eaf89c339e5b5)) ### v0.11.9 (2013-12-03) @@ -1689,7 +1696,7 @@ Removed plugins that need to be installed explicitly are: #### Features -* **browser:** add browserNoActivity configuration ([bca8faad](http://github.com/karma-runner/karma/commit/bca8faad91b91baa898e3eba74fe0fa7336971c3)) +* **browser:** add browserNoActivity configuration ([bca8faad](https://github.com/karma-runner/karma/commit/bca8faad91b91baa898e3eba74fe0fa7336971c3)) ### v0.11.8 (2013-12-03) @@ -1697,13 +1704,13 @@ Removed plugins that need to be installed explicitly are: #### Bug Fixes -* **reporter:** remove SHAs from stack traces ([d7c31f97](http://github.com/karma-runner/karma/commit/d7c31f97be654f08d484563282a68d59638c5693)) -* **web-server:** correct caching headers for SHAs ([bf27e80b](http://github.com/karma-runner/karma/commit/bf27e80bb8ff3e60d19b408803596145c821bae7)) +* **reporter:** remove SHAs from stack traces ([d7c31f97](https://github.com/karma-runner/karma/commit/d7c31f97be654f08d484563282a68d59638c5693)) +* **web-server:** correct caching headers for SHAs ([bf27e80b](https://github.com/karma-runner/karma/commit/bf27e80bb8ff3e60d19b408803596145c821bae7)) #### Features -* **web-server:** disable gzip compression ([5ee886bc](http://github.com/karma-runner/karma/commit/5ee886bc16fc5a2bd08101d351027345530f87df)) +* **web-server:** disable gzip compression ([5ee886bc](https://github.com/karma-runner/karma/commit/5ee886bc16fc5a2bd08101d351027345530f87df)) ### v0.11.7 (2013-12-02) @@ -1711,14 +1718,14 @@ Removed plugins that need to be installed explicitly are: #### Bug Fixes -* keep all sockets in the case an old socket will survive ([a5945ebc](http://github.com/karma-runner/karma/commit/a5945ebcf11c4b17b99c40b78d7e2946f79c77c2)) -* reuse browser instance when restarting disconnected browser ([1f1a8ebf](http://github.com/karma-runner/karma/commit/1f1a8ebf38827fe772c631de200fdfa4a705a40b)) -* **client:** redirect to redirect_url after all messages are sent ([4d05602c](http://github.com/karma-runner/karma/commit/4d05602c803a6645d6c0e9404a60ed380f0329ee)) +* keep all sockets in the case an old socket will survive ([a5945ebc](https://github.com/karma-runner/karma/commit/a5945ebcf11c4b17b99c40b78d7e2946f79c77c2)) +* reuse browser instance when restarting disconnected browser ([1f1a8ebf](https://github.com/karma-runner/karma/commit/1f1a8ebf38827fe772c631de200fdfa4a705a40b)) +* **client:** redirect to redirect_url after all messages are sent ([4d05602c](https://github.com/karma-runner/karma/commit/4d05602c803a6645d6c0e9404a60ed380f0329ee)) #### Features -* **plugins:** ignore some non-plugins package names ([01776030](http://github.com/karma-runner/karma/commit/01776030a294ef051b6454c2fb9bc3f980a6d36a)) +* **plugins:** ignore some non-plugins package names ([01776030](https://github.com/karma-runner/karma/commit/01776030a294ef051b6454c2fb9bc3f980a6d36a)) ### v0.11.6 (2013-12-01) @@ -1727,26 +1734,26 @@ Removed plugins that need to be installed explicitly are: #### Bug Fixes * **config:** - * ignore empty string patterns ([66c86a66](http://github.com/karma-runner/karma/commit/66c86a6689aaac82006fa47762bd86496ad76bf7)) - * apply CLI logger options as soon as we can ([16179b08](http://github.com/karma-runner/karma/commit/16179b08021334cfab02a9dcba8d7f4bd219bc5e)) -* **preprocess:** set correct extension for the preprocessed path ([c9a64d2f](http://github.com/karma-runner/karma/commit/c9a64d2f1a94c0a7dab2fcde79696c139d958c57), closes [#843](http://github.com/karma-runner/karma/issues/843)) + * ignore empty string patterns ([66c86a66](https://github.com/karma-runner/karma/commit/66c86a6689aaac82006fa47762bd86496ad76bf7)) + * apply CLI logger options as soon as we can ([16179b08](https://github.com/karma-runner/karma/commit/16179b08021334cfab02a9dcba8d7f4bd219bc5e)) +* **preprocess:** set correct extension for the preprocessed path ([c9a64d2f](https://github.com/karma-runner/karma/commit/c9a64d2f1a94c0a7dab2fcde79696c139d958c57), closes [#843](https://github.com/karma-runner/karma/issues/843)) #### Features -* add `browserDisconnectTolerance` config option ([19590e1f](http://github.com/karma-runner/karma/commit/19590e1f66fd6c3b0d3fc9e90000c705198e0e70)) -* make autoWatch true by default ([8454898c](http://github.com/karma-runner/karma/commit/8454898c5e2b56cb81f0c808153b5f82cfac62a4)) -* **browser:** improve logging ([71b542ad](http://github.com/karma-runner/karma/commit/71b542adc6d6bd24d0ab2bb5cb0a473e1813804a)) -* **client:** show error if no adapter is included ([7213877f](http://github.com/karma-runner/karma/commit/7213877f3542a4c65d91d2dbde6633b928aba049)) +* add `browserDisconnectTolerance` config option ([19590e1f](https://github.com/karma-runner/karma/commit/19590e1f66fd6c3b0d3fc9e90000c705198e0e70)) +* make autoWatch true by default ([8454898c](https://github.com/karma-runner/karma/commit/8454898c5e2b56cb81f0c808153b5f82cfac62a4)) +* **browser:** improve logging ([71b542ad](https://github.com/karma-runner/karma/commit/71b542adc6d6bd24d0ab2bb5cb0a473e1813804a)) +* **client:** show error if no adapter is included ([7213877f](https://github.com/karma-runner/karma/commit/7213877f3542a4c65d91d2dbde6633b928aba049)) * **web-server:** - * use SHA hash instead of timestamps ([6e31cb24](http://github.com/karma-runner/karma/commit/6e31cb249ee5b32d91f37ea516ca0f84bddc5aa9), closes [#520](http://github.com/karma-runner/karma/issues/520)) - * cache preprocessed files ([c786ee2e](http://github.com/karma-runner/karma/commit/c786ee2ea19d2fcef078a30cecb70d69036a4803)) + * use SHA hash instead of timestamps ([6e31cb24](https://github.com/karma-runner/karma/commit/6e31cb249ee5b32d91f37ea516ca0f84bddc5aa9), closes [#520](https://github.com/karma-runner/karma/issues/520)) + * cache preprocessed files ([c786ee2e](https://github.com/karma-runner/karma/commit/c786ee2ea19d2fcef078a30cecb70d69036a4803)) #### Breaking Changes * `autoWatch` is `true` by default. If you rely on the default value being `false`, please set it in `karma.conf.js` explicitly to `false`. - ([8454898c](http://github.com/karma-runner/karma/commit/8454898c5e2b56cb81f0c808153b5f82cfac62a4)) + ([8454898c](https://github.com/karma-runner/karma/commit/8454898c5e2b56cb81f0c808153b5f82cfac62a4)) ### v0.11.5 (2013-11-25) @@ -1754,12 +1761,12 @@ Removed plugins that need to be installed explicitly are: #### Bug Fixes -* do not execute already executing browsers ([00136cf6](http://github.com/karma-runner/karma/commit/00136cf6d818b9bc6e4d77504e3ce1ed3d23d611)) +* do not execute already executing browsers ([00136cf6](https://github.com/karma-runner/karma/commit/00136cf6d818b9bc6e4d77504e3ce1ed3d23d611)) #### Features -* **launcher:** send SIGKILL if SIGINT does not kill the browser ([c0fa49aa](http://github.com/karma-runner/karma/commit/c0fa49aa7c56f14a3836986e8629411a72515a78)) +* **launcher:** send SIGKILL if SIGINT does not kill the browser ([c0fa49aa](https://github.com/karma-runner/karma/commit/c0fa49aa7c56f14a3836986e8629411a72515a78)) ### v0.11.4 (2013-11-21) @@ -1767,7 +1774,7 @@ Removed plugins that need to be installed explicitly are: #### Bug Fixes -* **browser:** reply "start" event ([4fde43de](http://github.com/karma-runner/karma/commit/4fde43deee22b53fcca52132c51c27f4012d2933)) +* **browser:** reply "start" event ([4fde43de](https://github.com/karma-runner/karma/commit/4fde43deee22b53fcca52132c51c27f4012d2933)) ### v0.11.3 (2013-11-20) @@ -1775,14 +1782,14 @@ Removed plugins that need to be installed explicitly are: #### Bug Fixes -* **config:** not append empty module if no custom launcher/rep/prep ([ee15a4e4](http://github.com/karma-runner/karma/commit/ee15a4e446e9f35949a2fdde7cbdbecdd7ca0750)) -* **watcher:** allow parentheses in a pattern ([438eb8dd](http://github.com/karma-runner/karma/commit/438eb8ddbc0b82cd5ab299f6f27f5ae3cc29a20f), closes [#728](http://github.com/karma-runner/karma/issues/728)) +* **config:** not append empty module if no custom launcher/rep/prep ([ee15a4e4](https://github.com/karma-runner/karma/commit/ee15a4e446e9f35949a2fdde7cbdbecdd7ca0750)) +* **watcher:** allow parentheses in a pattern ([438eb8dd](https://github.com/karma-runner/karma/commit/438eb8ddbc0b82cd5ab299f6f27f5ae3cc29a20f), closes [#728](https://github.com/karma-runner/karma/issues/728)) #### Features -* remove `karma` binary in favor of karma-cli ([c7d46270](http://github.com/karma-runner/karma/commit/c7d46270aca83ecfe78f69fa923bc574c0b5bfdc)) -* **config:** log if no config file is specified ([ce4c5646](http://github.com/karma-runner/karma/commit/ce4c5646dfff7bd40abfd1f9e51dc4f5b779bf4a)) +* remove `karma` binary in favor of karma-cli ([c7d46270](https://github.com/karma-runner/karma/commit/c7d46270aca83ecfe78f69fa923bc574c0b5bfdc)) +* **config:** log if no config file is specified ([ce4c5646](https://github.com/karma-runner/karma/commit/ce4c5646dfff7bd40abfd1f9e51dc4f5b779bf4a)) #### Breaking Changes @@ -1794,7 +1801,7 @@ The global `karma` command (installed by `karma-cli`) does look for local versio The `bin/karma` binary does not look for any other instances of Karma and just runs the one that it belongs to. - ([c7d46270](http://github.com/karma-runner/karma/commit/c7d46270aca83ecfe78f69fa923bc574c0b5bfdc)) + ([c7d46270](https://github.com/karma-runner/karma/commit/c7d46270aca83ecfe78f69fa923bc574c0b5bfdc)) ### v0.11.2 (2013-11-03) @@ -1802,8 +1809,8 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Bug Fixes -* **config:** use polling by default ([53978c42](http://github.com/karma-runner/karma/commit/53978c42f10088fb29d09597817c5dde58aeb32b)) -* **proxy:** handle proxied socket.io websocket transport upgrade ([fcc2a98f](http://github.com/karma-runner/karma/commit/fcc2a98f6af5f71a929130825b18db56557f29f7)) +* **config:** use polling by default ([53978c42](https://github.com/karma-runner/karma/commit/53978c42f10088fb29d09597817c5dde58aeb32b)) +* **proxy:** handle proxied socket.io websocket transport upgrade ([fcc2a98f](https://github.com/karma-runner/karma/commit/fcc2a98f6af5f71a929130825b18db56557f29f7)) ### v0.11.1 (2013-10-25) @@ -1811,18 +1818,18 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Bug Fixes -* launcher kill method which was throwing an error if no callback was specified bu ([5439f1cb](http://github.com/karma-runner/karma/commit/5439f1cbbdce9de0c2193171f75798587221e257)) -* **static:** Use full height for the iFrame. Fix based on PR #714. ([f95daf3c](http://github.com/karma-runner/karma/commit/f95daf3ce0af11b3c58dc09ef852ef0378b484fd)) +* launcher kill method which was throwing an error if no callback was specified bu ([5439f1cb](https://github.com/karma-runner/karma/commit/5439f1cbbdce9de0c2193171f75798587221e257)) +* **static:** Use full height for the iFrame. Fix based on PR #714. ([f95daf3c](https://github.com/karma-runner/karma/commit/f95daf3ce0af11b3c58dc09ef852ef0378b484fd)) * **watcher:** - * ignore double "add" events ([6cbaac7a](http://github.com/karma-runner/karma/commit/6cbaac7aba0534c9a7688f6953c61505fcd1289c)) - * improve watching efficiency ([6a272aa5](http://github.com/karma-runner/karma/commit/6a272aa5763eb0c728b76adc3b12bb12abc1aaca), closes [#616](http://github.com/karma-runner/karma/issues/616)) + * ignore double "add" events ([6cbaac7a](https://github.com/karma-runner/karma/commit/6cbaac7aba0534c9a7688f6953c61505fcd1289c)) + * improve watching efficiency ([6a272aa5](https://github.com/karma-runner/karma/commit/6a272aa5763eb0c728b76adc3b12bb12abc1aaca), closes [#616](https://github.com/karma-runner/karma/issues/616)) #### Features -* redirect client to "return_url" if specified ([6af2c897](http://github.com/karma-runner/karma/commit/6af2c897f3b35060a146efdef7da597ba53d8cdd)) -* **config:** add usePolling config ([18514d63](http://github.com/karma-runner/karma/commit/18514d63534c82094b231eb1e0b0e41011519183)) -* **watcher:** ignore initial "add" events ([dde1da4c](http://github.com/karma-runner/karma/commit/dde1da4c78470fec3565920df418a3786fb57797)) +* redirect client to "return_url" if specified ([6af2c897](https://github.com/karma-runner/karma/commit/6af2c897f3b35060a146efdef7da597ba53d8cdd)) +* **config:** add usePolling config ([18514d63](https://github.com/karma-runner/karma/commit/18514d63534c82094b231eb1e0b0e41011519183)) +* **watcher:** ignore initial "add" events ([dde1da4c](https://github.com/karma-runner/karma/commit/dde1da4c78470fec3565920df418a3786fb57797)) ## v0.11.0 (2013-08-26) @@ -1830,13 +1837,13 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Bug Fixes -* support reconnecting for manually captured browsers ([a8ac6d2d](http://github.com/karma-runner/karma/commit/a8ac6d2d86cad3898d21f019b6fc0a5a2b99cd00)) -* **reporter:** print browser stats immediately after it finishes ([65202d87](http://github.com/karma-runner/karma/commit/65202d870fa602e70483aeebbf87d0e11d6c1017)) +* support reconnecting for manually captured browsers ([a8ac6d2d](https://github.com/karma-runner/karma/commit/a8ac6d2d86cad3898d21f019b6fc0a5a2b99cd00)) +* **reporter:** print browser stats immediately after it finishes ([65202d87](https://github.com/karma-runner/karma/commit/65202d870fa602e70483aeebbf87d0e11d6c1017)) #### Features -* don't wait for all browsers and start executing immediately ([8647266f](http://github.com/karma-runner/karma/commit/8647266fd592fe245aaf2be964319d3026432e33), closes [#57](http://github.com/karma-runner/karma/issues/57)) +* don't wait for all browsers and start executing immediately ([8647266f](https://github.com/karma-runner/karma/commit/8647266fd592fe245aaf2be964319d3026432e33), closes [#57](https://github.com/karma-runner/karma/issues/57)) ### v0.10.2 (2013-08-21) @@ -1844,14 +1851,14 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Bug Fixes -* don't mark a browser captured if already being killed/timeouted ([21230979](http://github.com/karma-runner/karma/commit/212309795861cf599dbcc0ed60fff612ccf25cf5), closes [#88](http://github.com/karma-runner/karma/issues/88)) +* don't mark a browser captured if already being killed/timeouted ([21230979](https://github.com/karma-runner/karma/commit/212309795861cf599dbcc0ed60fff612ccf25cf5), closes [#88](https://github.com/karma-runner/karma/issues/88)) #### Features -* sync page unload (disconnect) ([ac9b3f01](http://github.com/karma-runner/karma/commit/ac9b3f01e88ce2cf91fc86aca9cecfdb8177a6fa)) -* buffer result messages when polling ([c4ad6970](http://github.com/karma-runner/karma/commit/c4ad69709103110a066ae1d9652af69e42434c6b)) -* allow browser to reconnect during the test run ([cbe2851b](http://github.com/karma-runner/karma/commit/cbe2851baa55312f00be420e0345283b33326266), closes [#82](http://github.com/karma-runner/karma/issues/82), [#590](http://github.com/karma-runner/karma/issues/590)) +* sync page unload (disconnect) ([ac9b3f01](https://github.com/karma-runner/karma/commit/ac9b3f01e88ce2cf91fc86aca9cecfdb8177a6fa)) +* buffer result messages when polling ([c4ad6970](https://github.com/karma-runner/karma/commit/c4ad69709103110a066ae1d9652af69e42434c6b)) +* allow browser to reconnect during the test run ([cbe2851b](https://github.com/karma-runner/karma/commit/cbe2851baa55312f00be420e0345283b33326266), closes [#82](https://github.com/karma-runner/karma/issues/82), [#590](https://github.com/karma-runner/karma/issues/590)) ### v0.10.1 (2013-08-06) @@ -1859,8 +1866,8 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Bug Fixes -* **cli:** Always pass an instance of fs to processArgs. ([06532b70](http://github.com/karma-runner/karma/commit/06532b7042371f270c227a1a7f859f2dab5afac1), closes [#677](http://github.com/karma-runner/karma/issues/677)) -* **init:** set default filename ([34d49b13](http://github.com/karma-runner/karma/commit/34d49b138f3bee8f17e1e9e343012d82887f906b), closes [#680](http://github.com/karma-runner/karma/issues/680), [#681](http://github.com/karma-runner/karma/issues/681)) +* **cli:** Always pass an instance of fs to processArgs. ([06532b70](https://github.com/karma-runner/karma/commit/06532b7042371f270c227a1a7f859f2dab5afac1), closes [#677](https://github.com/karma-runner/karma/issues/677)) +* **init:** set default filename ([34d49b13](https://github.com/karma-runner/karma/commit/34d49b138f3bee8f17e1e9e343012d82887f906b), closes [#680](https://github.com/karma-runner/karma/issues/680), [#681](https://github.com/karma-runner/karma/issues/681)) ## v0.10.0 (2013-08-06) @@ -1871,16 +1878,16 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Bug Fixes -* **init:** install plugin as dev dependency ([46b7a402](http://github.com/karma-runner/karma/commit/46b7a402fb8d700b10e2d72908c309d27212b5a0)) -* **runner:** do not confuse client args with the config file ([6f158aba](http://github.com/karma-runner/karma/commit/6f158abaf923dad6878a64da2d8a3c2c56ae604f)) +* **init:** install plugin as dev dependency ([46b7a402](https://github.com/karma-runner/karma/commit/46b7a402fb8d700b10e2d72908c309d27212b5a0)) +* **runner:** do not confuse client args with the config file ([6f158aba](https://github.com/karma-runner/karma/commit/6f158abaf923dad6878a64da2d8a3c2c56ae604f)) #### Features -* **config:** default config can be karma.conf.js or karma.conf.coffee ([d4a06f29](http://github.com/karma-runner/karma/commit/d4a06f296c4d805f2dccd85b4898766593af4d66)) +* **config:** default config can be karma.conf.js or karma.conf.coffee ([d4a06f29](https://github.com/karma-runner/karma/commit/d4a06f296c4d805f2dccd85b4898766593af4d66)) * **runner:** - * support config files ([449e4a1a](http://github.com/karma-runner/karma/commit/449e4a1ad8b8543f84f1953c875cfbdf5692caa7), closes [#625](http://github.com/karma-runner/karma/issues/625)) - * add --no-refresh to disable re-globbing ([b9c670ac](http://github.com/karma-runner/karma/commit/b9c670accbde8d027bdc3e09a4080c546b05853c)) + * support config files ([449e4a1a](https://github.com/karma-runner/karma/commit/449e4a1ad8b8543f84f1953c875cfbdf5692caa7), closes [#625](https://github.com/karma-runner/karma/issues/625)) + * add --no-refresh to disable re-globbing ([b9c670ac](https://github.com/karma-runner/karma/commit/b9c670accbde8d027bdc3e09a4080c546b05853c)) ### v0.9.7 (2013-07-31) @@ -1888,15 +1895,15 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Bug Fixes -* **init:** trim the inputs ([b72355cb](http://github.com/karma-runner/karma/commit/b72355cbeadc8e907e48bbd7d9a11e6de17343f7), closes [#663](http://github.com/karma-runner/karma/issues/663)) -* **web-server:** correct urlRegex in custom handlers ([a641c2c1](http://github.com/karma-runner/karma/commit/a641c2c1dd0f5f1e0045e7cff1516d2820a8204e)) +* **init:** trim the inputs ([b72355cb](https://github.com/karma-runner/karma/commit/b72355cbeadc8e907e48bbd7d9a11e6de17343f7), closes [#663](https://github.com/karma-runner/karma/issues/663)) +* **web-server:** correct urlRegex in custom handlers ([a641c2c1](https://github.com/karma-runner/karma/commit/a641c2c1dd0f5f1e0045e7cff1516d2820a8204e)) #### Features -* basic bash/zsh completion ([9dc1cf6a](http://github.com/karma-runner/karma/commit/9dc1cf6a6e095653fed6c79c4896c71af8af1953)) -* **runner:** allow passing changed/added/removed files ([b598106d](http://github.com/karma-runner/karma/commit/b598106de1295f3e1e58338a8eca2b60f99175c3)) -* **watcher:** make the batching delay configurable ([fa139312](http://github.com/karma-runner/karma/commit/fa139312a0fff981f11182c17ba6979dccca1105)) +* basic bash/zsh completion ([9dc1cf6a](https://github.com/karma-runner/karma/commit/9dc1cf6a6e095653fed6c79c4896c71af8af1953)) +* **runner:** allow passing changed/added/removed files ([b598106d](https://github.com/karma-runner/karma/commit/b598106de1295f3e1e58338a8eca2b60f99175c3)) +* **watcher:** make the batching delay configurable ([fa139312](https://github.com/karma-runner/karma/commit/fa139312a0fff981f11182c17ba6979dccca1105)) ### v0.9.6 (2013-07-28) @@ -1904,15 +1911,15 @@ The `bin/karma` binary does not look for any other instances of Karma and just r #### Features -* pass command line opts through to browser ([00d63d0b](http://github.com/karma-runner/karma/commit/00d63d0b965a998b04d1917d4c4421abc24cec18)) -* **web-server:** compress responses (gzip/deflate) ([8e8a2d44](http://github.com/karma-runner/karma/commit/8e8a2d4418e7abef7dca42e58bf09c95b07687b2)) +* pass command line opts through to browser ([00d63d0b](https://github.com/karma-runner/karma/commit/00d63d0b965a998b04d1917d4c4421abc24cec18)) +* **web-server:** compress responses (gzip/deflate) ([8e8a2d44](https://github.com/karma-runner/karma/commit/8e8a2d4418e7abef7dca42e58bf09c95b07687b2)) #### Breaking Changes * `runnerPort` is merged with `port` if you are using `karma run` with custom `--runer-port`, please change that to `--port`. - ([ca4c4d88](http://github.com/karma-runner/karma/commit/ca4c4d88b9a4a1992f7975aa32b37a008394847b)) + ([ca4c4d88](https://github.com/karma-runner/karma/commit/ca4c4d88b9a4a1992f7975aa32b37a008394847b)) ### v0.9.5 (2013-07-21) @@ -1920,21 +1927,21 @@ if you are using `karma run` with custom `--runer-port`, please change that to ` #### Bug Fixes -* detect a full page reload, show error and recover ([15d80f47](http://github.com/karma-runner/karma/commit/15d80f47a227839e9b0d54aeddf49b9aa9afe8aa), closes [#27](http://github.com/karma-runner/karma/issues/27)) -* better serialization in dump/console.log ([fd46365d](http://github.com/karma-runner/karma/commit/fd46365d1fd3a9bea15c04abeb7df33a3a2d96a4), closes [#640](http://github.com/karma-runner/karma/issues/640)) -* browsers_change event always has collection as arg ([42bf787f](http://github.com/karma-runner/karma/commit/42bf787f87304e6be23dd3dac893b3c3f77d6764)) -* **init:** generate config with the new syntax ([6b27fee5](http://github.com/karma-runner/karma/commit/6b27fee5a43a7d02e706355f62fe5105b4966c43)) -* **reporter:** prevent throwing exception when null is sent to formatter ([3b49c385](http://github.com/karma-runner/karma/commit/3b49c385fcc8ef96e72be390df058bd278b40c17)) -* **watcher:** ignore fs.stat errors ([74ccc9a8](http://github.com/karma-runner/karma/commit/74ccc9a8017f869bd7bbbf8831415964110a7073)) +* detect a full page reload, show error and recover ([15d80f47](https://github.com/karma-runner/karma/commit/15d80f47a227839e9b0d54aeddf49b9aa9afe8aa), closes [#27](https://github.com/karma-runner/karma/issues/27)) +* better serialization in dump/console.log ([fd46365d](https://github.com/karma-runner/karma/commit/fd46365d1fd3a9bea15c04abeb7df33a3a2d96a4), closes [#640](https://github.com/karma-runner/karma/issues/640)) +* browsers_change event always has collection as arg ([42bf787f](https://github.com/karma-runner/karma/commit/42bf787f87304e6be23dd3dac893b3c3f77d6764)) +* **init:** generate config with the new syntax ([6b27fee5](https://github.com/karma-runner/karma/commit/6b27fee5a43a7d02e706355f62fe5105b4966c43)) +* **reporter:** prevent throwing exception when null is sent to formatter ([3b49c385](https://github.com/karma-runner/karma/commit/3b49c385fcc8ef96e72be390df058bd278b40c17)) +* **watcher:** ignore fs.stat errors ([74ccc9a8](https://github.com/karma-runner/karma/commit/74ccc9a8017f869bd7bbbf8831415964110a7073)) #### Features -* capture window.alert ([284c4f5c](http://github.com/karma-runner/karma/commit/284c4f5c9c481759fe564627a00d72ba5c54e433)) -* ship html2js preprocessor as a default plugin ([37ecf416](http://github.com/karma-runner/karma/commit/37ecf41600a9b255ab3d57327cc83d64751642f5)) -* fail if zero tests executed ([5670415e](http://github.com/karma-runner/karma/commit/5670415ecdc5e54902b479c78df5c3c422855e5c), closes [#468](http://github.com/karma-runner/karma/issues/468)) -* **launcher:** normalize quoted paths ([f2155e0c](http://github.com/karma-runner/karma/commit/f2155e0c3305538c0fb95791e56f34743977a865), closes [#491](http://github.com/karma-runner/karma/issues/491)) -* **web-server:** serve css files ([4e305545](http://github.com/karma-runner/karma/commit/4e305545ddf2726c1fe65c46efd5e7c1045ac041), closes [#431](http://github.com/karma-runner/karma/issues/431)) +* capture window.alert ([284c4f5c](https://github.com/karma-runner/karma/commit/284c4f5c9c481759fe564627a00d72ba5c54e433)) +* ship html2js preprocessor as a default plugin ([37ecf416](https://github.com/karma-runner/karma/commit/37ecf41600a9b255ab3d57327cc83d64751642f5)) +* fail if zero tests executed ([5670415e](https://github.com/karma-runner/karma/commit/5670415ecdc5e54902b479c78df5c3c422855e5c), closes [#468](https://github.com/karma-runner/karma/issues/468)) +* **launcher:** normalize quoted paths ([f2155e0c](https://github.com/karma-runner/karma/commit/f2155e0c3305538c0fb95791e56f34743977a865), closes [#491](https://github.com/karma-runner/karma/issues/491)) +* **web-server:** serve css files ([4e305545](https://github.com/karma-runner/karma/commit/4e305545ddf2726c1fe65c46efd5e7c1045ac041), closes [#431](https://github.com/karma-runner/karma/issues/431)) ### v0.9.4 (2013-06-28) @@ -2121,7 +2128,7 @@ module.exports = function(karma) { #### Breaking Changes -* rename the project to "Karma": +- rename the project to "Karma": - 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`. ([026a20f7](https://github.com/karma-runner/karma/commit/026a20f7b467eb3b39c68ed509acc06e5dad58e6)) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 4ead0e1da..0e33996f8 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -10,4 +10,4 @@ Project maintainers have the right and responsibility to remove, edit, or reject Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. -This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/) +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 1.0.0, available at diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9385e6943..bc7f367c7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,8 +18,8 @@ with a fix. **Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub][egghead_series] -[docs_contributing]: http://karma-runner.github.io/latest/dev/contributing.html +[docs_contributing]: https://karma-runner.github.io/latest/dev/contributing.html [gitter]: https://gitter.im/karma-runner/karma -[stackoverflow]: http://stackoverflow.com/questions/tagged/karma-runner +[stackoverflow]: https://stackoverflow.com/questions/tagged/karma-runner [github_newissue]: https://github.com/karma-runner/karma/issues/new [egghead_series]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github diff --git a/LICENSE b/LICENSE index 2217a0478..d2d27ecd6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License -Copyright (C) 2011-2020 Google, Inc. +Copyright (C) 2011-2021 Google, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/README.md b/README.md index 41ca6f97e..e22171069 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Karma [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/karma-runner/karma) [![npm version](https://img.shields.io/npm/v/karma.svg?style=flat-square)](https://www.npmjs.com/package/karma) [![npm downloads](https://img.shields.io/npm/dm/karma.svg?style=flat-square)](https://npmcharts.com/compare/karma?minimal=true) -[![Build Status](https://img.shields.io/travis/karma-runner/karma/master.svg?style=flat-square)](https://travis-ci.org/karma-runner/karma) [![Build Status](https://img.shields.io/appveyor/ci/dignifiedquire/karma/master.svg?style=flat-square)](https://ci.appveyor.com/project/dignifiedquire/karma) [![Code Climate](https://img.shields.io/codeclimate/github/karma-runner/karma.svg?style=flat-square)](https://codeclimate.com/github/karma-runner/karma) [![PRs Welcome](https://img.shields.io/badge/prs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Dependency Status](https://img.shields.io/david/karma-runner/karma.svg?style=flat-square)](https://david-dm.org/karma-runner/karma) [![devDependency Status](https://img.shields.io/david/dev/karma-runner/karma.svg?style=flat-square)](https://david-dm.org/karma-runner/karma#info=devDependencies) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) +[![Build Status](https://img.shields.io/travis/karma-runner/karma/master.svg?style=flat-square)](https://travis-ci.org/karma-runner/karma) [![Build Status](https://img.shields.io/appveyor/ci/dignifiedquire/karma/master.svg?style=flat-square)](https://ci.appveyor.com/project/dignifiedquire/karma) [![Code Climate](https://img.shields.io/codeclimate/github/karma-runner/karma.svg?style=flat-square)](https://codeclimate.com/github/karma-runner/karma) [![PRs Welcome](https://img.shields.io/badge/prs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com/) [![Dependency Status](https://img.shields.io/david/karma-runner/karma.svg?style=flat-square)](https://david-dm.org/karma-runner/karma) [![devDependency Status](https://img.shields.io/david/dev/karma-runner/karma.svg?style=flat-square)](https://david-dm.org/karma-runner/karma#info=devDependencies) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) A simple tool that allows you to execute JavaScript code in multiple _real_ browsers. @@ -48,7 +48,7 @@ So for testing purposes you can use pretty much anything you like. There are alr * [Jasmine] * [Mocha] * [QUnit] -* and [many others](https://www.npmjs.org/browse/keyword/karma-adapter) +* and [many others](https://www.npmjs.com/search?q=keywords:karma-adapter) If you can't find an adapter for your favourite framework, don't worry and write your own. It's not that hard and we are here to help. @@ -108,8 +108,8 @@ use the awesome [Socket.io] library and [Node.js]. [AngularJS]: https://angularjs.org/ [JSTD]: https://code.google.com/p/js-test-driver/ -[Socket.io]: http://socket.io/ -[Node.js]: http://nodejs.org/ +[Socket.io]: https://socket.io/ +[Node.js]: https://nodejs.org/ [Jasmine]: https://github.com/karma-runner/karma-jasmine [Mocha]: https://github.com/karma-runner/karma-mocha [QUnit]: https://github.com/karma-runner/karma-qunit @@ -117,7 +117,7 @@ use the awesome [Socket.io] library and [Node.js]. [Mailing List]: https://groups.google.com/forum/#!forum/karma-users [Issue Tracker]: https://github.com/karma-runner/karma/issues [@JsKarma]: https://twitter.com/JsKarma -[RequireJS]: http://requirejs.org/ +[RequireJS]: https://requirejs.org/ [Istanbul]: https://github.com/gotwarlost/istanbul [browsers]: https://karma-runner.github.io/latest/config/browsers.html diff --git a/appveyor.yml b/appveyor.yml index c80d3b651..3bdd08d81 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,9 +20,6 @@ install: # Install our package dependencies - appveyor-retry npm install - # Install our current directory as a dependency of itself - - npm run init:windows - test_script: - npm run test:unit - npm run test:client diff --git a/client/main.js b/client/main.js index 8780d8768..6ca6e5d8b 100644 --- a/client/main.js +++ b/client/main.js @@ -10,7 +10,7 @@ var KARMA_URL_ROOT = constants.KARMA_URL_ROOT var KARMA_PROXY_PATH = constants.KARMA_PROXY_PATH var BROWSER_SOCKET_TIMEOUT = constants.BROWSER_SOCKET_TIMEOUT -// Connect to the server using socket.io http://socket.io +// Connect to the server using socket.io https://socket.io/ var socket = io(location.host, { reconnectionDelay: 500, reconnectionDelayMax: Infinity, diff --git a/config.tpl.coffee b/config.tpl.coffee index c7f15de80..e0b468c53 100644 --- a/config.tpl.coffee +++ b/config.tpl.coffee @@ -9,7 +9,7 @@ module.exports = (config) -> # frameworks to use - # available frameworks: https://npmjs.org/browse/keyword/karma-adapter + # available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: [%FRAMEWORKS%] @@ -24,14 +24,14 @@ module.exports = (config) -> # preprocess matching files before serving them to the browser - # available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + # available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor preprocessors: {%PREPROCESSORS% } # test results reporter to use # possible values: 'dots', 'progress' - # available reporters: https://npmjs.org/browse/keyword/karma-reporter + # available reporters: https://www.npmjs.com/search?q=keywords:karma-reporter reporters: ['progress'] @@ -58,7 +58,7 @@ module.exports = (config) -> # start these browsers - # available browser launchers: https://npmjs.org/browse/keyword/karma-launcher + # available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher browsers: [%BROWSERS%] @@ -67,5 +67,5 @@ module.exports = (config) -> singleRun: false # Concurrency level - # how many browser should be started simultaneous + # how many browser instances should be started simultaneously concurrency: Infinity diff --git a/config.tpl.js b/config.tpl.js index d50e11359..180937ef9 100644 --- a/config.tpl.js +++ b/config.tpl.js @@ -9,7 +9,7 @@ module.exports = function(config) { // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter + // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: [%FRAMEWORKS%], @@ -24,14 +24,14 @@ module.exports = function(config) { // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + // available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor preprocessors: {%PREPROCESSORS% }, // test results reporter to use // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter + // available reporters: https://www.npmjs.com/search?q=keywords:karma-reporter reporters: ['progress'], @@ -53,7 +53,7 @@ module.exports = function(config) { // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher + // available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher browsers: [%BROWSERS%], @@ -62,7 +62,7 @@ module.exports = function(config) { singleRun: false, // Concurrency level - // how many browser should be started simultaneous + // how many browser instances should be started simultaneously concurrency: Infinity }) } diff --git a/config.tpl.ls b/config.tpl.ls index c185ae4dd..8e498f2e6 100644 --- a/config.tpl.ls +++ b/config.tpl.ls @@ -9,7 +9,7 @@ module.exports = (config) -> # frameworks to use - # available frameworks: https://npmjs.org/browse/keyword/karma-adapter + # available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: [%FRAMEWORKS%] @@ -24,13 +24,13 @@ module.exports = (config) -> # preprocess matching files before serving them to the browser - # available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + # available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor preprocessors: {%PREPROCESSORS% } # test results reporter to use # possible values: 'dots', 'progress' - # available reporters: https://npmjs.org/browse/keyword/karma-reporter + # available reporters: https://www.npmjs.com/search?q=keywords:karma-reporter reporters: ['progress'] @@ -57,7 +57,7 @@ module.exports = (config) -> # satart these browsers - # available browser launchers: https://npmjs.org/browse/keyword/karma-launcher + # available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher browsers: [%BROWSERS%] @@ -66,5 +66,5 @@ module.exports = (config) -> singleRun: false # Concurrency level - # how many browser should be started simultaneous + # how many browser instances should be started simultaneously concurrency: Infinity diff --git a/config.tpl.ts b/config.tpl.ts index 1a90a3284..2f8f830bb 100644 --- a/config.tpl.ts +++ b/config.tpl.ts @@ -9,7 +9,7 @@ module.exports = (config) => { // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter + // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: [%FRAMEWORKS%], @@ -24,14 +24,14 @@ module.exports = (config) => { // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + // available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor preprocessors: {%PREPROCESSORS% }, // test results reporter to use // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter + // available reporters: https://www.npmjs.com/search?q=keywords:karma-reporter reporters: ['progress'], @@ -53,7 +53,7 @@ module.exports = (config) => { // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher + // available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher browsers: [%BROWSERS%], @@ -62,7 +62,7 @@ module.exports = (config) => { singleRun: false, // Concurrency level - // how many browser should be started simultaneous + // how many browser instances should be started simultaneously concurrency: Infinity }) } diff --git a/context/main.js b/context/main.js index 89b450c31..f24ffe810 100644 --- a/context/main.js +++ b/context/main.js @@ -10,7 +10,7 @@ var callParentKarmaMethod = ContextKarma.getDirectCallParentKarmaMethod(parentWi // If we don't have access to the window, then use `postMessage` // DEV: In Electron, we don't have access to the parent window due to it being in a separate process // DEV: We avoid using this in Internet Explorer as they only support strings -// http://caniuse.com/#search=postmessage +// https://caniuse.com/?search=postmessage var haveParentAccess = false try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permisison errors) */ } if (!haveParentAccess) { diff --git a/docs/about/01-versioning.md b/docs/about/01-versioning.md index 7c5ce6802..3a3b5a1e7 100644 --- a/docs/about/01-versioning.md +++ b/docs/about/01-versioning.md @@ -12,4 +12,4 @@ or: $ npm --save-dev install karma ``` -[Semantic Versioning]: http://semver.org +[Semantic Versioning]: https://semver.org/ diff --git a/docs/about/03-migration.md b/docs/about/03-migration.md index 21836d540..6f542df46 100644 --- a/docs/about/03-migration.md +++ b/docs/about/03-migration.md @@ -1,5 +1,6 @@ +--- pageTitle: Migration from v0.10 - +--- The good thing is that you don't have to migrate everything at once. You can leave all the existing projects using an older version of Karma and only use the latest @@ -17,7 +18,7 @@ This will install the latest version of Karma and also update `package.json` of ## Install missing plugins Karma does not ship with any "default" plugins anymore. -For existing projects, this should not cause any problems as NPM (when updating Karma to 0.10 using +For existing projects, this should not cause any problems as npm (when updating Karma to 0.10 using `npm install karma --save-dev`) added these "default" plugins into `package.json` as regular dependencies. For new projects, just remember you have to install all the plugins you need. These are the "default" plugins that were removed: - karma-jasmine @@ -50,8 +51,8 @@ npm install -g karma-cli But hey, give it a shot first, it's really awesome to run your tests on every save! -## NPM complaining -In some cases, NPM can run into dependency tree issues during the migration process. If you are faced with an "unsatisfied peer dependency" error, removing all of the packages (`rm -rf ./node_modules`) and installing them again should clear up the issue. +## npm complaining +In some cases, npm can run into dependency tree issues during the migration process. If you are faced with an "unsatisfied peer dependency" error, removing all of the packages (`rm -rf ./node_modules`) and installing them again should clear up the issue. If you have any other issues, please ask on the [mailing list]. diff --git a/docs/config/01-configuration-file.md b/docs/config/01-configuration-file.md index 6d1c73f53..d9cd5d7cf 100644 --- a/docs/config/01-configuration-file.md +++ b/docs/config/01-configuration-file.md @@ -425,7 +425,7 @@ See [config/files] for more information. **Description:** List of test frameworks you want to use. Typically, you will set this to `['jasmine']`, `['mocha']` or `['qunit']`... -Please note just about all frameworks in Karma require an additional plugin/framework library to be installed (via NPM). +Please note just about all frameworks in Karma require an additional plugin/framework library to be installed (via npm). Additional information can be found in [plugins]. @@ -494,9 +494,9 @@ httpsServerOptions: { **Description:** List of names of additional middleware you want the karma server to use. Middleware will be used in the order listed. -You must have installed the middleware via a plugin/framework (either inline or via NPM). Additional information can be found in [plugins]. +You must have installed the middleware via a plugin/framework (either inline or via npm). Additional information can be found in [plugins]. -The plugin must provide an express/connect middleware function (details about this can be found in [the Express docs](http://expressjs.com/guide/using-middleware.html). An example of custom inline middleware is shown below. +The plugin must provide an express/connect middleware function (details about this can be found in [the Express docs](https://expressjs.com/en/guide/using-middleware.html). An example of custom inline middleware is shown below. **Example:** ```javascript @@ -550,7 +550,7 @@ mime: { **Description:** List of plugins to load. A plugin can be either a plugin object, or a string containing name of the module which exports a plugin object. See [plugins] for more information on how to install and use plugins. -By default, Karma loads plugins from all sibling NPM packages which have a name starting with `karma-*`. +By default, Karma loads plugins from all sibling npm packages which have a name starting with `karma-*`. ## port @@ -584,7 +584,7 @@ If, after test execution or after Karma attempts to kill the browser, browser is Preprocessors can be loaded through [plugins]. -Note: Just about all preprocessors in Karma require an additional library to be installed (via NPM). +Note: Just about all preprocessors in Karma require an additional library to be installed (via npm). Be aware that preprocessors may be transforming the files and file types that are available at run time. For instance, if you are using the "coverage" preprocessor on your source files, if you then attempt to interactively debug @@ -682,7 +682,7 @@ This is disabled by default (since the default value is 0). Additional reporters, such as `growl`, `junit`, `teamcity` or `coverage` can be loaded through [plugins]. -Note: Just about all additional reporters in Karma (other than progress) require an additional library to be installed (via NPM). +Note: Just about all additional reporters in Karma (other than progress) require an additional library to be installed (via npm). ## formatError @@ -748,7 +748,7 @@ on whether all tests passed or any tests failed. **Default:** `['polling', 'websocket']` **Description:** An array of allowed transport methods between the browser and testing server. This configuration setting -is handed off to [socket.io](http://socket.io/) (which manages the communication +is handed off to [socket.io](https://socket.io/) (which manages the communication between browsers and the testing server). diff --git a/docs/config/03-browsers.md b/docs/config/03-browsers.md index 2ae47e05e..687a37319 100644 --- a/docs/config/03-browsers.md +++ b/docs/config/03-browsers.md @@ -18,12 +18,12 @@ Note: Most of the browser launchers need to be loaded as [plugins]. - [Internet Explorer](https://www.npmjs.com/package/karma-ie-launcher) - [SauceLabs](https://www.npmjs.com/package/karma-sauce-launcher) - [BrowserStack](https://www.npmjs.com/package/karma-browserstack-launcher) -- [many more](https://www.npmjs.org/browse/keyword/karma-launcher) +- [many more](https://www.npmjs.com/search?q=keywords:karma-launcher) Here's an example of how to add Firefox to your testing suite: ```bash -# Install the launcher first with NPM: +# Install the launcher first with npm: $ npm install karma-firefox-launcher --save-dev ``` diff --git a/docs/config/04-preprocessors.md b/docs/config/04-preprocessors.md index 7854dfdb8..5150e24f6 100644 --- a/docs/config/04-preprocessors.md +++ b/docs/config/04-preprocessors.md @@ -22,12 +22,12 @@ Note: Most of the preprocessors need to be loaded as [plugins]. - If this preprocessor is disabled, included .html files will need `base/` added to beginning of their path reference. See [discussion in issue 788][issue788]. - [coverage] - [ng-html2js] -- [many more](https://www.npmjs.org/browse/keyword/karma-preprocessor) +- [many more](https://www.npmjs.com/search?q=keywords:karma-preprocessor) Here's an example of how to add the CoffeScript preprocessor to your testing suite: ```bash -# Install it first with NPM +# Install it first with npm $ npm install karma-coffee-preprocessor --save-dev ``` @@ -108,9 +108,9 @@ preprocessors: { Then karma will execute `'a'` before executing `'b'`. -If a file matches multiple keys, karma will use the `config.preprocessor_priority` -map to set the order. If this config option is not set, karma do its best to -execute the preprocessors in a reasonable order. So if you have: +If a file matches multiple keys, karma will use the `config.preprocessor_priority` map to control the execution order. The `config.preprocessor_priority` should be an object with property names equal to the preprocessor names and property values equal to the priority of execution. Higher priority preprocessors are run earlier. The default priority is 0. + +If this config option is not set, karma will do its best to execute the preprocessors in a reasonable order. So if you have: ```js preprocessors: { diff --git a/docs/config/05-plugins.md b/docs/config/05-plugins.md index 4cf8b9203..cc52d2d76 100644 --- a/docs/config/05-plugins.md +++ b/docs/config/05-plugins.md @@ -1,6 +1,6 @@ Karma can be easily extended through plugins. In fact, all the existing preprocessors, reporters, browser launchers and frameworks are plugins. -You can install [existing plugins] from NPM or you can write [your own plugins][developing plugins] for Karma. +You can install [existing plugins] from npm or you can write [your own plugins][developing plugins] for Karma. ## Installing Plugins @@ -25,14 +25,14 @@ npm install karma- --save-dev ## Loading Plugins -By default, Karma loads plugins from all sibling NPM packages which have a name starting with `karma-*`. +By default, Karma loads plugins from all sibling npm packages which have a name starting with `karma-*`. You can also override this behavior and explicitly list plugins you want to load via the `plugins` configuration setting: ```javascript config.set({ plugins: [ - // Load a plugin you installed from NPM. + // Load a plugin you installed from npm. require('karma-jasmine'), // Load a plugin from the file in your project. @@ -53,5 +53,5 @@ config.set({ Adding a plugin to the `plugins` array only makes Karma aware of the plugin, but it does not activate it. Depending on the plugin type you'll need to add a plugin name into `frameworks`, `reporters`, `preprocessors`, `middleware` or `browsers` configuration key to activate it. For the detailed information refer to the corresponding plugin documentation or check out [Developing plugins][developing plugins] guide for more in-depth explanation of how plugins work. -[existing plugins]: https://npmjs.org/browse/keyword/karma-plugin +[existing plugins]: https://www.npmjs.com/search?q=keywords:karma-plugin [developing plugins]: ../dev/plugins.html diff --git a/docs/dev/01-contributing.md b/docs/dev/01-contributing.md index c4164d4ce..d1b57244d 100644 --- a/docs/dev/01-contributing.md +++ b/docs/dev/01-contributing.md @@ -1,4 +1,6 @@ +--- pageTitle: Contributing to Karma +--- **Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub] @@ -51,7 +53,7 @@ Check out [Maintaining Karma]. Becoming a Karma maintainer is simple. You just do it. There is no test to pass ;-) [gitter]: https://gitter.im/karma-runner/karma -[Stack Overflow]: http://stackoverflow.com/questions/tagged/karma-runner +[Stack Overflow]: https://stackoverflow.com/questions/tagged/karma-runner [`docs/`]: https://github.com/karma-runner/karma/tree/master/docs [Maintaining Karma]: ./maintaining.html [How to Contribute to an Open Source Project on GitHub]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github diff --git a/docs/dev/02-making-changes.md b/docs/dev/02-making-changes.md index 02fa76c06..7985e0458 100644 --- a/docs/dev/02-making-changes.md +++ b/docs/dev/02-making-changes.md @@ -20,13 +20,9 @@ Here are some tips on how to set up a Karma workspace and how to send a good pul $ git clone https://github.com//karma.git $ cd karma ``` -* Install for development. Use a recent npm version, ignore peerdep warnings +* Install for development ```bash $ npm install - - $ npm run init - # or if you're on Windows - $ npm run init:windows ``` ## Testing and Building @@ -96,10 +92,10 @@ For any code changes to be accepted, the CLA must be signed. It's a quick proces - [Mailing List](https://groups.google.com/forum/#!forum/karma-users) - [Issue tracker](https://github.com/karma-runner/karma/issues) -- [General GitHub documentation](http://help.github.com/) -- [GitHub pull request documentation](http://help.github.com/send-pull-requests/) +- [General GitHub documentation](https://docs.github.com/) +- [GitHub pull request documentation](https://docs.github.com/github/collaborating-with-issues-and-pull-requests/about-pull-requests#about-pull-requests) [commit message conventions]: git-commit-msg.html -[simple click-through form]: http://code.google.com/legal/individual-cla-v1.0.html -[the form]: http://code.google.com/legal/corporate-cla-v1.0.html +[simple click-through form]: https://code.google.com/legal/individual-cla-v1.0.html +[the form]: https://code.google.com/legal/corporate-cla-v1.0.html [Fork the repository]: https://github.com/karma-runner/karma/fork diff --git a/docs/dev/03-maintaining.md b/docs/dev/03-maintaining.md index 310959446..6e541ffb1 100644 --- a/docs/dev/03-maintaining.md +++ b/docs/dev/03-maintaining.md @@ -1,6 +1,6 @@ +--- pageTitle: Maintaining Karma - - +--- This document is for people working on Karma. It describes common tasks such as triaging or merging pull requests. @@ -64,7 +64,7 @@ Nothing is set in a stone. If you feel like there is a way to improve this workf please send a proposal to [karma-devs@googlegroups.com](mailto:karma-devs@googlegroups.com). [gitter/karma-runner]: https://gitter.im/karma-runner -[convention]: http://karma-runner.github.io/latest/dev/git-commit-msg.html +[convention]: https://karma-runner.github.io/latest/dev/git-commit-msg.html [fetch_pr]: https://github.com/vojtajina/dotfiles/blob/master/bin/fetch_pr [merge_pr]: https://github.com/vojtajina/dotfiles/blob/master/bin/merge_pr [Contributing to Karma]: ./contributing.html diff --git a/docs/dev/04-public-api.md b/docs/dev/04-public-api.md index 717eb1855..095527ccd 100644 --- a/docs/dev/04-public-api.md +++ b/docs/dev/04-public-api.md @@ -6,7 +6,7 @@ You can, however, call Karma programmatically from your node module. Here is the ### `constructor` -- **Returns:** `Server` instance. +- **Returns:** `Server` instance. #### Usage @@ -150,7 +150,7 @@ This event gets triggered whenever all the browsers, which belong to a test run, ### `runner.run(options, [callback=process.exit])` -- **Returns:** `EventEmitter` +- **Returns:** `EventEmitter` The equivalent of `karma run`. @@ -310,8 +310,8 @@ cfg.parseConfig( #### `configFilePath` argument -- **Type:** String | `null` | `undefined` -- **Default Value:** `undefined` +- **Type:** String | `null` | `undefined` +- **Default Value:** `undefined` A string representing a file system path pointing to the config file whose default export is a function that will be used to set Karma configuration @@ -319,16 +319,16 @@ options. This function will be passed an instance of the `Config` class as its first argument. If this option is not provided, then only the options provided by the `cliOptions` argument will be set. -- JavaScript must use CommonJS modules. -- ECMAScript modules are not currently supported by Karma when using +- JavaScript must use CommonJS modules. +- ECMAScript modules are not currently supported by Karma when using JavaScript. - - Other formats, such as TypeScript, may support ECMAScript modules. + - Other formats, such as TypeScript, may support ECMAScript modules. #### `cliOptions` argument -- **Type:** Object | `null` | `undefined` -- **Default Value:** `undefined` +- **Type:** Object | `null` | `undefined` +- **Default Value:** `undefined` An object whose values will take priority over options set in the config file. The config object passed to function exported by the config file will already @@ -344,8 +344,8 @@ programatic users may construct this object or leave it out entirely. #### `parseOptions` argument -- **Type:** Object | `null` | `undefined` -- **Default Value:** `undefined` +- **Type:** Object | `null` | `undefined` +- **Default Value:** `undefined` `parseOptions` is an object whose properties are configuration options that allow additional control over parsing and opt-in access to new behaviors or @@ -357,8 +357,8 @@ not related to the configuration of Karma itself. ##### `parseOptions.promiseConfig` option -- **Type:** Boolean -- **Default Value:** `false` +- **Type:** Boolean +- **Default Value:** `false` When `parseOptions.promiseConfig === true`, then `parseConfig` will return a promise instead of a configuration object. @@ -382,8 +382,8 @@ disables process exiting and allows errors to result in rejected promises.**_ ##### `parseOptions.throwErrors` option -- **Type:** Boolean -- **Default Value:** `false` +- **Type:** Boolean +- **Default Value:** `false` In the past, `parseConfig()` would call `process.exit(exitCode)` when it encountered a critical failure. This meant that your own code had no way of diff --git a/docs/dev/05-plugins.md b/docs/dev/05-plugins.md index d7cae9e6d..1a93773e7 100644 --- a/docs/dev/05-plugins.md +++ b/docs/dev/05-plugins.md @@ -1,4 +1,6 @@ +--- pageTitle: Developing Plugins +--- Karma can be extended through plugins. There are five kinds of plugins: *framework*, *reporter*, *launcher*, *preprocessor* and *middleware*. Each type allows to modify a certain aspect of the Karma behavior. @@ -101,7 +103,7 @@ This section outlines API requirements and conventions for different plugin type - example plugins: [karma-jasmine], [karma-mocha], [karma-requirejs] - use naming convention is `karma-*` -- use NPM keywords `karma-plugin`, `karma-framework`. +- use npm keywords `karma-plugin`, `karma-framework`. A framework connects existing testing libraries to Karma's API, so that their results can be displayed in a browser and sent back to the server. @@ -142,19 +144,19 @@ statuses. The method takes an object of the form: - example plugins: [karma-growl-reporter], [karma-junit-reporter], [karma-material-reporter] - use naming convention is `karma-*-reporter` -- use NPM keywords `karma-plugin`, `karma-reporter` +- use npm keywords `karma-plugin`, `karma-reporter` ### Launchers - example plugins: [karma-chrome-launcher], [karma-sauce-launcher] - use naming convention is `karma-*-launcher` -- use NPM keywords `karma-plugin`, `karma-launcher` +- use npm keywords `karma-plugin`, `karma-launcher` ### Preprocessors - example plugins: [karma-coffee-preprocessor], [karma-ng-html2js-preprocessor] - use naming convention is `karma-*-preprocessor` -- user NPM keywords `karma-plugin`, `karma-preprocessor` +- user npm keywords `karma-plugin`, `karma-preprocessor` A preprocessor is a function that accepts three arguments (`content`, `file`, and `next`), mutates the content in some way, and passes it on to the next preprocessor. diff --git a/docs/dev/06-git-commit-msg.md b/docs/dev/06-git-commit-msg.md index 39408e492..0365657bb 100644 --- a/docs/dev/06-git-commit-msg.md +++ b/docs/dev/06-git-commit-msg.md @@ -1,4 +1,6 @@ +--- showInMenu: false +--- ## The reasons for these conventions: - automatic generating of the changelog @@ -60,8 +62,8 @@ omitted. In smaller projects such as Karma plugins, the `` is empty. For more info about message body, see: -* http://365git.tumblr.com/post/3308646748/writing-git-commit-messages -* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html +* https://365git.tumblr.com/post/3308646748/writing-git-commit-messages +* https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ## Message footer diff --git a/docs/index.md b/docs/index.md index ce24bea3d..2b040b628 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,2 +1,4 @@ +--- layout: homepage pageTitle: Spectacular Test Runner for Javascript +--- diff --git a/docs/intro/01-installation.md b/docs/intro/01-installation.md index e55c62640..a9ff25145 100644 --- a/docs/intro/01-installation.md +++ b/docs/intro/01-installation.md @@ -1,4 +1,4 @@ -Karma runs on [Node.js] and is available as an [NPM] package. +Karma runs on [Node.js] and is available as an [npm] package. ## Installing Node.js @@ -41,7 +41,7 @@ $ npm install -g karma-cli Then, you can run Karma simply by `karma` from anywhere and it will always run the local version. -[Node.js]: http://nodejs.org/ -[NPM]: https://npmjs.org/package/karma +[Node.js]: https://nodejs.org/ +[npm]: https://www.npmjs.com/package/karma [NVM]: https://github.com/creationix/nvm [FAQ]: ./faq.html diff --git a/docs/intro/02-configuration.md b/docs/intro/02-configuration.md index a3bbfb19b..1ece40b88 100644 --- a/docs/intro/02-configuration.md +++ b/docs/intro/02-configuration.md @@ -77,7 +77,7 @@ Try `karma start --help` if you want to see all available options. [configuration file docs]: ../config/configuration-file.html -[Grunt]: http://gruntjs.com/ +[Grunt]: https://gruntjs.com/ [grunt-karma]: https://github.com/karma-runner/grunt-karma -[Gulp]: http://gulpjs.com +[Gulp]: https://gulpjs.com [gulp-karma]: https://github.com/karma-runner/gulp-karma diff --git a/docs/intro/04-faq.md b/docs/intro/04-faq.md index 2bd2f530f..a70444f2c 100644 --- a/docs/intro/04-faq.md +++ b/docs/intro/04-faq.md @@ -1,5 +1,7 @@ +--- pageTitle: Frequently Asked Questions menuTitle: FAQ +--- The list below is a collection of common questions regarding Karma and its use. If you have any other questions in mind, please visit the [mailing list] to let the community know. @@ -21,7 +23,7 @@ Of course! Check out the docs for [Jenkins], [Semaphore], [TeamCity] or [Travis] ### Which version of Karma should I use? -The latest stable version from NPM (`npm install karma`). See [versioning] for more detailed information about Karma's release channels. +The latest stable version from npm (`npm install karma`). See [versioning] for more detailed information about Karma's release channels. ### Which version of Node.js does Karma run with? diff --git a/docs/intro/05-troubleshooting.md b/docs/intro/05-troubleshooting.md index b01be9911..89193a676 100644 --- a/docs/intro/05-troubleshooting.md +++ b/docs/intro/05-troubleshooting.md @@ -1,5 +1,7 @@ +--- pageTitle: Troubleshooting menuTitle: Troubleshooting +--- karma has an extensive set of tests and we have limited time to help with bugs. Here are some suggestions to get you unstuck. @@ -25,15 +27,15 @@ Issues with Angular setups are probably better debugged by consulting with other `karma` is all JavaScript code: perhaps you can debug your issue by adding logging? ### I'm getting an error during the installation related to the ```ws``` module, how can I solve it? -This is a common Windows [issue](https://github.com/einaros/ws/issues/178), the compilation of the native [ws](https://www.npmjs.org/package/ws) module fails. Anyways, ```ws``` has a fallback JS implementation which NPM should take care using it. All you need to do is make sure that you're using an up-to-date version of NPM. To do that you can: +This is a common Windows [issue](https://github.com/einaros/ws/issues/178), the compilation of the native [ws](https://www.npmjs.com/package/ws) module fails. Anyways, ```ws``` has a fallback JS implementation which npm should take care using it. All you need to do is make sure that you're using an up-to-date version of npm. To do that you can: -#### Update NPM +#### Update npm ```$ npm install -g npm``` or #### Do a fresh NodeJS install -If you have issues to update NPM, you can just go to the [NodeJS](http://nodejs.org/) download the current version. It will come with the latest NPM version. +If you have issues to update npm, you can just go to the [NodeJS](https://nodejs.org/) download the current version. It will come with the latest npm version. ### The browser just does not start. What's going on? @@ -61,7 +63,7 @@ Try to remove `karma` and `karma-*` modules from your `node_modules` first (for ### My tests are running really slow. What's going on? Make sure the Karma's tab is active. Browsers give inactive tabs only minimum CPU. -Note: If you can't find the solution for your issue here you can also ask for help in the [mailing-list](https://groups.google.com/d/forum/karma-users) or [Stack Overflow](http://stackoverflow.com/questions/tagged/karma-runner). +Note: If you can't find the solution for your issue here you can also ask for help in the [mailing-list](https://groups.google.com/d/forum/karma-users) or [Stack Overflow](https://stackoverflow.com/questions/tagged/karma-runner). ### I'm really stuck. I tried every thing! Because of the complexity of test setups, we rarely work to fix bugs without steps to reproduce. The best approach is to create a github project that installs all the components and reproduces the bug. diff --git a/docs/plus/01-requirejs.md b/docs/plus/01-requirejs.md index f4841399d..574bad5c5 100644 --- a/docs/plus/01-requirejs.md +++ b/docs/plus/01-requirejs.md @@ -1,5 +1,7 @@ +--- pageTitle: RequireJS menuTitle: RequireJS +--- To get Karma to run with [Require.js] we need two files: @@ -231,5 +233,5 @@ $ karma run [Here is a running example of Karma with Require.js][example]. -[Require.js]: http://requirejs.org/ +[Require.js]: https://requirejs.org/ [example]: https://github.com/kjbekkelund/karma-requirejs diff --git a/docs/plus/02-travis.md b/docs/plus/02-travis.md index 93f5b4a85..adb8e2b1e 100644 --- a/docs/plus/02-travis.md +++ b/docs/plus/02-travis.md @@ -1,5 +1,7 @@ +--- pageTitle: Travis CI menuTitle: Travis CI +--- [Travis CI] is a popular continuous integration service that integrates with your [Github] repository to automatically run your @@ -81,7 +83,7 @@ karma start --browsers Firefox --single-run [Travis CI]: https://travis-ci.org/ [Github]: https://github.com/ -[YAML]: http://www.yaml.org/ -[PhantomJS]: http://phantomjs.org/ -[GUI apps]: http://about.travis-ci.org/docs/user/gui-and-headless-browsers/ -[Nock]: https://github.com/flatiron/nock +[YAML]: https://yaml.org/ +[PhantomJS]: https://phantomjs.org/ +[GUI apps]: https://docs.travis-ci.com/user/gui-and-headless-browsers/ +[Nock]: https://github.com/nock/nock diff --git a/docs/plus/03-jenkins.md b/docs/plus/03-jenkins.md index 7f13d7c3a..056d9289c 100644 --- a/docs/plus/03-jenkins.md +++ b/docs/plus/03-jenkins.md @@ -1,5 +1,7 @@ +--- pageTitle: Jenkins CI menuTitle: Jenkins CI +--- [Jenkins CI] is one of the most popular continuous integration servers in the market today. At some point while developing your [AngularJS] @@ -59,6 +61,6 @@ subdirectory). -[Jenkins CI]: http://jenkins-ci.org/ -[AngularJS]: http://angularjs.org -[EnvInject]: https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin +[Jenkins CI]: https://www.jenkins.io/ +[AngularJS]: https://angularjs.org +[EnvInject]: https://plugins.jenkins.io/envinject/ diff --git a/docs/plus/04-semaphore.md b/docs/plus/04-semaphore.md index 229a3068b..ccfead39d 100644 --- a/docs/plus/04-semaphore.md +++ b/docs/plus/04-semaphore.md @@ -1,5 +1,7 @@ +--- pageTitle: Semaphore CI menuTitle: Semaphore CI +--- [Semaphore] is a popular continuous integration service that supports a [wide range of programming languages]. Up-to-date diff --git a/docs/plus/06-angularjs.md b/docs/plus/06-angularjs.md index 69bb6f900..50951da32 100644 --- a/docs/plus/06-angularjs.md +++ b/docs/plus/06-angularjs.md @@ -1,4 +1,6 @@ +--- pageTitle: AngularJS menuTitle: AngularJS +--- -If you're using [AngularJS](http://angularjs.org), check out the [AngularJS Generator](https://github.com/yeoman/generator-angular), which makes use of the [Karma Generator](https://github.com/yeoman/generator-karma) to setup a fully featured, testing-ready project. +If you're using [AngularJS](https://angularjs.org), check out the [AngularJS Generator](https://github.com/yeoman/generator-angular), which makes use of the [Karma Generator](https://github.com/yeoman/generator-karma) to setup a fully featured, testing-ready project. diff --git a/docs/plus/07-yeoman.md b/docs/plus/07-yeoman.md index 7b6eda5f0..472d44e6b 100644 --- a/docs/plus/07-yeoman.md +++ b/docs/plus/07-yeoman.md @@ -1 +1 @@ -[Yeoman](http://yeoman.io/) is a set of tools to make building web apps easier. Yeoman has support for Karma via the [Karma Generator](https://github.com/yeoman/generator-karma). +[Yeoman](https://yeoman.io/) is a set of tools to make building web apps easier. Yeoman has support for Karma via the [Karma Generator](https://github.com/yeoman/generator-karma). diff --git a/docs/plus/08-emberjs.md b/docs/plus/08-emberjs.md index a25624089..04251ac82 100644 --- a/docs/plus/08-emberjs.md +++ b/docs/plus/08-emberjs.md @@ -1,5 +1,7 @@ +--- pageTitle: Ember.js menuTitle: Ember.js +--- To execute javascript unit and integration tests with ember.js follow the steps below: @@ -7,91 +9,91 @@ To execute javascript unit and integration tests with ember.js follow the steps 2. install the qunit plugin - ```bash - npm install karma-qunit --save-dev - ``` + ```bash + npm install karma-qunit --save-dev + ``` 3. install the ember preprocessor plugin - ```bash - npm install karma-ember-preprocessor --save-dev - ``` + ```bash + npm install karma-ember-preprocessor --save-dev + ``` 4. generate a configuration file for karma - ```bash - karma init - ``` - note -the above will walk you through the basic setup. An example configuration file that works with ember.js/qunit and phantomjs is below - - ```javascript - module.exports = function(config) { - config.set({ - basePath: 'js', - - files: [ - 'vendor/jquery/jquery.min.js', - 'vendor/handlebars/handlebars.js', - 'vendor/ember/ember.js', - 'app.js', - 'tests/*.js', - 'templates/*.handlebars' - ], - - browsers: ['PhantomJS'], - singleRun: true, - autoWatch: false, - - frameworks: ['qunit'], - - plugins: [ - 'karma-qunit', - 'karma-ember-preprocessor', - 'karma-phantomjs-launcher' - ], - - preprocessors: { - '**/*.handlebars': 'ember' - } - }); - }; - ``` - - Note - the `files` section above should include all dependencies, ie- jQuery/handlebars/ember.js along with the js and handlebars files required to deploy and run your production ember.js application - - Note - when testing ember applications, it is important that karma does not try to run the tests until the ember application has finished initialization. You will need to include a small bootstrap file in the `files` section above to enforce this. Here's an example: - ```javascript - __karma__.loaded = function() {}; - - App.setupForTesting(); - App.injectTestHelpers(); - - //this gate/check is required given that standard practice in Ember tests to is to call - //Ember.reset() in the afterEach/tearDown for each test. Doing so, causes the application - //to 're-initialize', resulting in repeated calls to the initialize function below - var karma_started = false; - App.initializer({ - name: "run tests", - initialize: function(container, application) { - if (!karma_started) { - karma_started = true; - __karma__.start(); - } - } - }); - ``` + ```bash + karma init + ``` + note -the above will walk you through the basic setup. An example configuration file that works with ember.js/qunit and phantomjs is below + + ```javascript + module.exports = function(config) { + config.set({ + basePath: 'js', + + files: [ + 'vendor/jquery/jquery.min.js', + 'vendor/handlebars/handlebars.js', + 'vendor/ember/ember.js', + 'app.js', + 'tests/*.js', + 'templates/*.handlebars' + ], + + browsers: ['PhantomJS'], + singleRun: true, + autoWatch: false, + + frameworks: ['qunit'], + + plugins: [ + 'karma-qunit', + 'karma-ember-preprocessor', + 'karma-phantomjs-launcher' + ], + + preprocessors: { + '**/*.handlebars': 'ember' + } + }); + }; + ``` + + Note - the `files` section above should include all dependencies, ie- jQuery/handlebars/ember.js along with the js and handlebars files required to deploy and run your production ember.js application + + Note - when testing ember applications, it is important that karma does not try to run the tests until the ember application has finished initialization. You will need to include a small bootstrap file in the `files` section above to enforce this. Here's an example: + ```javascript + __karma__.loaded = function() {}; + + App.setupForTesting(); + App.injectTestHelpers(); + + //this gate/check is required given that standard practice in Ember tests to is to call + //Ember.reset() in the afterEach/tearDown for each test. Doing so, causes the application + //to 're-initialize', resulting in repeated calls to the initialize function below + var karma_started = false; + App.initializer({ + name: "run tests", + initialize: function(container, application) { + if (!karma_started) { + karma_started = true; + __karma__.start(); + } + } + }); + ``` 5. add a simple Qunit test - ```javascript - test('one should equal one', function() { - equal(1, 1, 'error: one did not equal one'); - }); - ``` + ```javascript + test('one should equal one', function() { + equal(1, 1, 'error: one did not equal one'); + }); + ``` 6. run the tests with karma from the command line - ```bash - karma start - ``` + ```bash + karma start + ``` A simple unit / integration tested example app showing karma / qunit / ember in action can be found [here] diff --git a/docs/plus/09-codio.md b/docs/plus/09-codio.md index 6fc08839d..e1f84c5be 100644 --- a/docs/plus/09-codio.md +++ b/docs/plus/09-codio.md @@ -1,6 +1,6 @@ [Codio] is a web-based cloud integrated development environment that supports almost any programming language. Every project gets its individual Box: an instantly available server-side development environment with full terminal access. Unlimited panels and tabs, and a plethora of productivity features. -##Customize your Codio Project +## Customize your Codio Project Next to the help menu you will see the "Configure" option, if you don't see it click the little arrow near the end and then select "Configure". diff --git a/docs/plus/10-teamcity.md b/docs/plus/10-teamcity.md index d45970a68..8d503af77 100644 --- a/docs/plus/10-teamcity.md +++ b/docs/plus/10-teamcity.md @@ -1,5 +1,7 @@ +--- pageTitle: TeamCity menuTitle: TeamCity +--- Running Karma in your [TeamCity] build is as simple as adding command line build step to perform the task. That is basically it. @@ -21,7 +23,7 @@ being installed during the build. ## Create a new TeamCity build step Add new build step to the build configuration: use Command Line runner and fill in `Custom -script` text area. If you had decided not to install *all* your NPM dependencies globally +script` text area. If you had decided not to install *all* your npm dependencies globally add `npm install` at the beginning of the script. Then add command to run Karma, e.g.: karma start --reporters teamcity --single-run --browsers PhantomJS --colors false diff --git a/lib/init.js b/lib/init.js index 8aab1eadd..f55f94e94 100755 --- a/lib/init.js +++ b/lib/init.js @@ -49,7 +49,7 @@ function installPackage (pkgName) { if (!err) { log.debug(`${pkgName} successfully installed.`) } else if (/is not in the npm registry/.test(stderr)) { - log.warn(`Failed to install "${pkgName}". It is not in the NPM registry!\n Please install it manually.`) + log.warn(`Failed to install "${pkgName}". It is not in the npm registry!\n Please install it manually.`) } else if (/Error: EACCES/.test(stderr)) { log.warn(`Failed to install "${pkgName}". No permissions to write in ${options.cwd}!\n Please install it manually.`) } else { diff --git a/lib/middleware/karma.js b/lib/middleware/karma.js index 37e9a46c8..c92ae21a1 100644 --- a/lib/middleware/karma.js +++ b/lib/middleware/karma.js @@ -167,7 +167,7 @@ function createKarmaMiddleware ( log.warn( 'Unable to determine file type from the file extension, defaulting to js.\n' + ` To silence the warning specify a valid type for ${file.originalPath} in the configuration file.\n` + - ' See http://karma-runner.github.io/latest/config/files.html' + ' See https://karma-runner.github.io/latest/config/files.html' ) } else { log.warn(`Invalid file type (${file.type || 'empty string'}), defaulting to js.`) diff --git a/lib/middleware/proxy.js b/lib/middleware/proxy.js index 7c9a43214..6b0fcf730 100644 --- a/lib/middleware/proxy.js +++ b/lib/middleware/proxy.js @@ -34,20 +34,16 @@ function parseProxyConfig (proxies, config) { const hostname = proxyDetails.hostname || config.hostname const protocol = proxyDetails.protocol || config.protocol - const https = proxyDetails.protocol === 'https:' - let port - if (proxyDetails.port) { - port = proxyDetails.port - } else if (proxyDetails.protocol) { - port = https ? '443' : '80' - } else { - port = config.port + const defaultPorts = { + 'http:': '80', + 'https:': '443' } + const port = proxyDetails.port || defaultPorts[proxyDetails.protocol] || config.port const changeOrigin = proxyConfiguration.changeOrigin || false - const Agent = https ? httpsAgent : httpAgent + const Agent = protocol === 'https:' ? httpsAgent : httpAgent const agent = new Agent({ keepAlive: true }) const proxy = httpProxy.createProxyServer({ - target: { host: hostname, port, https, protocol }, + target: { host: hostname, port, protocol }, xfwd: true, changeOrigin: changeOrigin, secure: config.proxyValidateSSL, @@ -71,7 +67,7 @@ function parseProxyConfig (proxies, config) { res.destroy() }) - return { path: proxyPath, baseUrl: pathname, host: hostname, port, https, proxy, agent } + return { path: proxyPath, baseUrl: pathname, host: hostname, port, proxy, agent } }), 'path').reverse() } diff --git a/package-lock.json b/package-lock.json index f5d813ea4..6d5f87905 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "karma", - "version": "6.3.2", + "version": "6.3.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -6493,6 +6493,35 @@ "integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==", "dev": true }, + "karma": { + "version": "file:", + "dev": true, + "requires": { + "body-parser": "^1.19.0", + "braces": "^3.0.2", + "chokidar": "^3.4.2", + "colors": "^1.4.0", + "connect": "^3.7.0", + "di": "^0.0.1", + "dom-serialize": "^2.2.1", + "glob": "^7.1.6", + "graceful-fs": "^4.2.4", + "http-proxy": "^1.18.1", + "isbinaryfile": "^4.0.6", + "lodash": "^4.17.19", + "log4js": "^6.2.1", + "mime": "^2.4.5", + "minimatch": "^3.0.4", + "qjobs": "^1.2.0", + "range-parser": "^1.2.1", + "rimraf": "^3.0.2", + "socket.io": "^3.1.0", + "source-map": "^0.6.1", + "tmp": "0.2.1", + "ua-parser-js": "^0.7.23", + "yargs": "^16.1.1" + } + }, "karma-browserify": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/karma-browserify/-/karma-browserify-7.0.0.tgz", diff --git a/package.json b/package.json index 8efb75e28..f3789391b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "karma", "description": "Spectacular Test Runner for JavaScript.", - "homepage": "http://karma-runner.github.io/", + "homepage": "https://karma-runner.github.io/", "repository": { "type": "git", "url": "git://github.com/karma-runner/karma.git" @@ -94,8 +94,10 @@ "Ilya Goncharov ", "James Ford ", "James Talmage ", + "Janderson Constantino ", "Jonas Pommerening ", "Jonathan Freeman ", + "Jonathan Ginsburg ", "Josh ", "KJ Tsanaktsidis ", "Keen Yee Liau ", @@ -228,7 +230,6 @@ "Jakub Z ", "James Shore ", "Jan Molak ", - "Janderson Constantino ", "Jeff Froom ", "Jeff Lage ", "Jeff Yates ", @@ -241,7 +242,6 @@ "Jon Bretman ", "Jonathan ES Lin ", "Jonathan Felchlin ", - "Jonathan Ginsburg ", "Jonathan Niles ", "Josh Lory ", "João Marcos Duarte ", @@ -378,6 +378,7 @@ "Volune ", "Vova Bilonenko ", "Wizek <123.wizek@gmail.com>", + "XhmikosR ", "Yaniv Efraim ", "Yi Wang ", "Yvonne Yip ", @@ -460,6 +461,7 @@ "http2": "^3.3.6", "husky": "^4.2.5", "jasmine-core": "^3.6.0", + "karma": ".", "karma-browserify": "^7.0.0", "karma-browserstack-launcher": "^1.6.0", "karma-chai": "^0.1.0", @@ -490,7 +492,7 @@ "engines": { "node": ">= 10" }, - "version": "6.3.2", + "version": "6.3.3", "license": "MIT", "husky": { "hooks": { @@ -509,10 +511,6 @@ "build:check": "node scripts/client.js check", "build:watch": "node scripts/client.js watch", "test:integration": "./scripts/integration-tests.sh", - "link": "node --eval \"path=require('path'); require('fs').symlinkSync(path.resolve(__dirname), path.resolve(__dirname, 'node_modules', 'karma'), 'junction')\"", - "unlink": "node --eval \"require('fs').unlinkSync(require('path').resolve(__dirname, 'node_modules', 'karma'))\"", - "init": "rm -rf node_modules/karma && cd node_modules && ln -nsf ../ karma && cd ../", - "init:windows": "(IF EXIST node_modules\\karma (rmdir node_modules\\karma /S /q)) && npm run link", "semantic-release": "semantic-release" } } diff --git a/scripts/karma-completion.sh b/scripts/karma-completion.sh index 650c8199b..f7db254ab 100644 --- a/scripts/karma-completion.sh +++ b/scripts/karma-completion.sh @@ -1,7 +1,7 @@ ###-begin-karma-completion-### # # karma command completion script -# This is stolen from NPM. Thanks @isaac! +# This is stolen from npm. Thanks @isaac! # # Installation: karma completion >> ~/.bashrc (or ~/.zshrc) # Or, maybe: karma completion > /usr/local/etc/bash_completion.d/karma diff --git a/static/context.js b/static/context.js index 417503165..8d697eff8 100644 --- a/static/context.js +++ b/static/context.js @@ -310,7 +310,7 @@ var callParentKarmaMethod = ContextKarma.getDirectCallParentKarmaMethod(parentWi // If we don't have access to the window, then use `postMessage` // DEV: In Electron, we don't have access to the parent window due to it being in a separate process // DEV: We avoid using this in Internet Explorer as they only support strings -// http://caniuse.com/#search=postmessage +// https://caniuse.com/?search=postmessage var haveParentAccess = false try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permisison errors) */ } if (!haveParentAccess) { diff --git a/static/karma.js b/static/karma.js index b630fe256..95be74c59 100644 --- a/static/karma.js +++ b/static/karma.js @@ -332,7 +332,7 @@ var KARMA_URL_ROOT = constants.KARMA_URL_ROOT var KARMA_PROXY_PATH = constants.KARMA_PROXY_PATH var BROWSER_SOCKET_TIMEOUT = constants.BROWSER_SOCKET_TIMEOUT -// Connect to the server using socket.io http://socket.io +// Connect to the server using socket.io https://socket.io/ var socket = io(location.host, { reconnectionDelay: 500, reconnectionDelayMax: Infinity, diff --git a/test/client/karma.conf.js b/test/client/karma.conf.js index 2eff636ca..47dc56ed7 100644 --- a/test/client/karma.conf.js +++ b/test/client/karma.conf.js @@ -1,5 +1,3 @@ -const fs = require('fs') - const TRAVIS_WITH_BS = !!process.env.BROWSER_STACK_ACCESS_KEY const launchers = { @@ -37,28 +35,6 @@ const launchers = { } } -// Verify the install. This will run async but that's ok we'll see the log. -fs.lstat('node_modules/karma', (err, stats) => { - if (err) { - console.error('Cannot verify installation', err.stack || err) - } - if (stats && stats.isSymbolicLink()) { - return - } - - console.log('**** Incorrect directory layout for karma self-tests ****') - console.log(` - $ npm install - - $ npm run init - # or if you're on Windows - $ npm run init:windows - - $ npm run build - `) - process.exit(1) -}) - let browsers = ['Chrome'] if (process.env.TRAVIS) { diff --git a/test/client/stringify.spec.js b/test/client/stringify.spec.js index a3c744ca5..ce83c71be 100644 --- a/test/client/stringify.spec.js +++ b/test/client/stringify.spec.js @@ -45,7 +45,7 @@ describe('stringify', function () { }) // Conditionally run Proxy tests as it's not supported by all browsers yet - // http://caniuse.com/#feat=proxy + // https://caniuse.com/proxy if (window.Proxy) { it('should serialize proxied functions', function () { var defProxy = new Proxy(function (d, e, f) { return 'whatever' }, {}) diff --git a/test/e2e/helpful-logs.feature b/test/e2e/helpful-logs.feature index 08d84b7b2..5ce7d964d 100644 --- a/test/e2e/helpful-logs.feature +++ b/test/e2e/helpful-logs.feature @@ -20,5 +20,5 @@ Feature: Helpful warning and errors """ WARN \[middleware:karma\]: Unable to determine file type from the file extension, defaulting to js. To silence the warning specify a valid type for .+modules/minus.mjs in the configuration file. - See http://karma-runner.github.io/latest/config/files.html + See https://karma-runner.github.io/latest/config/files.html """ diff --git a/test/unit/middleware/proxy.spec.js b/test/unit/middleware/proxy.spec.js index 6bfc2c80c..bdc83e50b 100644 --- a/test/unit/middleware/proxy.spec.js +++ b/test/unit/middleware/proxy.spec.js @@ -146,10 +146,16 @@ describe('middleware.proxy', () => { host: 'localhost', port: '8000', baseUrl: '/', - path: '/base/', - https: false + path: '/base/' }) expect(parsedProxyConfig[0].proxy).to.exist + expect(parsedProxyConfig[0].proxy).to.containSubset({ + options: { + target: { + protocol: 'http:' + } + } + }) }) it('should set default http port', () => { @@ -160,10 +166,16 @@ describe('middleware.proxy', () => { host: 'localhost', port: '80', baseUrl: '/', - path: '/base/', - https: false + path: '/base/' }) expect(parsedProxyConfig[0].proxy).to.exist + expect(parsedProxyConfig[0].proxy).to.containSubset({ + options: { + target: { + protocol: 'http:' + } + } + }) }) it('should set default https port', () => { @@ -174,8 +186,7 @@ describe('middleware.proxy', () => { host: 'localhost', port: '443', baseUrl: '/', - path: '/base/', - https: true + path: '/base/' }) expect(parsedProxyConfig[0].proxy).to.exist expect(parsedProxyConfig[0].proxy).to.containSubset({ @@ -195,10 +206,16 @@ describe('middleware.proxy', () => { host: 'localhost', port: '8000', baseUrl: '/proxy', - path: '/base', - https: false + path: '/base' }) expect(parsedProxyConfig[0].proxy).to.exist + expect(parsedProxyConfig[0].proxy).to.containSubset({ + options: { + target: { + protocol: 'http:' + } + } + }) }) it('should determine protocol', () => { @@ -209,8 +226,7 @@ describe('middleware.proxy', () => { host: 'localhost', port: '8000', baseUrl: '', - path: '/base', - https: true + path: '/base' }) expect(parsedProxyConfig[0].proxy).to.exist expect(parsedProxyConfig[0].proxy).to.containSubset({ @@ -231,8 +247,7 @@ describe('middleware.proxy', () => { host: 'localhost', port: 9877, baseUrl: '/proxy/test', - path: '/base', - https: false + path: '/base' }) expect(parsedProxyConfig[0].proxy).to.exist }) @@ -246,8 +261,7 @@ describe('middleware.proxy', () => { host: 'localhost', port: 9877, baseUrl: '/proxy/test/', - path: '/base/', - https: false + path: '/base/' }) expect(parsedProxyConfig[0].proxy).to.exist }) @@ -261,8 +275,7 @@ describe('middleware.proxy', () => { host: 'krinkle.dev', port: '80', baseUrl: '/w', - path: '/w', - https: false + path: '/w' }) expect(parsedProxyConfig[0].proxy).to.exist }) @@ -276,8 +289,7 @@ describe('middleware.proxy', () => { host: 'krinkle.dev', port: '443', baseUrl: '/w', - path: '/w', - https: true + path: '/w' }) expect(parsedProxyConfig[0].proxy).to.exist }) @@ -290,8 +302,7 @@ describe('middleware.proxy', () => { host: 'localhost', port: '8000', baseUrl: '/proxy/test/', - path: '/base/', - https: false + path: '/base/' }) expect(parsedProxyConfig[0].proxy).to.exist }) @@ -307,16 +318,14 @@ describe('middleware.proxy', () => { host: 'gstatic.com', port: '80', baseUrl: '/something', - path: '/sub/some', - https: false + path: '/sub/some' }) expect(parsedProxyConfig[0].proxy).to.exist expect(parsedProxyConfig[1]).to.containSubset({ host: 'localhost', port: '9000', baseUrl: '', - path: '/sub', - https: false + path: '/sub' }) expect(parsedProxyConfig[1].proxy).to.exist }) @@ -331,8 +340,7 @@ describe('middleware.proxy', () => { host: 'localhost', port: '8000', baseUrl: '/', - path: '/base/', - https: false + path: '/base/' }) expect(parsedProxyConfig[0].proxy).to.exist })