scheduled_test 0.12.11+1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 64

This package is deprecated. It will not be maintained going forward.

The scheduled_test package was originally created before Dart supported async and await, as a way to make it possible to write readable asynchronous tests. Now that async and await exist, this purpose is no longer relevant.

Most of the features of scheduled_test are now available in other packages that use normal Future- and Stream-based APIs.

  • The scheduled_test/descriptor library is replaced by the test_descriptor package.

  • The scheduled_test/scheduled_process library is replaced by the test_process package.

  • The scheduled_test/scheduled_stream library is replaced by the StreamQueue in the async package as well as the stream matchers in the test package.

  • The scheduled_test/scheduled_server library is replaced by the shelf_test_handler package.

0.12.11+1

  • This package is now deprecated and will not be maintained going forward. See the README for details.

0.12.11

  • Fix most strong mode errors and warnings.

  • Support test version 0.12.20

  • Minimum Dart SDK version is now 1.22.0.

  • Hide the StreamMatcher class from the test package.

0.12.10

  • Support test version 0.12.19.

0.12.9

  • Support test version 0.12.18.

0.12.8+1

  • Make setUpAll() and tearDownAll() work with normal setUp() and tearDown() calls.

0.12.8

  • Support scheduling in setUpAll() and tearDownAll().

0.12.7

  • Support test version 0.12.17.

0.12.6+1

  • Support test version 0.12.16.

0.12.6

  • Support test version 0.12.15.

0.12.5+6

  • Declare compatibility with test version 0.12.14.

0.12.5+5

  • Fix all strong mode warnings.

0.12.5+4

  • Actually declare compatibility with test version 0.12.13.

0.12.5+3

  • Declare compatibility with test version 0.12.13.

0.12.5+2

  • Declare compatibility with test version 0.12.12.

0.12.5+1

  • Declare compatibility with test version 0.12.11.

0.12.5

  • Add a tags parameter to test() and group().

0.12.4+6

  • Declare compatibility with test version 0.12.10.

0.12.4+5

  • Declare compatibility with shelf version 0.7.0.

  • Declare compatibility with test version 0.12.9.

0.12.4+4

  • Declare compatibility with test version 0.12.8.

0.12.4+3

  • Declare compatibility with test version 0.12.7.

0.12.4+2

  • Declare compatibility with http_multi_server version 2.0.0.

0.12.4+1

  • Update the dependency on test to include 0.12.6.

0.12.4

  • Update the dependency on test to include 0.12.5.

0.12.3

  • Update the dependency on test to include 0.12.4.

0.12.2

  • Add ScheduledServer.handleUnscheduled, which allows users to create long-lasting handlers that aren't part of the test schedule.

  • Support WebSocket connections with ScheduledServers.

0.12.1+2

  • Fix running scheduled tests via dart path/to/test.dart.

0.12.1+1

  • Fixed usage of timeout in test and group.

0.12.1

  • Add named parameters to the wrapper test() and group() methods that forward to the test package.

0.12.0

  • When an error occurs in the tasks queue, the onComplete queue will begin running immediately rather than waiting for all outstanding tasks and out-of-band callbacks to complete. This more closely matches the semantics of the underlying test framework and will hopefully be less surprising.

  • Errors are now only converted to ScheduleErrors when they're added to the Schedule.errors list. This means that errors emitted by calls to schedule() will no longer be ScheduleErrors.

  • An error thrown in one task will no longer be emitted by the return values of future calls to schedule().

  • Remove the Schedule.onException queue. This was largely redundant with Schedule.onComplete and complicated the implementation.

  • Remove Schedule.pendingCallbacks and ScheduleError.pendingCallbacks. Printing out the pending callbacks was rarely useful once stack chains existed, so they were just producing visual clutter.

  • Remove Schedule.timeout and Schedule.heartbeat. Timeouts will be handled by the test package instead.

  • Remove Schedule.signalError. Use registerException from the test package instead.

  • Remove wrapFuture, Schedule.wrapFuture, and Schedule.wrapAsync. Use expectAsync, completes, and completion from the test package instead.

  • Remove TaskQueue.onTasksComplete.

0.11.8+1

  • Bump the version constraint for unittest.

0.11.8

  • Add a ScheduledProcess.signal() method for sending signals to subprocesses.

0.11.7+1

  • Support version 0.6.0 of shelf.

0.11.7

  • Bumped the version constraint for unittest.

0.11.6

  • Actually bump the version constraint for unittest.

0.11.5

  • Bump the version constraint for unittest.

0.11.4

  • Bump the version constraint for unittest.

0.11.3

  • Narrow the constraint on unittest to ensure that new features are reflected in scheduled_test's version.

0.11.2+3

  • Ignore hidden files in DirectoryDescriptor.fromFilesystem.

0.11.2+2

  • Moved shared test utilities to metatest package.

0.11.2+1

  • Fix a case where a ScheduledProcess could fail to log its output.

0.11.2

  • Add a DirectoryDescriptor.fromFilesystem constructor.

