bench
A test bench.
0.4.4
What this package is like to depend on
Last release 11 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 1.1 years
Nearly every release is documented
notes for 42 of 44 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
44 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
44 releases · Oct 2012 to Nov 2015Releases
latest 44-
0.4.424 Nov 2015 -
0.4.311 Oct 2014 -
0.4.221 Sep 2014 -
0.4.120 Jun 2014Release notes
Open source →- Added an optional
logparameter to thereflectTestsfunction and removed theloggingpackage dependency. A basic example of using thelogparameter is to pass theprintfunction fromdart:core:
void main() => reflectTests(log: print); - Added an optional
-
0.4.029 May 2014Release notes
Open source →- Changed the
descriptionparameter of theTestGroupannotation constructor to a required parameter. TheTestGroupannotation itself is optional; any library that contains one or more annotatedTestfunctions is considered a group. So in practice we found that usingTestGroupimplied the desire to set a customdescriptionin which case it was overly verbose to use the named argument each time.
- Changed the
-
0.3.025 May 2014Release notes
Open source →- Added a
Skipannotation for declaring that the annotated test function shall be skipped by test drivers. - Removed the optional
skipstring from theTestannotation; this has been replaced by theSkipannotation.
- Added a
-
0.2.2719 May 2014Release notes
Open source →- Added an
isAssertionErrormatcher. - Updated
unittestdependency to '>=0.11.0 <0.12.0'.
- Added an
-
0.2.2616 Apr 2014Release notes
Open source →- Added an
isStackOverflowErrormatcher. - Added
Usagesection to theREADME.
- Added an
-
0.2.2505 Mar 2014Release notes
Open source →- Added an
isTimeoutExceptionmatcher. - Updated API documentation generation to use the new
docgentool.
- Added an
-
0.2.2419 Feb 2014Release notes
Open source →- Renamed
Mock.clear->Mock.clearCallsto remove conflict with a method namedclearon the class being mocked.
- Renamed
-
0.2.2311 Feb 2014Release notes
Open source →- Removed some type annotations on locals that were causing type errors to be thrown as of Dart SDK 1.2.0.dev_04_00.
-
0.2.2208 Feb 2014 -
0.2.2131 Jan 2014Release notes
Open source →- Added functions
expectOneEvent,expectTwoEvents,expectNEvents,expectNoEvents, andexpectDonewhich set expectations for stream event counts but not data. - Changed
Mock.clearto only clear thecallsand not the setup; the setup may be cleared separately if desired. - Moved mock mirror system into its own library
bench.mock.mirrors.
- Added functions
-
0.2.2022 Nov 2013Release notes
Open source →- Added an optional
skipreason string to the@Testannotation. If given, the test driver will skip the annotated test function and use the reason string to log a message.
- Added an optional
-
0.2.1920 Nov 2013Release notes
Open source →- Added a very simple yet useful
Mockclass. - Removed the
main.dartlibrary that was previously used to run thecontent_shellexecutable for headless dartium testing. This had been broken since the Dart SDK removal ofcontent_shell. - Added an optional
testDriverparameter to thereflectTestsfunction; the defaultTestDriveruses theunittestpackage as before but this change allows for other future implementations.
- Added a very simple yet useful
-
0.2.1809 Nov 2013Release notes
Open source →- Added an optional
timeoutparameter to thereflectTests()function with default value of 30 seconds.
- Added an optional
-
0.2.1705 Nov 2013 -
0.2.1631 Oct 2013 -
0.2.1507 Oct 2013Release notes
Open source →- Reverted the support for
TestRuninTestfunctions that was added in the previous version. This was decidedly a bad idea, as the goal of theTestRuncontext is to allow a set of test functions to be run across multiple implementations. As such, only theSetupandTeardownfunctions should have access to the implementation context.
- Reverted the support for
-
0.2.1407 Oct 2013Release notes
Open source →- Add support for
Testfunctions to declare 1 parameter of typeTestRunto receive the run context in addition to theSetupandTeardownfunctions.
- Add support for
-
0.2.1307 Oct 2013Release notes
Open source →- Updated to SDK 0.7.6_r28108.
- Added an optional
runsparameter to the@TestGroupannotation, which defaults to['']. This provides a mechanism to declare multiple runs of a test group as a list of identifiers. AnySetuporTeardownfunction may now declare 1 parameter of typeTestRun. TheTestRunobject provides a context specific to each run of the test group, including its identifer and run count. - Changed the
descriptionparameter of theTestGroupconstructor from an optional to a named optional; this is a breaking change that was necessary to accomodate the newrunsnamed optional parameter.
-
0.2.1225 Sep 2013 -
0.2.1107 Sep 2013Release notes
Open source →- Updated to SDK 0.7.1_r27025.
- Renamed the
@ExpectThrows()annotation to@ExpectError()to clarify that it may be used to expect both thrown errors and errors that are completed asynchronously through the test's future.
-
0.2.1031 Aug 2013 -
0.2.928 Aug 2013Release notes
Open source →- Renamed the
@Group()annotation to@TestGroup()to disambiguate. - Added support for
@ExpectThrows()on asynchronous test functions. - Removed the snapshot and replaced it with the
lib/main.dartscript; the trouble with the snapshot was that every time a new Dart SDK release was being pushed the snapshot would be corrupt, so packages relying on it to perform continuous integration tests (on drone.io, for example) would fail when the new SDK release was pushed. I don't see a good solution in the short-term so it is best to use a dart script. Thetool/make_snapshot.dartscript remains for those interested in generating a snapshot on their own.
- Renamed the
-
0.2.827 Aug 2013 -
0.2.720 Aug 2013Release notes
Open source →- Merged all library code into a single
bench.dartlibrary for users to import. Themain()function was renamed toreflectTests()to better reflect what it does, and to free upmain()for future work. - Renamed the snapshot from
runnertobench.
- Merged all library code into a single
-
0.2.619 Aug 2013Release notes
Open source →-
Add a very primitive test runner for running headless browser tests via
content_shell --dump-render-tree. The snapshot is in thelib/directory for now so that it is visible to applications that listbenchas a dependency. It can be used from such an application's root directory in the following manner:dart packages/bench/runner test/my_browser_harness.html
-
-
0.2.513 Aug 2013Release notes
Open source →- Fixed an issue regarding
Setup/Teardown/Testmirrored invocations that returnFuture; the returned future is now passed correctly to theunittestlibrary functions.
- Fixed an issue regarding
-
0.2.402 Aug 2013 -
0.2.330 Jul 2013Release notes
Open source →- Added support for
@Setupand@Teardowninvocation in the test runner. - Use each test library's
qualifiedNameas the default group name when none is specified with@Group(description); currently@Group()annotations are ignored because support for reflection of metadata on library declarations is not yet implemented.
- Added support for
-
0.2.224 Jul 2013Release notes
Open source →- Added
@ExpectThrows()annotation which takes an optionalMatcherfrom theunittestpackage. The default matcher isanything.
- Added
-
0.2.124 Jul 2013Release notes
Open source →- Added an
example/browser.htmlto demonstrate usage with html configuration. - Workaround the lack of library declaration metadata reflection (@Group) by setting a single top-level group named '*'; the html configuration renderer will only render tests in groups.
- Added an
-
0.2.023 Jul 2013Release notes
Open source →- Repurposed this package to provide metadata and a reflective test runner for
Dart's
unittestpackage. For benchmarks, please use thebenchmark_harnesspackage. We may enhance this package to provide support for thebenchmark_harnessin the future, if there is demand.
- Repurposed this package to provide metadata and a reflective test runner for
Dart's
-
0.1.401 May 2013 -
0.1.218 Apr 2013 -
0.1.111 Apr 2013Release notes
Open source →- Refactored a large portion of the async code to simplify things thanks to the lib_v2 changes; Completers are no longer used unless necessary.
-
0.1.021 Mar 2013 -
0.0.1021 Feb 2013 -
0.0.923 Jan 2013 -
0.0.815 Dec 2012Release notes
Open source →- Better dependency version constraints.
- Removed function literal from example that was causing error in latest SDK.
-
0.0.711 Dec 2012 -
0.0.514 Nov 2012Nothing published for this version
-
0.0.330 Oct 2012Nothing published for this version