Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: README.md

Issue 1394103004: Add another link to the API docs to the README. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698