| OLD | NEW |
| 1 `test` provides a standard way of writing and running tests in Dart. | 1 `test` provides a standard way of writing and running tests in Dart. |
| 2 | 2 |
| 3 ## Writing Tests | 3 ## Writing Tests |
| 4 | 4 |
| 5 Tests are specified using the top-level [`test()`][test] function, and test | 5 Tests are specified using the top-level [`test()`][test] function, and test |
| 6 assertions are made using [`expect()`][expect]: | 6 assertions are made using [`expect()`][expect]: |
| 7 | 7 |
| 8 [test]: http://www.dartdocs.org/documentation/test/latest/index.html#test/test@i
d_test | 8 [test]: http://www.dartdocs.org/documentation/test/latest/index.html#test/test@i
d_test |
| 9 [expect]: http://www.dartdocs.org/documentation/test/latest/index.html#test/test
@id_expect | 9 [expect]: http://www.dartdocs.org/documentation/test/latest/index.html#test/test
@id_expect |
| 10 | 10 |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 486 |
| 487 In this case, the port is `8081`. In another terminal, pass this port to | 487 In this case, the port is `8081`. In another terminal, pass this port to |
| 488 `--pub-serve` and otherwise invoke `pub run test:test` as normal: | 488 `--pub-serve` and otherwise invoke `pub run test:test` as normal: |
| 489 | 489 |
| 490 ```shell | 490 ```shell |
| 491 $ pub run test:test --pub-serve=8081 -p chrome | 491 $ pub run test:test --pub-serve=8081 -p chrome |
| 492 "pub serve" is compiling test/my_app_test.dart... | 492 "pub serve" is compiling test/my_app_test.dart... |
| 493 "pub serve" is compiling test/utils_test.dart... | 493 "pub serve" is compiling test/utils_test.dart... |
| 494 00:00 +42: All tests passed! | 494 00:00 +42: All tests passed! |
| 495 ``` | 495 ``` |
| 496 |
| 497 ## Further Reading |
| 498 |
| 499 Check out the [API docs][api] for detailed information about all the functions |
| 500 available to tests. |
| 501 |
| 502 [api]: http://www.dartdocs.org/documentation/test/latest/index.html |
| OLD | NEW |