p-hatan/ mirror

pub repository

mirror.p-hatan.ir

unittest

0.11.6+2

A library for writing dart unit tests.

This package is discontinued upstream.

Download archive

Readme

The unittest package has been renamed test. It will export test's API through the 0.12.x branch, but it is deprecated and test should be used instead.

Changelog

##0.11.6+2

  • Fix all strong mode warnings.

##0.11.6+1

  • Give tests more time to start running.

##0.11.6

  • Merge in the last 0.11.x release of matcher to allow projects to use both test and unittest without conflicts.

  • Fix running individual tests with HtmlIndividualConfiguration when the test name contains URI-escaped values and is provided with the group query parameter.

##0.11.5+4

  • Improved the output of TestCase failures in HtmlConfig.

##0.11.5+3

  • Fixed issue with handling exceptions.

##0.11.5+2

  • Properly detect when tests are finished being run on content shell.

##0.11.5+1

  • Internal code cleanups and documentation improvements.

##0.11.5

  • Bumped the version constraint for matcher.

##0.11.4

  • Bump the version constraint for matcher.

##0.11.3

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

##0.11.2

  • Prints a warning instead of throwing an error when setting the test configuration after it has already been set. The first configuration is always used.

##0.11.1+1

  • Fix bug in withTestEnvironment where test cases were not reinitialized if called multiple times.

##0.11.1

  • Add reason named argument to expectAsync and expectAsyncUntil, which has the same definition as expect's reason argument.
  • Added support for private test environments.

##0.11.0+6

  • Refactored package tests.

##0.11.0+5

  • Release test functions after each test is run.

##0.11.0+4

##0.11.0+3

  • Updated maximum matcher version.

##0.11.0+2

  • Removed unused files from tests and standardized remaining test file names.

##0.11.0+1

  • Widen the version constraint for stack_trace.

##0.11.0

  • Deprecated methods have been removed:
    • expectAsync0, expectAsync1, and expectAsync2 - use expectAsync instead
    • expectAsyncUntil0, expectAsyncUntil1, and expectAsyncUntil2 - use expectAsyncUntil instead
    • guardAsync - no longer needed
    • protectAsync0, protectAsync1, and protectAsync2 - no longer needed
  • matcher.dart and mirror_matchers.dart have been removed. They are now in the matcher package.
  • mock.dart has been removed. It is now in the mock package.

##0.10.1+2

  • Fixed deprecation message for mock.

##0.10.1+1

  • Fixed CHANGELOG
  • Moved to triple-slash for all doc comments.

##0.10.1

  • DEPRECATED
    • matcher.dart and mirror_matchers.dart are now in the matcher package.
    • mock.dart is now in the mock package.
  • equals now allows a nested matcher as an expected list element or map value when doing deep matching.
  • expectAsync and expectAsyncUntil now support up to 6 positional arguments and correctly handle functions with optional positional arguments with default values.

##0.10.0

  • Each test is run in a separate Zone. This ensures that any exceptions that occur is async operations are reported back to the source test case.
  • DEPRECATED guardAsync, protectAsync0, protectAsync1, and protectAsync2
    • Running each test in a Zone addresses the need for these methods.
  • NEW! expectAsync replaces the now deprecated expectAsync0, expectAsync1 and expectAsync2
  • NEW! expectAsyncUntil replaces the now deprecated expectAsyncUntil0, expectAsyncUntil1 and expectAsyncUntil2
  • TestCase:
    • Removed properties: setUp, tearDown, testFunction
    • enabled is now get-only
    • Removed methods: pass, fail, error
  • interactive_html_config.dart has been removed.
  • runTests, tearDown, setUp, test, group, solo_test, and solo_group now throw a StateError if called while tests are running.
  • rerunTests has been removed.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add unittest
pubspec.yaml
name: unittest
version: 0.11.6+2
author: Dart Team <misc@dartlang.org>
description: A library for writing dart unit tests.
homepage: https://github.com/dart-lang/old_unittest
environment:
  sdk: '>=1.0.0 <2.0.0'
dependencies:
  stack_trace: '>=0.9.0 <2.0.0'
