PackageTrack
Sign in Get early access

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 2015
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 44
  1. 0.4.4 24 Nov 2015
    Release notes
    • No longer maintained.
    Open source →
  2. 0.4.3 11 Oct 2014
    Release notes
    • Added the @proxy annotation to the Mock class.
    Open source →
  3. 0.4.2 21 Sep 2014
    Release notes
    • Maintenance.
    Open source →
  4. 0.4.1 20 Jun 2014
    Release notes
    • Added an optional log parameter to the reflectTests function and removed the logging package dependency. A basic example of using the log parameter is to pass the print function from dart:core:
    void main() => reflectTests(log: print);
    
    Open source →
  5. 0.4.0 29 May 2014
    Release notes
    • Changed the description parameter of the TestGroup annotation constructor to a required parameter. The TestGroup annotation itself is optional; any library that contains one or more annotated Test functions is considered a group. So in practice we found that using TestGroup implied the desire to set a custom description in which case it was overly verbose to use the named argument each time.
    Open source →
  6. 0.3.0 25 May 2014
    Release notes
    • Added a Skip annotation for declaring that the annotated test function shall be skipped by test drivers.
    • Removed the optional skip string from the Test annotation; this has been replaced by the Skip annotation.
    Open source →
  7. 0.2.27 19 May 2014
    Release notes
    • Added an isAssertionError matcher.
    • Updated unittest dependency to '>=0.11.0 <0.12.0'.
    Open source →
  8. 0.2.26 16 Apr 2014
    Release notes
    • Added an isStackOverflowError matcher.
    • Added Usage section to the README.
    Open source →
  9. 0.2.25 05 Mar 2014
    Release notes
    • Added an isTimeoutException matcher.
    • Updated API documentation generation to use the new docgen tool.
    Open source →
  10. 0.2.24 19 Feb 2014
    Release notes
    • Renamed Mock.clear -> Mock.clearCalls to remove conflict with a method named clear on the class being mocked.
    Open source →
  11. 0.2.23 11 Feb 2014
    Release notes
    • Removed some type annotations on locals that were causing type errors to be thrown as of Dart SDK 1.2.0.dev_04_00.
    Open source →
  12. 0.2.22 08 Feb 2014
    Release notes
    • Update to unittest version 0.10.0.
    Open source →
  13. 0.2.21 31 Jan 2014
    Release notes
    • Added functions expectOneEvent, expectTwoEvents, expectNEvents, expectNoEvents, and expectDone which set expectations for stream event counts but not data.
    • Changed Mock.clear to only clear the calls and not the setup; the setup may be cleared separately if desired.
    • Moved mock mirror system into its own library bench.mock.mirrors.
    Open source →
  14. 0.2.20 22 Nov 2013
    Release notes
    • Added an optional skip reason string to the @Test annotation. If given, the test driver will skip the annotated test function and use the reason string to log a message.
    Open source →
  15. 0.2.19 20 Nov 2013
    Release notes
    • Added a very simple yet useful Mock class.
    • Removed the main.dart library that was previously used to run the content_shell executable for headless dartium testing. This had been broken since the Dart SDK removal of content_shell.
    • Added an optional testDriver parameter to the reflectTests function; the default TestDriver uses the unittest package as before but this change allows for other future implementations.
    Open source →
  16. 0.2.18 09 Nov 2013
    Release notes
    • Added an optional timeout parameter to the reflectTests() function with default value of 30 seconds.
    Open source →
  17. 0.2.17 05 Nov 2013
    Release notes
    • Updated to SDK 0.8.10_r29803.
    Open source →
  18. 0.2.16 31 Oct 2013
    Release notes
    • Updated to SDK 0.8.7_r29341.
    Open source →
  19. 0.2.15 07 Oct 2013
    Release notes
    • Reverted the support for TestRun in Test functions that was added in the previous version. This was decidedly a bad idea, as the goal of the TestRun context is to allow a set of test functions to be run across multiple implementations. As such, only the Setup and Teardown functions should have access to the implementation context.
    Open source →
  20. 0.2.14 07 Oct 2013
    Release notes
    • Add support for Test functions to declare 1 parameter of type TestRun to receive the run context in addition to the Setup and Teardown functions.
    Open source →
  21. 0.2.13 07 Oct 2013
    Release notes
    • Updated to SDK 0.7.6_r28108.
    • Added an optional runs parameter to the @TestGroup annotation, which defaults to ['']. This provides a mechanism to declare multiple runs of a test group as a list of identifiers. Any Setup or Teardown function may now declare 1 parameter of type TestRun. The TestRun object provides a context specific to each run of the test group, including its identifer and run count.
    • Changed the description parameter of the TestGroup constructor from an optional to a named optional; this is a breaking change that was necessary to accomodate the new runs named optional parameter.
    Open source →
  22. 0.2.12 25 Sep 2013
    Release notes
    • Updated to SDK 0.7.5_r27776.
    Open source →
  23. 0.2.11 07 Sep 2013
    Release notes
    • 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.
    Open source →
  24. 0.2.10 31 Aug 2013
    Release notes
    • Updated documentation.
    Open source →
  25. 0.2.9 28 Aug 2013
    Release notes
    • 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.dart script; 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. The tool/make_snapshot.dart script remains for those interested in generating a snapshot on their own.
    Open source →
  26. 0.2.8 27 Aug 2013
    Release notes
    • Updated to SDK 0.6.21_r26639.
    Open source →
  27. 0.2.7 20 Aug 2013
    Release notes
    • Merged all library code into a single bench.dart library for users to import. The main() function was renamed to reflectTests() to better reflect what it does, and to free up main() for future work.
    • Renamed the snapshot from runner to bench.
    Open source →
  28. 0.2.6 19 Aug 2013
    Release notes
    • Add a very primitive test runner for running headless browser tests via content_shell --dump-render-tree. The snapshot is in the lib/ directory for now so that it is visible to applications that list bench as 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

    Open source →
  29. 0.2.5 13 Aug 2013
    Release notes
    • Fixed an issue regarding Setup / Teardown / Test mirrored invocations that return Future; the returned future is now passed correctly to the unittest library functions.
    Open source →
  30. 0.2.4 02 Aug 2013
    Release notes
    • Added support for @Group() in the test runner.
    Open source →
  31. 0.2.3 30 Jul 2013
    Release notes
    • Added support for @Setup and @Teardown invocation in the test runner.
    • Use each test library's qualifiedName as 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.
    Open source →
  32. 0.2.2 24 Jul 2013
    Release notes
    • Added @ExpectThrows() annotation which takes an optional Matcher from the unittest package. The default matcher is anything.
    Open source →
  33. 0.2.1 24 Jul 2013
    Release notes
    • Added an example/browser.html to 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.
    Open source →
  34. 0.2.0 23 Jul 2013
    Release notes
    • Repurposed this package to provide metadata and a reflective test runner for Dart's unittest package. For benchmarks, please use the benchmark_harness package. We may enhance this package to provide support for the benchmark_harness in the future, if there is demand.
    Open source →
  35. 0.1.4 01 May 2013
    Release notes
    • Updated to SDK 0.5.1_r22072.
    Open source →
  36. 0.1.2 18 Apr 2013
    Release notes
    • Updated to SDK 0.4.7_r21548.
    Open source →
  37. 0.1.1 11 Apr 2013
    Release notes
    • Refactored a large portion of the async code to simplify things thanks to the lib_v2 changes; Completers are no longer used unless necessary.
    Open source →
  38. 0.1.0 21 Mar 2013
    Release notes
    • Updated to SDK 0.4.2_r20259.
    Open source →
  39. 0.0.10 21 Feb 2013
    Release notes
    • Updated to SDK 0.3.7_r18717.
    Open source →
  40. 0.0.9 23 Jan 2013
    Release notes
    • Updates for the lib v2 SDK (0.3.1_r17328).
    Open source →
  41. 0.0.8 15 Dec 2012
    Release notes
    • Better dependency version constraints.
    • Removed function literal from example that was causing error in latest SDK.
    Open source →
  42. 0.0.7 11 Dec 2012
    Release notes
    • Updated the pubspec dependencies (logging and unittest are now on pub)
    Open source →
  43. 0.0.5 14 Nov 2012

    Nothing published for this version

  44. 0.0.3 30 Oct 2012

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive