Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: karma-runner/karma
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b8b8618b08acf14e3e4d435904029fe7a18134f3
Choose a base ref
...
head repository: karma-runner/karma
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ab4b32898bcb4e0ba3a1e99835d30c113db3eeeb
Choose a head ref
Loading
Showing with 23,142 additions and 11,114 deletions.
  1. +1 −1 .eslintignore
  2. 0 .eslintrc → .eslintrc.json
  3. +10 −0 .github/ISSUE_TEMPLATE/bug_report.md
  4. +35 −0 .github/workflows/release.yml
  5. +61 −0 .github/workflows/test.yml
  6. +1 −4 .gitignore
  7. +1 −0 .npmignore
  8. +0 −46 .travis.yml
  9. +652 −156 CHANGELOG.md
  10. +1 −1 CODE_OF_CONDUCT.md
  11. +2 −2 CONTRIBUTING.md
  12. +1 −1 LICENSE
  13. +0 −3 PULL_REQUEST_TEMPLATE.md
  14. +5 −5 README.md
  15. +11 −0 SECURITY.md
  16. +0 −29 appveyor.yml
  17. +116 −53 client/karma.js
  18. +6 −6 client/main.js
  19. +57 −16 client/updater.js
  20. +1 −0 commitlint.config.js
  21. +12 −2 common/stringify.js
  22. +5 −5 config.tpl.coffee
  23. +5 −5 config.tpl.js
  24. +5 −5 config.tpl.ls
  25. +5 −5 config.tpl.ts
  26. +9 −7 context/karma.js
  27. +1 −1 context/main.js
  28. BIN credentials
  29. +13 −0 cucumber.js
  30. +1 −1 docs/about/01-versioning.md
  31. +5 −4 docs/about/03-migration.md
  32. +61 −20 docs/config/01-configuration-file.md
  33. +48 −30 docs/config/02-files.md
  34. +3 −3 docs/config/03-browsers.md
  35. +5 −4 docs/config/04-preprocessors.md
  36. +31 −21 docs/config/05-plugins.md
  37. +3 −1 docs/dev/01-contributing.md
  38. +21 −22 docs/dev/02-making-changes.md
  39. +4 −4 docs/dev/03-maintaining.md
  40. +273 −31 docs/dev/04-public-api.md
  41. +142 −44 docs/dev/05-plugins.md
  42. +22 −23 docs/dev/06-git-commit-msg.md
  43. +2 −0 docs/index.md
  44. +3 −3 docs/intro/01-installation.md
  45. +2 −2 docs/intro/02-configuration.md
  46. +1 −1 docs/intro/03-how-it-works.md
  47. +4 −3 docs/intro/04-faq.md
  48. +22 −5 docs/intro/05-troubleshooting.md
  49. +3 −1 docs/plus/01-requirejs.md
  50. +17 −5 docs/plus/02-travis.md
  51. +5 −3 docs/plus/03-jenkins.md
  52. +2 −0 docs/plus/04-semaphore.md
  53. +3 −3 docs/plus/06-angularjs.md
  54. +1 −1 docs/plus/07-yeoman.md
  55. +77 −75 docs/plus/08-emberjs.md
  56. +1 −1 docs/plus/09-codio.md
  57. +3 −1 docs/plus/10-teamcity.md
  58. +0 −155 gruntfile.js
  59. +42 −32 lib/browser.js
  60. +17 −10 lib/browser_collection.js
  61. +124 −104 lib/cli.js
  62. +1 −1 lib/completion.js
  63. +162 −46 lib/config.js
  64. +2 −2 lib/constants.js
  65. +33 −0 lib/executor.js
  66. +76 −100 lib/file-list.js
  67. +14 −1 lib/file.js
  68. +12 −24 lib/helper.js
  69. +1 −14 lib/index.js
  70. +2 −2 lib/init.js
  71. +54 −39 lib/launcher.js
  72. +17 −8 lib/launchers/base.js
  73. +1 −1 lib/launchers/capture_timeout.js
  74. +10 −5 lib/launchers/process.js
  75. +7 −7 lib/logger.js
  76. +0 −26 lib/middleware/common.js
  77. +41 −36 lib/middleware/karma.js
  78. +24 −14 lib/middleware/proxy.js
  79. +37 −29 lib/middleware/runner.js
  80. +1 −1 lib/middleware/source_files.js
  81. +50 −5 lib/plugin.js
  82. +86 −105 lib/preprocessor.js
  83. +16 −4 lib/reporter.js
  84. +12 −12 lib/reporters/base_color.js
  85. +36 −7 lib/runner.js
  86. +191 −122 lib/server.js
  87. +32 −4 lib/stopper.js
  88. +12 −0 lib/url.js
  89. +0 −27 lib/utils/bundle-utils.js
  90. +0 −10 lib/utils/json-utils.js
  91. +0 −1 lib/utils/net-utils.js
  92. +14 −0 lib/utils/pattern-utils.js
  93. +23 −26 lib/watcher.js
  94. +19 −30 lib/web-server.js
  95. +11,319 −0 package-lock.json
  96. +274 −253 package.json
  97. +44 −0 release.config.js
  98. +77 −0 scripts/client.js
  99. +1 −1 scripts/karma-completion.sh
  100. +0 −38 scripts/validate-commit-msg.sh
  101. +2 −2 static/client.html
  102. +1 −1 static/client_with_context.html
  103. +2,645 −0 static/context.js
  104. +1 −1 static/debug.html
  105. +2,901 −0 static/karma.js
  106. +0 −18 tasks/init-dev-env.js
  107. +0 −48 tasks/test.js
  108. +1 −2 test/.eslintrc
  109. +30 −54 test/client/karma.conf.js
  110. +164 −64 test/client/karma.spec.js
  111. +1 −1 test/client/mocks.js
  112. +19 −17 test/client/stringify.spec.js
  113. +1 −1 test/client/util.spec.js
  114. +2 −19 test/e2e/basic.feature
  115. +41 −13 test/e2e/browser_console.feature
  116. +211 −0 test/e2e/cli.feature
  117. +1 −1 test/e2e/custom-context.feature
  118. +26 −6 test/e2e/error.feature
  119. +7 −7 test/e2e/files.feature
  120. +1 −1 test/e2e/headers.feature
  121. +24 −0 test/e2e/helpful-logs.feature
  122. +2 −2 test/e2e/launcher-error.feature
  123. +2 −2 test/e2e/middleware.feature
  124. +1 −1 test/e2e/module-types.feature
  125. +7 −3 test/e2e/pass-opts.feature
  126. +3 −3 test/e2e/proxy.feature
  127. +7 −1 test/e2e/reconnecting.feature
  128. +26 −0 test/e2e/reporting.feature
  129. +28 −0 test/e2e/restart-on-change.feature
  130. +2 −23 test/e2e/runInParent.feature
  131. +149 −241 test/e2e/step_definitions/core_steps.js
  132. +7 −12 test/e2e/step_definitions/hooks.js
  133. +19 −0 test/e2e/step_definitions/utils.js
  134. +3 −2 test/e2e/stop.feature
  135. +2 −4 test/e2e/support/env.js
  136. +2 −0 test/e2e/support/error/import-something-from-somewhere.js
  137. +36 −31 test/e2e/support/proxy.js
  138. +7 −7 test/e2e/support/reconnecting/test.js
  139. +9 −0 test/e2e/support/reporting/test.js
  140. +145 −54 test/e2e/support/world.js
  141. +8 −8 test/e2e/tag.feature
  142. +3 −3 test/e2e/timeout.feature
  143. +5 −5 test/e2e/upstream-proxy.feature
  144. +3 −0 test/mocha.opts
  145. +65 −59 test/unit/browser.spec.js
  146. +31 −12 test/unit/browser_collection.spec.js
  147. +278 −42 test/unit/cli.spec.js
  148. +214 −57 test/unit/config.spec.js
  149. +2 −2 test/unit/events.spec.js
  150. +72 −21 test/unit/executor.spec.js
  151. +27 −45 test/unit/file-list.spec.js
  152. +15 −0 test/unit/file.spec.js
  153. +36 −41 test/unit/helper.spec.js
  154. +2 −2 test/unit/init.spec.js
  155. +6 −6 test/unit/init/formatters.spec.js
  156. +13 −13 test/unit/init/state_machine.spec.js
  157. +16 −26 test/unit/launcher.spec.js
  158. +27 −47 test/unit/launchers/base.spec.js
  159. +6 −8 test/unit/launchers/capture_timeout.spec.js
  160. +50 −23 test/unit/launchers/process.spec.js
  161. +3 −3 test/unit/logger.spec.js
  162. +65 −41 test/unit/middleware/karma.spec.js
  163. +69 −41 test/unit/middleware/proxy.spec.js
  164. +98 −74 test/unit/middleware/runner.spec.js
  165. +2 −2 test/unit/middleware/source_files.spec.js
  166. +5 −40 test/unit/mocha-globals.js
  167. +110 −0 test/unit/plugin.spec.js
  168. +278 −256 test/unit/preprocessor.spec.js
  169. +104 −29 test/unit/reporter.spec.js
  170. +2 −2 test/unit/reporters/base.spec.js
  171. +1 −1 test/unit/reporters/progress.spec.js
  172. +14 −14 test/unit/runner.spec.js
  173. +189 −51 test/unit/server.spec.js
  174. +30 −0 test/unit/url.spec.js
  175. +0 −42 test/unit/utils/bundle-utils.spec.js
  176. +0 −18 test/unit/utils/json-utils.spec.js
  177. +1 −0 test/unit/utils/net-utils.spec.js
  178. +33 −0 test/unit/utils/pattern-utils.spec.js
  179. +2 −33 test/unit/watcher.spec.js
  180. +8 −12 test/unit/web-server.spec.js
  181. +23 −0 tools/update-contributors.js
  182. +25 −0 tools/update-docs.js
  183. +0 −7,426 yarn.lock
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test/e2e/support/sandbox
test/e2e/support/error/under-test.js
test/unit/fixtures/bundled.js
static/karma.js
static/context.js
tmp/*
File renamed without changes.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Bug report
about: Create an actionable bug report
title: ''
labels: ''
assignees: ''

---

Please read https://karma-runner.github.io/4.0/intro/troubleshooting.html first
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
branches:
- master

jobs:
main:
name: Test, Tag Commit and Release to NPM
runs-on: ubuntu-latest
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.KARMARUNNERBOT_GITHUB_TOKEN }}
KARMA_TEST_NO_FALLBACK: 1
steps:
- uses: actions/checkout@v2
with:
token: ${{ env.GITHUB_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: 14
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run build:check
- run: npm run test:unit
- run: npm run test:e2e
- run: npm run test:client
- run: npm run test:integration
- run: npm run semantic-release
61 changes: 61 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Test

on:
pull_request:
branches:
- master

jobs:
main:
name: Lint and Unit (Client and Server), E2E and Integration Test
runs-on: ubuntu-latest
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
cache: npm
- run: npm ci
- run: npm run commitlint -- --from `git merge-base origin/master $GITHUB_SHA`
- run: npm run lint
- run: npm run build:check
- run: npm run test:unit
- run: npm run test:e2e
- run: npm run test:client
- run: npm run test:integration
linux:
name: "Node ${{ matrix.node }} on Linux: Server Unit and E2E Test"
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run test:unit
- run: npm run test:e2e
windows:
name: "Node ${{ matrix.node }} on Windows: Server Unit and Client Unit Test"
runs-on: windows-latest
strategy:
matrix:
node: [10, 12, 14]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run test:unit
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
node_modules
npm-debug.log
static/context.js
static/karma.js
.idea/*
*.iml
tmp/*
docs/_build
*.swp
*.swo
test/e2e/console.log
test/e2e/support/sandbox
test/e2e/coverage/coverage
test/e2e/coverageQunit/coverage
test/e2e/coverageRequirejs/coverage
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
tmp
test
tasks
/tools/
docs
client
logo
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

Loading