- Add VariableSpec class with magnitude field validation - Add Formula class supporting multiple input/output variables - Support d4rt_code as string or object with code field - Add comprehensive tests for parsing and serialization - Fix broken test import in pruebas_d4rt_test.dart Follows README.md format requirements exactly
10 KiB
10 KiB
0.7.7
- Expand pub constraint to allow the latest
analyzer.
0.7.6
- Fix an assertion failure when using
setUpAllortearDownAlland running with asserts enabled.
0.7.5
test()andgroup()functions now take an optionalTestLocationthat will be used as the location of the test in JSON reporters instead of being parsed from the call stack.
0.7.4
- Allow
analyzer: '>=6.0.0 <8.0.0' - Increase SDK constraint to ^3.5.0.
- Support running Node.js tests compiled with dart2wasm.
0.7.3
- Increase SDK constraint to ^3.4.0.
0.7.2
- Update min SDK constraint to 3.2.0.
0.7.1
- Added
@doNotSubmittotest(solo: ...)andgroup(solo: ...). In practice, this means that code that was relying on ignoring deprecation warnings and usingsoloorgroupwith askipparameter will now fail ifdart analyze --fatal-infos(or similar) is enabled.
0.7.0
- Deprecate
Runtime.internetExplorer. - Added
dart2wasmas a supported compiler for thechromeruntime. - BREAKING: Removed the
experimentalChromeWasmruntime. - BREAKING: Removed
Runtime.isJSandRuntime.isWasm, as this is now based on the compiler and not the runtime.
0.6.1
- Drop support for null unsafe Dart, bump SDK constraint to
3.0.0. - Make some implementation classes
final. These classes were never intended to be extended or implemented.Metadata,PlatformSelector,RemoteListener,Runtime,StackTraceFormatter,SuitePlatform,RemoteException,TestHandle,OutstandingWork,OutsideTestException,OnPlatform,Retry,Skip,Tags,TestOn,Timeout. - Mark an implementation class
interface:StackTraceMapper. - Change the
Compilerclass into anenum. - Make
Fakeamixin class. - Allow the latest analyzer (6.x.x).
0.6.0
- Remove the
package:test_api/expect.dart' library.testwill export frompackage:matcher` directly. - Fix compatibility with wasm number semantics.
0.5.2
- Remove deprecation for the
scaffolding.dartandbackend.dartlibraries. - Export
registerExceptionfrom thescaffolding.dartlibrary.
0.5.1
- Handle a missing
'compiler'value when running a test compiled against a newertest_apithan the runner back end is using. The expectation was that the json protocol is only used across packages compatible with the same major version of thetest_apipackage, butflutter testdoes not check the version of packages in the pub solve for user test code.
0.5.0
- Add
Compilerclass, exposed throughbackend.dart. - Support compiler identifiers in platform selectors.
- Add
compilerfield toSuitePlatform. This will become required in the next major release. - BREAKING Add required
defaultCompilerandsupportedCompilersfields toRuntime. - Add
package:test_api/hooks_testing.dartlibrary for writing tests against code that usespackage:test_api/hooks.dart. - BREAKING Remove
ErrorFormatter,expectAsync,throws, andThrowsfrompackage:test_api/test_api.dart.
0.4.18
- Don't run
tearDownuntil the test body and outstanding work is complete, even if the test has already failed.
0.4.17
- Deprecate
throwsNullThrownError, usethrowsA(isA<TypeError>())instead. The implementation has been changed to ease migrations. - Deprecate
throwsCyclicInitializationErrorand replace the implementation withThrows(TypeMatcher<Error>()). The specific exception no longer exists and there is no guarantee about what type of error will be thrown.
0.4.16
- Add the
experimental-chrome-wasmruntime. This is very unstable and will eventually be deleted, to be replaced by a--compilerflag. See https://github.com/dart-lang/test/issues/1776 for more information on future plans - Add
isWasmfield toRuntime(defaults tofalse).
0.4.15
- Expand the pubspec description.
- Support
package:matcherversion0.12.13.
0.4.14
- Require Dart >= 2.18.0
- Support the latest
package:analyzer.
0.4.13
- Fix
printOnFailureoutput to be associated with the correct test.
0.4.12
- Internal cleanup.
0.4.11
- Support the latest version of
package:matcher.
0.4.10
- Add
Targetto restrictTestOnannotation to library level.
0.4.9
- Add
ignoreTimeoutsoption toSuite, which disables all timeouts for all tests in that suite.
0.4.8
TestFailureimplementsExceptionfor compatibility withonly_throw_exceptions.
0.4.7
- Remove logging about enabling the chain-stack-traces flag from the invoker.
0.4.6
- Give a better exception when using
markTestSkippedoutside of a test. - Format stack traces if a formatter is available when serializing tests and groups from the remote listener.
0.4.5
- Add defaulting for older test backends that don't pass a configuration for
the
allow_duplicate_test_namesparameter to the remote listener.
0.4.4
- Allow disabling duplicate test or group names in the
Declarer.
0.4.3
- Use the latest
package:matcher.
0.4.2
- Update
analyzerconstraint to>=1.5.0 <3.0.0.
0.4.1
- Give a better error when
printOnFailureis called from outside a test zone.
0.4.0
- Add libraries
scaffolding.dart, andexpect.dartto allow importing as subset of the normal surface area. - Add new APIs in
hooks.dartto allow writing custom expectation frameworks which integrate with the test runner. - Add examples to
throwsAand make top-levelthrows...matchers refer to it. - Disable stack trace chaining by default.
- Fix
expectAsyncfunction type checks. - Add
RemoteException,RemoteListener,StackTraceFormatter, andStackTraceMappertobackend.dart. - Breaking remove
Runtime.phantomJS - Breaking Add callback to get the suite channel in the
beforeLoadcallback ofRemoteListener.start. This is now used in place of using zones to communicate the value.
0.3.0
- Breaking
TestException.messageis now nullable.- Fixes handling of
nullmessages in remote exceptions.
- Fixes handling of
0.2.20
- Fix some strong null safety mode errors in the original migration.
0.2.19
- Stable release for null safety.
0.2.19-nullsafety.7
- Expand upper bound constraints for some null safe migrated packages.
0.2.19-nullsafety.6
- Fix
spawnHybridUrito respect language versioning of the spawned uri.
0.2.19-nullsafety.5
- Update SDK constraints to
>=2.12.0-0 <3.0.0based on beta release guidelines.
0.2.19-nullsafety.4
- Allow prerelease versions of the 2.12 sdk.
0.2.19-nullsafety.3
- Add capability to filter to a single exact test name in
Declarer. - Add
markTestSkippedAPI.
0.2.19-nullsafety.2
- Allow
2.10stable and2.11.0-devSDKs. - Annotate the classes used as annotations to restrict their usage to library level.
0.2.19-nullsafety
- Migrate to NNBD.
- The vast majority of changes are intended to express the pre-existing behavior of the code regarding to handling of nulls.
- Breaking Change:
GroupEntry.nameis no longer nullable, the root group now has the empty string as its name.
- Add the
Fakeclass, available throughpackage:test_api/fake.dart. This was previously part of the Mockito package, but with null safety it is useful enough that we decided to make it available throughpackage:test. In a future release it will be made available directly throughpackage:test_api/test_api.dart(and hence throughpackage:test_core/test_core.dartandpackage:test/test.dart).
0.2.18+1 (Backport)
- Fix
spawnHybridUrito respect language versioning of the spawned uri.
0.2.18
- Update to
matcherversion0.12.9.
0.2.17
- Add
languageVersionCommenton theMetaDataclass. This should only be present for test suites.
0.2.16
- Deprecate
LiveTestController.liveTest, theLiveTestControllerinstance now implementsLiveTestand can be used directly.
0.2.15
- Cancel any StreamQueue that is created as a part of a stream matcher once it
is done matching.
- This fixes a bug where using a matcher on a custom stream controller and
then awaiting the
close()method on that controller would hang.
- This fixes a bug where using a matcher on a custom stream controller and
then awaiting the
- Avoid causing the test runner to hang if there is a timeout during a
tearDowncallback following a failing test case.
0.2.14
- Bump minimum SDK to
2.4.0for safer usage of for-loop elements.
0.2.13
- Work around a bug in the
2.3.0SDK by avoiding for-loop elements at the top level.
0.2.12
- Link to docs on setting timeout when a test times out with the default duration.
- No longer directly depend on
package:pedantic.
0.2.11
- Extend the timeout for synthetic tests, e.g.
tearDownAll.
0.2.10
- Update to latest
package:matcher. Improves output for instances of private classes.
0.2.9
- Treat non-solo tests as skipped so they are properly reported.
0.2.8
- Remove logic which accounted for a race condition in state change. The logic
was required because
package:sseused to not guarantee order. This is no longer the case.
0.2.7
- Prepare for upcoming
Stream<List<int>>changes in the Dart SDK. - Mark
package:test_apias deprecated to prevent accidental use.
0.2.6
- Don't swallow exceptions from callbacks in
expectAsync*. - Internal cleanup - fix lints.
- Fixed a race condition that caused tests to occasionally fail during
tearDownAllwith the message(tearDownAll) - did not complete [E].
0.2.5
- Expose the
Metadata,PlatformSelector,Runtime, andSuitePlatformclasses publicly through a newbackend.dartimport.
0.2.4
- Allow
stream_channelversion2.0.0.
0.2.3
- Update to matcher version
0.12.5.
0.2.2
- Require Dart SDK
>=2.1.0.
0.2.1
- Add
remote_listener.dartandsuite_channel_manager.dart.
0.2.0
- Remove "runner" extensions.
0.1.1
- Update
stack_trace_formatterto foldtest_apiframes by default.
0.1.0
- Initial release of
test_api. Provides the basic API for writing tests and touch points for implementing a custom test runner.