Skip to content

Commit a55a7f4

Browse files
authored
Merge pull request #285 from karma-runner/deprecation-notice
chore: add deprecation notice
2 parents 7019019 + 5af4696 commit a55a7f4

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

README.md

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# karma-firefox-launcher
22

33
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/karma-runner/karma-firefox-launcher)
4-
[![npm version](https://img.shields.io/npm/v/karma-firefox-launcher.svg?style=flat-square)](https://www.npmjs.com/package/karma-firefox-launcher) [![npm downloads](https://img.shields.io/npm/dm/karma-firefox-launcher.svg?style=flat-square)](https://www.npmjs.com/package/karma-firefox-launcher)
5-
[![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)
4+
[![npm version](https://img.shields.io/npm/v/karma-firefox-launcher.svg?style=flat-square)](https://www.npmjs.com/package/karma-firefox-launcher) [![npm downloads](https://img.shields.io/npm/dm/karma-firefox-launcher.svg?style=flat-square)](https://www.npmjs.com/package/karma-firefox-launcher)
5+
[![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)
66

77
[![Build Status](https://img.shields.io/travis/karma-runner/karma-firefox-launcher/master.svg?style=flat-square)](https://travis-ci.org/karma-runner/karma-firefox-launcher) [![Dependency Status](https://img.shields.io/david/karma-runner/karma-firefox-launcher.svg?style=flat-square)](https://david-dm.org/karma-runner/karma-firefox-launcher) [![devDependency Status](https://img.shields.io/david/dev/karma-runner/karma-firefox-launcher.svg?style=flat-square)](https://david-dm.org/karma-runner/karma-firefox-launcher#info=devDependencies)
88

99
> Launcher for Mozilla Firefox.
1010
11+
## `karma-firefox-launcher` is deprecated and is not accepting new features or general bug fixes.
12+
13+
See [deprecation notice for `karma`](https://github.com/karma-runner/karma#karma-is-deprecated-and-is-not-accepting-new-features-or-general-bug-fixes).
14+
15+
[Web Test Runner](https://modern-web.dev/docs/test-runner/overview/),
16+
[`jasmine-browser-runner`](https://github.com/jasmine/jasmine-browser-runner),
17+
and [`playwright-test`](https://github.com/hugomrdias/playwright-test) provide
18+
browser-based unit testing solutions which can be used as a direct alternative.
19+
1120
## Installation
1221

1322
The easiest way is to keep `karma-firefox-launcher` as a devDependency in your `package.json`.
@@ -19,19 +28,24 @@ npm install karma-firefox-launcher --save-dev
1928
```
2029

2130
## Configuration
31+
2232
```js
2333
// karma.conf.js
24-
module.exports = function(config) {
34+
module.exports = function (config) {
2535
config.set({
26-
plugins: [
27-
require('karma-firefox-launcher')
36+
plugins: [require("karma-firefox-launcher")],
37+
browsers: [
38+
"Firefox",
39+
"FirefoxDeveloper",
40+
"FirefoxAurora",
41+
"FirefoxNightly",
2842
],
29-
browsers: ['Firefox', 'FirefoxDeveloper', 'FirefoxAurora', 'FirefoxNightly'],
30-
})
31-
}
43+
});
44+
};
3245
```
3346

3447
You can pass list of browsers as a CLI argument too:
48+
3549
```bash
3650
karma start --browsers Firefox,Chrome
3751
```
@@ -43,11 +57,11 @@ To run Firefox in headless mode, append `Headless` to the version name, e.g. `Fi
4357
You can specify the location of the Firefox executable using the following
4458
environment variables:
4559

46-
* `FIREFOX_BIN` (for browser `Firefox` or `FirefoxHeadless`)
47-
* `FIREFOX_DEVELOPER_BIN` (for browser `FirefoxDeveloper` or
60+
- `FIREFOX_BIN` (for browser `Firefox` or `FirefoxHeadless`)
61+
- `FIREFOX_DEVELOPER_BIN` (for browser `FirefoxDeveloper` or
4862
`FirefoxDeveloperHeadless`)
49-
* `FIREFOX_AURORA_BIN` (for browser `FirefoxAurora` or `FirefoxAuroraHeadless`)
50-
* `FIREFOX_NIGHTLY_BIN` (for browser `FirefoxNightly` or
63+
- `FIREFOX_AURORA_BIN` (for browser `FirefoxAurora` or `FirefoxAuroraHeadless`)
64+
- `FIREFOX_NIGHTLY_BIN` (for browser `FirefoxNightly` or
5165
`FirefoxNightlyHeadless`)
5266

5367
### Custom Firefox location
@@ -72,6 +86,7 @@ customLaunchers: {
7286
```
7387

7488
### Custom Preferences
89+
7590
To configure preferences for the Firefox instance that is loaded, you can specify a custom launcher in your Karma
7691
config with the preferences under the `prefs` key:
7792

@@ -89,6 +104,7 @@ customLaunchers: {
89104
```
90105

91106
### Loading Firefox Extensions
107+
92108
If you have extensions that you want loaded into the browser on startup, you can specify the full path to each
93109
extension in the `extensions` key:
94110

@@ -127,9 +143,8 @@ for the `em:id` tag under the `Description` tag. If your extension manifest look
127143

128144
Then you should name your extension `[email protected]`.
129145

130-
----
146+
---
131147

132148
For more information on Karma see the [homepage].
133149

134-
135150
[homepage]: https://karma-runner.github.io

0 commit comments

Comments
 (0)