dev_dependencies:
  metatest: '>=0.1.0 <0.2.0'

Version history

VersionPublishedArchiveSHA-256
0.2.72012-11-30T21:20:29.907610ZDownload327dd9b54d898c3d71be8d4068715fa1c5419ee35fc11c40a70e5518d9a0f644
0.2.8+22012-12-11T21:39:41.029640ZDownload5b77213e306b92f8e57d485c929c7baaa7cab09440f992a6d3c39ed869c56566
0.2.9+72012-12-18T18:01:58.417490ZDownload338de0216a9ac89ef0d1d2f455803a2d673af8c107c3666bcbdd774f79448d8c
0.2.10+12013-01-09T01:29:51.926190ZDownload79ede3af29585baa2277bd9fde6f187f6d04f616473d9ab105573ee8e90a3fb1
0.3.1+12013-01-22T22:03:06.948540ZDownload2f5600fdd67ec2eec780d9f31234f82801ab332e82707e5451944c3ce0956a8c
0.3.22013-01-28T20:40:11.374040ZDownload964b21b922f19042ae750910a6acbb670047efde2b48a7f456250358790953f1
0.3.42013-02-05T17:01:29.723040ZDownloadafb20d50afc01a2b557f978ab0d816211d0f815573e16f66898344c9992bdd3e
0.3.5+12013-02-11T19:58:26.510540ZDownload8d19468be6abd25c02ec6d3e81eb4029a7c9808a333d22fe80ad451658b42005
0.3.7+62013-02-20T20:46:43.406150ZDownloadaf80cc042ae16debfa627e8e1ead366a16c3b41b807031aa6a7949755b90d30f
0.4.02013-02-25T18:41:11.864400ZDownloadbf18325c3e083ef2f1f2f925dc10bd5738855221a455a0e6a2512e99e05c07a7
0.4.12013-03-05T19:05:55.661990ZDownload302eafba8ea695d3c81c07632f3b33bf89372de5e0f53d824783933cbaa806b0
0.4.22013-03-16T00:14:53.450930ZDownload2831a0ee9b21a9c9875d508e2f46ef6f11e0a367e01fd8f42311723ebacfd567
0.4.3+12013-03-25T19:54:15.703050ZDownload7009edd968b5c89cbf867bb056ab962d3147e534c17e28f95cebcb15f4418905
0.4.4+42013-04-03T17:57:52.331170ZDownload5704b7429a08a3e87ea3ee8aa8e63781ecb8da357ce9fd2c2835d842b5d1f5ab
0.4.5+12013-04-08T23:14:26.985600ZDownload725c4b6e3e3f5489b37bbfb3f7b9b1c0bbc8aac775cf3ed9a71ea63dce06b277
0.4.7+12013-04-16T15:43:19.855630ZDownloadbfacab30573d86716e8329cb91ddf6b935f5f6b649097bcb69787c1ded992193
0.5.0+12013-04-23T00:51:50.574270ZDownload8f249b3d054358a782fcf3cef1ef2551ce2d4d90a40eb3d21e04712f6dd2678c
0.5.12013-04-29T18:53:37.981400ZDownload9ca73f2a94e002109670a43b9bce9eae295d7a123c15058aafe60fbbd0547605
0.5.42013-05-03T16:43:12.631980ZDownload6145215afdc62bc9584be644a79eb8c3c21ef58650227b8826480b777b2a4b5e
0.5.52013-05-06T19:20:13.553360ZDownload1afb49482d11098d9e79ce2d0e04a402cf3ca8177931a4ef96ac0019a6d44237
0.5.62013-05-08T16:43:55.491120ZDownload65774a2fe422da95d1a508b5e7bc7a26b66516808ef6cb88ca3698b902cc16aa
0.5.72013-05-10T05:07:02.372910ZDownload362c604819002bd2c0f9aeb817d028001c514d0f25b60ceff5f4e38983b75700
0.5.92013-05-20T15:47:55.622140ZDownload75c585762d20a723f383007c886f12e05c358f98a674e84091fcd5e6bfda2d51
0.5.11+12013-05-29T00:11:16.178460ZDownload44ba07e1b49c1cc64432549c5a945be41f1f492ba3dcafdfb3c79e34d9436b83
0.5.122013-05-29T18:33:01.405ZDownloadf32387352a4ad2febd77288440d23fe8e9e4f8bcd5387e556204fa630734d547
0.5.132013-06-03T16:06:03.466150ZDownloadb273cd053f2063a21cde62300e614989beb3c7fe5686d8657c87419a65450cbc
0.5.14+12013-06-05T15:06:01.363550ZDownloada77003a4ab7da35c26201f255b91cd1e228d6dd5973d836615d4f4cb59059980
0.5.14+32013-06-06T16:39:08.072900ZDownload2a0ca9c0e037969f3f70bf2a1d179c4d79dc88eb959ef18d94a5142d2195f0c5
0.5.152013-06-07T23:02:15.116880ZDownload804d33aff1d907326e2aedd79d50e292aaf64f32b35e855ac0c593cc50a0d2d5
0.5.162013-06-10T16:39:05.583410ZDownload212030fc54d25c7cac3f93ad5494a8790c96eaecd2fd9f53702bd0fd81c3bc0c
0.5.172013-06-12T17:53:51.882440ZDownload995953d6867955cd83cf6893b11918cb89a60578135f934f61d0adc0bb56de50
0.5.202013-06-17T22:09:17.516610ZDownloada1de12d0eb48b1e88df64617439a23cf35388f36e782fa4622a691b41e271a47
0.6.12013-06-27T19:34:35.045680ZDownload9e5c6e329782b24dcf59020f395ec46fc33bc80bebec0da47290659c6ea03b81
0.6.22013-06-28T20:57:16.420240ZDownload338aedc845e8b5e59c1ebb7a020592c732efe3d3f4513a6372d708a5ef4cef8b
0.6.3+12013-07-09T00:25:04.243060ZDownloadc17002da59b600fc0c18bcbfb752659069e6a6034885b263dc65a6df53be8162
0.6.52013-07-16T00:21:50.304730ZDownloada867f1938f7fe26cde8915710823737ec4510ab59a7db2aaa8af494e3a97ab81
0.6.62013-07-17T19:44:28.318380ZDownloadb1306f2889caea2d195670ebf5ed8ab473b95261ee7abf7f6769bb7ecfa975a1
0.6.82013-07-19T20:56:42.312030ZDownload1eaef9868ce155906dcf91eeabbf4e63cae6efa77fb1f76e88c4bc4022f9d7f8
0.6.92013-07-22T15:17:27.604470ZDownload95b0a03f9000507e9116f5c3f89370e0bef5f8534edbaa7e8ebd9dd83f2738ff
0.6.9+22013-07-24T03:59:47.226550ZDownload487b4975298356ed7bc6255f04b81ac01f94bee6db7043fbe424ca8dd1ccde16
0.6.112013-07-25T05:10:39.834130ZDownloadb26f982e6d480a4428bf0c9985de160ea9b19f20ffd343408b1d1a6821cc42df
0.6.122013-07-26T20:07:33.718420ZDownload5be4ef20ba53e84b1df9a62e384ef411a708e53630e9222d3e8d88ded38ba79b
0.6.132013-07-30T21:57:08.975490ZDownload31484fd93f14dea12be7169373484930cda1b86da3cf18876870b6dc84f39ae9
0.6.142013-08-02T16:28:15.928870ZDownloadd1e2272d0237ab49348a544cfdf8720334e76f5044fb6113f873c867578aa579
0.6.14+12013-08-02T16:35:44.076760ZDownload14e4162d15436626dd4a7eae90945009f003063f40a092cb88c41325b3fe2ed4
0.6.14+22013-08-02T19:50:02.264430ZDownload7eb2b916b5f9c62d3c7034f1804c843314d908cf99059bb706ad97af41ae7e4d
0.6.15+22013-08-05T22:50:52.712500ZDownload2bdeee32714d838e7f037cc7dd6086c299f80b2a4ce2e15c9c978b823e4a3b0d
0.6.15+32013-08-06T20:14:01.305980ZDownload4eb403e127b77a25a2fbd71ef25dcf3d8bf2103599eecccaece852736b47e5dc
0.6.172013-08-10T17:36:26.129780ZDownloadf97245a6cd0263ca65db3cea23b62db110dce022895b747ef35c8c6dbdf88514
0.6.17+22013-08-12T22:23:00.059950ZDownload00bcfe1af311aef169a572b8d250c140613d87ebf72e95da6265f4894e601017
0.6.192013-08-19T16:11:51.743410ZDownloadc24a09b921853966a330c34775461ad39e368f52b73f775b8315f599adee82cf
0.6.20+12013-08-22T18:20:26.602600ZDownload8dc3cf89ea37c94fe6b9aab383597e04fdf6e44cc07369311a4cd2812c53335b
0.6.21+32013-08-26T17:44:07.284820ZDownloada36cbcfc5b7a4c7183899615dc76671b76214c00bf58d067b60d1af7ce895770
0.7.02013-08-28T19:29:59.795010ZDownloadfe0a69a454102eed5919948a6e80df5eda7ea3e17ccb45d21e3d0cf96186cbde
0.7.12013-09-03T15:54:51.033100ZDownload5c22c50b5b212e18d3658aeb64e2e82b4e92d9f5825e3502af7450012eea408b
0.7.22013-09-06T15:52:29.842470ZDownload23f1cd3f9c9b3c65c2c7a4c49c5744e2c98fbe0bc60c5449781f630142adc8a1
0.7.2+12013-09-08T15:48:32.993990ZDownloadf7d7d4e84e4d2fdb6ca190128dc5e566434523c7ece5141395d8a6a2bfd6a632
0.7.3+12013-09-16T15:45:32.034040ZDownload1404e08896d1ba52c85d5d9ff291ffef77dcdab70b2ef0c10049562b8585ab31
0.7.42013-09-18T03:04:59.674040ZDownload4a4fdd0ce25e11a9e1c77600f67f80cb41d67a5f04e9c0ac9bef4f8b6fb4763b
0.7.52013-09-21T00:43:42.154420ZDownload1dd2ff5db748cf233c9037372a86a6eeb010dc4a790ced2774c456a30649e827
0.7.62013-09-27T14:58:43.961450ZDownloaddbae06c412cea911841d0317ff14715d3b8e5703cd33203e3f4aef8c2afc737a
0.7.6+42013-10-01T23:49:56.638080ZDownload068318c2d932921af581925668bfd6160633d3298cea28079159825276ae130d
0.8.02013-10-03T16:29:13.045730ZDownload8f1f09b8602261381310fe470709baa816503667443b9d5bac9259300ef912b3
0.8.12013-10-04T21:55:25.719170ZDownload0be66cbd1fe1ed3cee8373e28eb3734bd3bfb6532290f7e8d7fbaf6b337be11d
0.8.22013-10-14T21:44:34.555370ZDownload19a71fed9f166695e5b22261a5a5c30d53b9979cb0e2af950289ec876d3eee15
0.8.32013-10-17T16:01:42.630010ZDownload61a4ca615d6f863b72c0181358c52d6fbdc1cb95b6962860e404b903146aeea8
0.8.42013-10-19T21:10:06.373760ZDownload5a717b42011fa48fd927ea16dafbf9f39b7e86a70555286401f49d80975afe43
0.8.52013-10-21T15:53:15.670810ZDownload5bb07eec120f903b58f9e8b6600027af4c94828819056bb745f137c657238179
0.8.62013-10-24T08:21:47.494720ZDownload7e008ad9da5a6ded0ec979d07e3404d2cc8cfe85b9c6b2f11851b39cd9551fef
0.8.72013-10-28T14:34:42.077740ZDownloadc6ef9cf9ae19633ef5e21925bf8b85d3da1d98085a9df3fbc69399bba8e82d77
0.8.82013-10-30T03:30:28.532760ZDownload617c00ab828b0f95378e3dc4fed61bcac2402d02c0f36bc6fa788da516619ce0
0.8.92013-10-31T15:17:03.219260ZDownload0214c3776e68388335c0917c6cd3d963114953c7b8dbc21bffb64b6c304b71cb
0.8.102013-11-01T19:24:07.685690ZDownloadb92688ac8d97ea0d86e1b314cf4695a0ae334214dce2e01b04691269bedfaf45
0.8.10+32013-11-04T16:50:23.027080ZDownloadfeda1053da435cc5ae9598335abbd5babf2d314f94d7423088265600126fd316
0.8.10+42013-11-05T16:07:00.679810ZDownloadac800acf6e3806107ac3fa1a0aeb22e811bcd74073b3e744118baf09aec1c9eb
0.9.02013-11-06T19:34:18.795790ZDownloade769c3d7671d0caad1389001c826a760f22db31343bdbd6a78f1205f377ce974
0.9.12013-12-11T01:17:16.394870ZDownload38d94524c44717906fcb5c3761d7ec223be42eaa5fee778a5d78f4a21cc6f96d
0.9.22013-12-17T03:36:58.849330ZDownloadad87cb197ae530a4875807e452553beb6683917d378523e5e640c505dec035c5
0.9.2+12013-12-20T02:16:36.314080ZDownload53c7a40d8992d44469081d0fd353b90229b4c7c7a11e5ddaa88536d86445c0db
0.9.32014-01-13T18:11:47.376270ZDownloadf5697ec6994c306a53489281b627f407ebf95e7f45a13b16aada395810eaa5ab
0.10.02014-02-08T01:29:00.310870ZDownloadc091642982b740bbf4e881dbecb7a12b2961b5d040f1cd9880a10516663b87b9
0.10.12014-03-24T22:58:27.447430ZDownload2e3d69a9934098328103c7c3ab992622991e5d303f953d3cf60f3a49fbe51fbe
0.10.1+12014-03-25T19:45:36.969690ZDownloade9fd317138c6bfeb2f10bab8f3f8886cbd7b7192cee1376f4a6a058ce5dd8baa
0.10.1+22014-04-02T01:29:11.725500ZDownload497d694591513469cc39b1868523d0f6d5f4d8a2f5c60de6f197b1eb58805fcc
0.11.02014-05-12T22:44:22.345500ZDownload6a8c03a4c5292188d23ba916c6d51c2bb6e8936428fe554d29b8917e6a61ecd9
0.11.0+12014-06-02T18:42:31.131430ZDownloadc67f9902817f3f1d34fbe0cf5dce3631bc1e24d513b61d0c9d4218f7f7c23ddf
0.11.0+22014-06-10T00:05:55.923120ZDownload152c54509689f3784841627fd1ebce927d45efa9bcb2dd4fc5dc579a31c3855c
0.11.0+32014-07-23T01:07:51.001500ZDownload2c94a496d9de3c87273a76dcb6296cdb93d3b6b38ca94850bdec4839145fa133
0.11.0+42014-08-08T00:03:05.939460ZDownloada8e9a04ac8c3e025310e9b52d2f757638f89e0a71ac8b06acb84dfb8308200b0
0.11.0+52014-08-20T23:44:04.869530ZDownload1b9afc3309c262115c2377c4f28f04a35c63ad21642735d6858881527902dd22
0.11.12014-11-17T14:16:41.765610ZDownload772fbd963f0bdf8776b7af37ce498d6cb6417eceb7fa8e451834494acfe1bb3f
0.11.1+12014-11-18T10:43:32.392770ZDownloadab9d88ac52aaf12cffd5cac7c94f289d06321d3f2e70f83371c0a933dfd0dd56
0.11.32014-12-09T21:56:06.955ZDownload920bfa3e8dc91d683b74172c4ba464461c056863504c9955f6e745dc28c71dcf
0.11.42014-12-11T00:03:16.666950ZDownload34efbbe4a0c24b19f8b8ee04f98fab731fade92bd2dd64df00b396ff6ae51834
0.11.52015-01-13T02:16:25.236ZDownloade4cddff55b82832e4230e00673a8f4cb625b0bffdb7cff6dd477a56ef00a0076
0.11.5+22015-02-06T01:08:38.445120ZDownload8626716eb0330563e5c9c778b1a0f8286701c2f4d736d93dad6ad85d1915ade0
0.11.5+32015-02-12T20:58:50.731360ZDownloadae4d34bddc68637b53a6c68ad07fb18bb88c95b75ab2522e2d1cb750b517dc3f
0.11.5+42015-02-19T20:09:01.812240ZDownload88540c5e4e6ec27d08e18e61b22a399342f094439e8a25e99d76eeb3f4b82a5b
0.11.62015-05-08T20:25:08.995560ZDownload0840c880911b2c85f45917fe7fac756bcf5e897a3ed9c01f6f11ee2a514efaad
0.11.6+12015-05-21T21:14:02.460360ZDownloada42cc5775606483234813ac47e7293bf0e9c82dd87a0a30aacb962658b1a2451
0.11.6+22016-03-24T19:11:28.662ZDownload270f5fb9d7b2b265484006db7954bc685ca1d46078e8c5d9072f64f50105d19c
0.11.6+32016-03-28T21:37:21.491ZDownloada0281a480a1a267ed8a0725d40575e272d1a8af9373d9c1b2ba60a08a983ea4c
0.11.6+42016-04-11T18:32:51.423ZDownloadd6532a6e5cba4351fa07a46b5fba92c54bafa647cc9a6ef7ababcc68d31f9c2f
0.11.72017-01-09T23:11:35.538ZDownload96cd840fc210e876f6e9734ce2f95644c30c1b162a833b6015a6aa752b31ecf3
0.12.0-alpha.02015-02-20T00:44:09.577ZDownload065af986c0b7c25dc154ce3b3f02c3c94f9b8b7388fdaee669156e2f069907b6
0.12.0-alpha.12015-03-09T19:20:16.345ZDownload841717162b22e8a49ec2e6801773dc96c82f5f21658c7ba1e909c264920971be
0.12.0-beta.02015-03-26T23:23:19.047ZDownloadb878d30b84443f328f473032c574bd1e8cbfe5fa969a597b392c6d901dd4cfab
0.12.0-beta.12015-03-30T22:12:03.458ZDownload82f962700464d5c133eedc007745198f695c5f6f4b0eea3e9b835ba08ff43b4d
0.12.0-beta.22015-04-01T01:17:48.691ZDownloadb40628a10b7a86fa3f3b1748138ed799b010c2b6def3c80543661e8851ff64d9
0.12.0-beta.32015-04-02T01:00:59.944ZDownload79cd853516f24ccfacbcd70cf49c49a22654a3bcce539d776f89398fb4314a55
0.12.0-beta.42015-04-02T01:41:12.597ZDownload391c32498bc40a6807a101339ce8b8b910b309e1ce476da903c7883f67e19b47
0.12.0-beta.82015-04-17T23:07:13.291ZDownloadc58256296278fc3ef298a3216c3ce864f46e777d5d93b5b5fba967d0563fa69e
0.12.0-beta.92015-04-18T00:38:09.613ZDownloadeaaae737c6dfd7c8004d63758ba2d86a799cca1411b44d7eb710a0eb36796001
0.12.0-rc.02015-04-24T00:20:49.148ZDownload4a41dbede57e95801610305e72b8ea8dbf19255c175bb9e6099aee4375f0dd10
0.12.02015-04-30T00:56:22.622ZDownload8b652e3f11f98152ec0e6b72e22c3de97e5aa87015c2708df62e13475340cedd
0.12.22015-05-22T00:20:52.379ZDownload535e3f8db57c234382a7e5ffb0e1fff27bd8ab5162997733b54d428709d48253
0.12.32015-06-03T19:24:05.439ZDownload4a411c05cbd1650c1d9f722d603e05decd7be315595cbdc57a6393605354f31e
0.12.42015-08-11T20:06:33.878ZDownloadf4bb6f4b2f8ee5d7fccfe59b9aebe01beffef946b65093733de5e67817cc76bb
0.12.4+12015-12-14T22:30:57.401ZDownload2ee0b3564e951537c72a1ae8a3ab12c85eeaf427b37026fd3b672ff6bd42009a

Dependencies

stack_trace "\u003e=0.9.0 \u003c2.0.0"