0.11.1

  • Add a top-level tearDown function.

0.11.0+7

  • A nothing() descriptor will fail if a broken symlink is present.

0.11.0+6

  • Use http_multi_server to bind to both the IPv4 and IPv6 loopback addresses for scheduled_test.

0.11.0+5

  • Widen the version constraint for stack_trace.

0.11.0+4

  • Added README.md with content from lib/scheduled_test.dart.

  • Made changes to test/metatest.dart related to outstanding issues.

0.11.0+3

  • Support v0.11.0 of unittest.

0.11.0+1

  • Support v0.5.0 of shelf.

0.11.0

  • ScheduledServer.handle now takes a shelf.Handler rather than a custom handler class.

  • The body of a test() or a setUp() call may now return a Future. This was already supported by the unittest package. The Future is passed to a wrapFuture call.

0.10.1+1

  • Updated http version constraint from ">=0.9.0 <0.10.0" to ">=0.9.0 <0.11.0"

0.10.1

  • Add a StreamMatcher.hasMatch method.

  • The consumeThrough and consumeWhile matchers for ScheduledStream now take StreamMatchers as well as normal Matchers.

0.10.0

  • Convert ScheduledProcess to expose stdout and stderr as ScheduledStreams.

  • Add a consumeWhile matcher for ScheduledStream.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  scheduled_test: "^0.12.11+1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:scheduled_test/scheduled_test.dart';
        
Version Uploaded Documentation Archive
0.12.11+1 Jun 14, 2017 Go to the documentation of scheduled_test 0.12.11+1 Download scheduled_test 0.12.11+1 archive
0.12.11 Mar 13, 2017 Go to the documentation of scheduled_test 0.12.11 Download scheduled_test 0.12.11 archive
0.12.10+1 Feb 10, 2017 Go to the documentation of scheduled_test 0.12.10+1 Download scheduled_test 0.12.10+1 archive
0.12.10 Feb 8, 2017 Go to the documentation of scheduled_test 0.12.10 Download scheduled_test 0.12.10 archive
0.12.9 Dec 21, 2016 Go to the documentation of scheduled_test 0.12.9 Download scheduled_test 0.12.9 archive
0.12.8+1 Dec 20, 2016 Go to the documentation of scheduled_test 0.12.8+1 Download scheduled_test 0.12.8+1 archive
0.12.8 Dec 2, 2016 Go to the documentation of scheduled_test 0.12.8 Download scheduled_test 0.12.8 archive
0.12.7 Nov 29, 2016 Go to the documentation of scheduled_test 0.12.7 Download scheduled_test 0.12.7 archive
0.12.6+1 Nov 17, 2016 Go to the documentation of scheduled_test 0.12.6+1 Download scheduled_test 0.12.6+1 archive
0.12.6 Jul 6, 2016 Go to the documentation of scheduled_test 0.12.6 Download scheduled_test 0.12.6 archive

All 122 versions...

Analysis

This feature is new.
We welcome feedback.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Dec 6, 2017
  • Dart: 2.0.0-dev.8.0
  • pana: 0.7.3+1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
30
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
99
Overall score:
Weighted score of the above. [more]
64

Platforms

Detected platforms: Flutter, server, web

primary library - package:scheduled_test/scheduled_test.dart

Suggestions

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
async ^1.10.0 1.13.3 2.0.1
collection ^1.5.0 1.14.3
http >=0.9.0 <0.12.0 0.11.3+16
http_multi_server >=1.0.0 <3.0.0 2.0.4
path >=0.9.0 <2.0.0 1.5.1
shelf >=0.5.2 <0.8.0 0.7.1
stack_trace >=0.9.1 <2.0.0 1.9.1
test >=0.12.20 <0.12.21 0.12.20+13 0.12.29
Transitive dependencies
analyzer 0.30.0+4 0.31.0-alpha.2
args 0.13.7 1.2.0
barback 0.15.2+13
boolean_selector 1.0.2
charcode 1.1.1
cli_util 0.1.2+1
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
front_end 0.1.0-alpha.4.1 0.1.0-alpha.7
glob 1.1.5
html 0.13.2
http_parser 3.1.1
isolate 1.1.0
kernel 0.3.0-alpha.1.1 0.3.0-alpha.4
logging 0.11.3+1
matcher 0.12.1+4
meta 1.1.2
mime 0.9.4
package_config 1.0.3
package_resolver 1.0.2
plugin 0.2.0+2
pool 1.3.3
pub_semver 1.3.2
shelf_packages_handler 1.0.3
shelf_static 0.2.6
source_map_stack_trace 1.1.4
source_maps 0.10.4
source_span 1.4.0
stream_channel 1.6.2
string_scanner 1.0.2
term_glyph 1.0.0
typed_data 1.1.5
utf 0.9.0+3
watcher 0.9.7+4
web_socket_channel 1.0.6
yaml 2.1.13
Dev dependencies
metatest ^0.2.1
shelf_web_socket ^0.2.0 0.2.2