One-liners for unittest and matcher.

Also had to give a one-liner to stack_trace, to work around a doc generation issue (dartbug.com/13246).

R=gram@google.com

Review URL: https://codereview.chromium.org//23828006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27398 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
kathyw@google.com
2013-09-11 19:28:17 +00:00
parent 1d5cdc7941
commit 2ff7bb2447
3 changed files with 26 additions and 39 deletions
+2
View File
@@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
/**
* Stack trace generation and parsing.
*
* ## Installing ##
*
* Use [pub][] to install this package. Add the following to your `pubspec.yaml`
+11 -18
View File
@@ -2,28 +2,21 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* The matcher library provides a 3rd generation assertion mechanism, drawing
* inspiration from [Hamcrest](http://code.google.com/p/hamcrest/).
* Support for specifying test expectations,
* such as for unit tests.
*
* ## Installing ##
*
* Use [pub][] to install this package. Add the following to your `pubspec.yaml`
* file.
*
* dependencies:
* unittest: any
*
* Then run `pub install`.
*
* Import this into your Dart code with:
* This library is included in the
* [unittest package on pub.dartlang.org]
* (http://pub.dartlang.org/packages/unittest).
* Import this library into your Dart code with:
*
* import 'package:unittest/matcher.dart';
*
* For more information, see the [unittest package on pub.dartlang.org].
* (http://pub.dartlang.org/packages/unittest).
*
* [pub]: http://pub.dartlang.org
* [pkg]: http://pub.dartlang.org/packages/matcher
* The matcher library provides a third-generation assertion mechanism, drawing
* inspiration from [Hamcrest](http://code.google.com/p/hamcrest/).
* For more information, see
* [Unit Testing with Dart]
* (http://www.dartlang.org/articles/dart-unit-tests/).
*/
library matcher;
+13 -21
View File
@@ -3,38 +3,33 @@
// BSD-style license that can be found in the LICENSE file.
/**
* A library for writing dart unit tests.
* Support for writing Dart unit tests.
*
* ## Installing ##
* For information on installing and importing this library, see the
* [unittest package on pub.dartlang.org]
* (http://pub.dartlang.org/packages/unittest).
*
* Use [pub][] to install this package. Add the following to your `pubspec.yaml`
* file.
* **See also:**
* [Unit Testing with Dart]
* (http://www.dartlang.org/articles/dart-unit-tests/)
*
* dependencies:
* unittest: any
*
* Then run `pub install`.
*
* For more information, see the
* [unittest package on pub.dartlang.org][pkg].
*
* See the [Getting Started](http://pub.dartlang.org/doc)
* guide for more details.
*
* ##Concepts##
* ##Concepts
*
* * __Tests__: Tests are specified via the top-level function [test], they can be
* organized together using [group].
*
* * __Checks__: Test expectations can be specified via [expect]
*
* * __Matchers__: [expect] assertions are written declaratively using the
* [Matcher] class.
*
* * __Configuration__: The framework can be adapted by setting
* [unittestConfiguration] with a [Configuration]. See the other libraries
* in the `unittest` package for alternative implementations of
* [Configuration] including `compact_vm_config.dart`, `html_config.dart` and
* `html_enhanced_config.dart`.
*
* ##Examples##
* ##Examples
*
* A trivial test:
*
@@ -131,15 +126,12 @@
* Timer.run()], as the Future exception handler may not capture exceptions
* in such code.
*
* Note: due to some language limitations we have to use different functions
* Note: Due to some language limitations we have to use different functions
* depending on the number of positional arguments of the callback. In the
* future, we plan to expose a single `expectAsync` function that can be used
* regardless of the number of positional arguments. This requires new langauge
* features or fixes to the current spec (e.g. see
* [Issue 2706](http://dartbug.com/2706)).
*
* [pub]: http://pub.dartlang.org
* [pkg]: http://pub.dartlang.org/packages/unittest
*/
library unittest;