You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/release/configuring-ember/configuring-ember-cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
In addition to configuring your app itself, you can also configure Ember CLI.
2
2
These configurations can be made by adding them to the `.ember-cli` file in your application's root. Many can also be made by passing them as arguments to the command line program.
3
3
4
-
For example, a common desire is to change the port that Ember CLI serves the app from. It's possible to pass the port number from the command line with `ember server --port 8080`. To make this configuration permanent, edit your `.ember-cli` file like so:
4
+
For example, a common desire is to change the port that Ember CLI serves the app from. It's possible to pass the port number from the command line with `ember server --port 8080`, if you want to pass the port to your `npm start` script you would pass it with an extra `--` like this: `npm start -- --port 8080`. To make this configuration permanent, edit your `.ember-cli` file like so:
Copy file name to clipboardExpand all lines: guides/release/testing/index.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,18 +16,12 @@ You have a few options for running tests.
16
16
17
17
First, you can run the test suite by entering the command `ember test`, or `ember t`, in your terminal. This will run the suite just once.
18
18
19
-
Suppose, instead, you want the suite to run after every file change. You can enter `ember test --server`, or `ember t -s`.
20
-
21
-
Lastly, if you are already running a local development server (through `ember server`), you can visit the `/tests` URI. This will render the `tests/index.html` template.
19
+
Running a local development server (through `npm start`), you can visit the `/tests` URI. This will render the `tests/index.html` template. This will also auto-update as you are changing files in your app.
22
20
23
21
```bash
24
22
# Run all tests once
25
23
ember test
26
24
ember t
27
-
28
-
# Run all tests after every file change
29
-
ember test --server
30
-
ember t -s
31
25
```
32
26
33
27
### How to Filter Tests
@@ -38,23 +32,23 @@ The `--module` option allows you to select a **module**—a group of tests that
38
32
39
33
```bash
40
34
# Button component example
41
-
ember test --server --module="Integration | Component | simple-button"
35
+
ember test --module="Integration | Component | simple-button"
42
36
43
37
# Run tests for a location service
44
-
ember t -s -m="Unit | Service | location"
38
+
ember t -m="Unit | Service | location"
45
39
```
46
40
47
41
The `--filter` option is more versatile. You can provide a phrase to match against the modules and test descriptions. A test description is what appears in `test()` in QUnit.
48
42
49
43
```bash
50
44
# Button component example
51
-
ember test --server --filter="should show icon and label"
45
+
ember test --filter="should show icon and label"
52
46
53
47
# Test everything related to your dashboard
54
-
ember t -s -f="Dashboard"
48
+
ember t -f="Dashboard"
55
49
56
50
# Run integration tests
57
-
ember t -s -f="Integration"
51
+
ember t -f="Integration"
58
52
```
59
53
60
54
In QUnit, you can exclude tests by adding an exclamation point to the beginning of the filter, e.g. `ember test --filter="!Acceptance"`.
0 commit comments