test_core 0.6.12
test_core: ^0.6.12 copied to clipboard
A basic library for writing tests and running them on the VM.
0.6.12 #
- Expand pub constraint to allow the latest
analyzer.
0.6.11 #
- Graduate native assets from experiment to preview.
0.6.10 #
- Set a debug name for test isolates.
- Fix an assertion failure when using
setUpAllortearDownAlland running with asserts enabled.
0.6.9 #
- Add support for native assets for
dart testin pub workspaces. 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.6.8 #
- Fix hang when running multiple precompiled browser tests.
0.6.7 #
- Update the
package:vm_serviceconstraint to allow version15.x.
0.6.6 #
- Allow
analyzer: '>=6.0.0 <8.0.0' - Fix dart2wasm tests on windows.
- Increase SDK constraint to ^3.5.0.
- Allow passing additional arguments to
dart compile wasm.
0.6.5 #
- Increase SDK constraint to ^3.4.0.
- Ensure we don't create files ending in a
., this breaks windows.
0.6.4 #
- Enable asserts for
dart2wasmtests.
0.6.3 #
- Update min SDK constraint to 3.2.0.
- Fix testing with
dart2wasm- usedart compile wasminstead of depending on SDK internals
0.6.2 #
- Add
@doNotSubmitto more declarations of thesoloparameter.
0.6.1 #
- Handle missing package configs.
- Document the silent reporter in CLI help output.
- Support enabling experiments with the dart2wasm compiler.
0.6.0 #
- Handle paths with leading
/when spawning test isolates. - 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. - BREAKING: Removed
Configuration.pubServeUrland support for it. - Fix running of tests defined under
lib/with relative imports to other libraries in the package. - Update the
package:frontend_server_clientconstraint to allow version4.0.0. - Update the
package:vm_serviceconstraint to allow version14.x.
0.5.9 #
- Update the vm_service constraint to allow version
13.x.
0.5.8 #
- Move scaffolding definitions to a non-deprecated library.
- Allow omitting the
Compilerargument tocurrentPlatform.
0.5.7 #
- Pass --disable-program-split to dart2js to fix tests which use deferred loading.
- Add a 'silent' reporter option. Keep it hidden in the CLI args help since it is not useful in the general case, but can be useful for tests of the test runner.
- Update to
package:vm_service12.0.0
0.5.6 #
- Add support for discontinuing after the first failing test with
--fail-fast.
0.5.5 #
- Change "compiling
0.5.4 #
- Drop support for null unsafe Dart, bump SDK constraint to
3.0.0. - Add
finalmodifier on some implementation classes:Configuration,CustomRuntime,RuntimeSettings,SuiteConfiguration. - Fix the
root_fields in the JSON reporter when running a test on Windows with an absolute path. - Allow the latest analyzer (6.x.x).
0.5.3 #
- Fix compatibility with wasm number semantics.
0.5.2 #
- Use the version
0.5.2ofpackge:test_api.
0.5.1 #
- Start adding experimental support for native_assets.yaml, when
--enable-experiment=native_assetsis passed.
0.5.0 #
- Support the
--compilerflag, which can be used to configure which compiler to use.- To specify a compiler by platform, the argument supports platform selectors
through this syntax
[<platform>:]<compiler>. For example the command line argument--compiler vm:sourcewould run all vm tests from source instead of compiling to kernel first. - If no given compiler is compatible for a platform, it will use its default compiler instead.
- To specify a compiler by platform, the argument supports platform selectors
through this syntax
- Add support for
-c exe(the native executable compiler) to the vm platform. - Add
Compilerclass, exposed throughbackend.dart. - Support compiler identifiers in platform selectors.
- List the supported compilers for each platform in the usage text.
- Update all reporters to print the compiler along with the platform name when configured to print the platform. Extend the logic for printing platofrm information to do so if any compilers are explicitly configured.
- Deprecate
--use-data-isolate-strategy. It is now an alias for-c vm:sourcewhich is roughly equivalent. If this is breaking for you please file an issue. - BREAKING Add required
defaultCompilerandsupportedCompilersfields toRuntime. - BREAKING Add required
compilerfield toSuitePlatform. - BREAKING Add required
compilerSelectionsargument to someConfigurationandSuiteConfigurationconstructors. - BREAKING Custom platform plugins need to respect the compiler option
given through the
SuitePlatformargument toPlatformPlugin.load. This is not statically breaking but it will be confusing for users if it isn't supported. - BREAKING Remove
useDataIsolateStrategyfield fromConfiguration. - BREAKING Stop exporting APIs from
package:matcher/expect.dart.
0.4.24 #
- Fix running paths by absolute path (with drive letter) on windows.
0.4.23 #
- Avoid empty expandable groups for tests without extra output in Github reporter.
- Support running tests by absolute file uri.
- Update
vm_serviceconstraint to>=6.0.0 <12.0.0.
0.4.22 #
- Don't run
tearDownuntil the test body and outstanding work is complete, even if the test has already failed. - Update
vm_serviceconstraint to>=6.0.0 <11.0.0.
0.4.21 #
- Move
includeTagsandexcludeTagsfromSuiteConfigurationtoConfiguration. - Merge command lines args repeating the same test path to run the suite one time with all the test cases across the different arguments.
- Fix VM tests which run after some test has changed the working directory. There are still issues with browser tests after changing directory.
0.4.20 #
- Fix an issue with the github reporter where tests that fail asynchronously after they've completed would show up as succeeded tests.
- Support the latest
package:test_api. - Refactor
CompilerPoolto be abstract, add wasm compiler pool.
0.4.19 #
- Support
package:matcherversion0.12.13. - Require Dart SDK version 2.18.
0.4.18 #
- Support the latest
package:test_api. - Support the latest
package:analyzer.
0.4.17 #
- Support the latest
package:test_api. - Support the latest
package:frontend_server_client.
0.4.16 #
- Make the labels for test loading more readable in the compact and expanded reporters, use gray instead of black.
- Print a command to re-run the failed test after each failure in the compact reporter.
- Fix the package config path used when running pre-compiled vm tests.
0.4.15 #
- Support the latest
package:test_api.
0.4.14 #
- Update the github reporter to output the platform in the test names when multiple platforms are used.
- Fix
spawnHybridUrisupport forpackage:uris.
0.4.13 #
- Re-publish changes from 0.4.12.
- Stop relying on setUpAllName and tearDownAllName constants from test_api.
0.4.12 (retracted) #
- Remove wait for VM platform isolate exits.
- Drop
dart2jsPathconfiguration support. - Allow loading tests under a path with the directory named
packages. - Require analyzer version
3.3.0, and allow version4.x.
0.4.11 #
- Update
vm_serviceconstraint to>=6.0.0 <9.0.0.
0.4.10 #
- Update
analyzerconstraint to>=2.14.0 <3.0.0. - Add an
--ignore-timeoutscommand line flag, which disables all timeouts for all tests. - Experimental: Add a VM service extension
ext.test.pauseAfterTestswhich configures VM platform tests to pause for debugging after tests are run, before the test isolates are killed.
0.4.9 #
- Wait for paused VM platform isolates before shutdown.
0.4.8 #
- Add logging about enabling stack trace chaining to the compact and expanded reporters (moved from the invoker). This will now only be logged once after all tests have ran.
0.4.7 #
- Fix parsing of file paths into a URI on windows.
0.4.6 #
- Support query parameters
name,full-name,line, andcolon test paths, which will apply the filters to only those test suites.- All specified filters must match for a test to run.
- Global filters (ie:
--name) are also still respected and must match. - The
lineandcolwill match if any frame from the test trace matches (the test trace is the current stack trace wheretestis invoked).
- Support the latest
test_api.
0.4.5 #
- Use newer analyzer APIs.
0.4.4 #
- Support the latest
test_api.
0.4.3 #
- Add an option to disallow duplicate test or group names in
directRunTests. - Add configuration to disallow duplicate test and group names by default. See the docs for more information.
- Remove dependency on pedantic.
0.4.2 #
- Re-use the cached dill file from previous runs on subsequent runs.
0.4.1 #
- Use the latest
package:matcher.
0.4.0 #
- BREAKING: All parameters to the
SuiteConfigurationandConfigurationconstructors are now required. Some specialized constructors have been added for the common cases where a subset are intended to be provided. - BREAKING: Remove support for
FORCE_TEST_EXIT. - Report incomplete tests as errors in the JSON reporter when the run is canceled early.
- Don't log the --test-randomization-ordering-seed if using the json reporter.
- Add a new exit code, 79, which is used when no tests were ran.
- Previously you would have gotten either exit code 1 or 65 (65 if you had provided a test name regex).
- When no tests were ran but tags were provided, list the tag configuration.
- Update
analyzerconstraint to>=1.0.0 <3.0.0.
0.3.29 #
- Fix a bug where a tag level configuration would cause test suites with that
tag to ignore the
--test-randomize-ordering-seedargument.
0.3.28 #
- Add
timefield to the json reportersallSuitesevent type so that all event types can be unified.
0.3.27 #
- Restore the
Configuration.loadFromStringconstructor.
0.3.26 #
- Give a better error when
printOnFailureis called from outside a test zone.
0.3.25 #
- Support the latest vm_service release (
7.0.0).
0.3.24 #
- Fix race condition between compilation of vm tests and the running of isolates.
0.3.23 #
- Forward experiment args from the runner executable to the compiler with the new vm test loading strategy.
0.3.22 #
- Fix a windows issue with the new loading strategy.
0.3.21 #
- Fix an issue where you couldn't have tests compiled in both sound and unsound null safety modes.
0.3.20 #
- Add library
scaffolding.dartto allow importing a subset of the normal surface area. - Remove
suiteChannel. This is now handled by an additional argument to thebeforeLoadcallback inserializeSuite. - Disable stack trace chaining by default.
- Change the default way VM tests are launched and ran to greatly speed up
loading performance.
- You can force the old strategy with
--use-data-isolate-strategyflag if you run into issues, but please also file a bug.
- You can force the old strategy with
- Improve the error message for
hybridMainfunctions with an incompatible StreamChannel parameter type. - Change the
messageargument toPlatformPlugin.loadtoMap<String, Object?>. In an upcoming release this will be required as the type for this argument when passed through todeserializeSuite.
0.3.19 #
Disable stack trace chaining by default.
0.3.18 #
- Update
spawnHybridCodeto default to the current packages language version. - Update to the latest
test_api.
0.3.17 #
- Complete the null safety migration.
0.3.16 #
- Allow package:io version 1.0.0.
0.3.14 #
- Handle issue closing
stdinduring shutdown.
0.3.13 #
- Allow the latest analyzer
1.0.0.
0.3.12 #
- Stable null safety release.
0.3.12-nullsafety.17 #
- Use the
test_apifor stable null safety.
0.3.12-nullsafety.16 #
- Expand upper bound constraints for some null safe migrated packages.
0.3.12-nullsafety.15 #
- Support the latest vm_service release (
6.x.x).
0.3.12-nullsafety.14 #
- Support the latest coverage release (
0.15.x).
0.3.12-nullsafety.13 #
- Allow the latest args release (
2.x).
0.3.12-nullsafety.12 #
- Allow the latest glob release (
2.x).
0.3.12-nullsafety.11 #
- Fix
spawnHybridUrion windows. - Allow
package:yamlversion3.x.x.
0.3.12-nullsafety.10 #
- Allow
package:analyzerversion0.41.x.
0.3.12-nullsafety.9 #
- Fix
spawnHybridUrito respect language versioning of the spawned uri. - Pre-emptively fix legacy library import lint violations, and unmigrate some libraries as necessary.
0.3.12-nullsafety.8 #
- Fix a bug where the test runner could crash when printing the elapsed time.
- Update SDK constraints to
>=2.12.0-0 <3.0.0based on beta release guidelines.
0.3.12-nullsafety.7 #
- Allow prerelease versions of the 2.12 sdk.
0.3.12-nullsafety.6 #
- Add experimental
directRunTests,directRunSingle, andenumerateTestCasesAPIs to enable test runners written around a single executable that can report and run any single test case.
0.3.12-nullsafety.5 #
- Allow
2.10stable and2.11.0-devSDKs. - Add
src/platform.dartlibrary to consolidate the necessary imports required to write a custom platform. - Stop required a
SILENT_OBSERVATORYenvironment variable to run with debugging and the JSON reporter.
0.3.12-nullsafety.4 #
- Support latest
package:vm_service.
0.3.12-nullsafety.3 #
- Clean up
--helpoutput.
0.3.12-nullsafety.2 #
- Allow version
0.40.xofanalyzer.
0.3.12-nullsafety.1 #
- Update source_maps constraint.
0.3.12-nullsafety #
- Migrate to null safety.
0.3.11+4 (Backport) #
- Fix
spawnHybridUrion windows.
0.3.11+3 (Backport) #
- Support
package:analyzerversion0.41.x.
0.3.11+2 (Backport) #
- Fix
spawnHybridUrito respect language versioning of the spawned uri.
0.3.11+1 #
- Allow analyzer 0.40.x.
0.3.11 #
- Update to
matcherversion0.12.9.
0.3.10 #
- Prepare for
unawaitedfrompackage:meta.
0.3.9 #
- Ignore a null
RunnerSuiterather than throw an error.
0.3.8 #
- Update vm bootstrapping logic to ensure the bootstrap library has the same language version as the test.
- Populate
languageVersionCommentin theMetadatareturned fromparseMetadata.
0.3.7 #
- Support the latest
package:coverage.
0.3.6 #
- Expose the
Configurationclass and related classes throughbackend.dart.
0.3.5 #
-
Add additional information to an exception when we end up with a null
RunnerSuite. -
Update vm bootstrapping logic to ensure the bootstrap library has the same language version as the test.
-
Populate
languageVersionCommentin theMetadatareturned fromparseMetadata.
0.3.4 #
- Fix error messages for incorrect string literals in test annotations.
0.3.3 #
- Support latest
package:vm_service.
0.3.2 #
- Drop the
package_resolverdependency.
0.3.1 #
- Support latest
package:vm_service. - Enable asserts in code running through
spawnHybridAPIs. - Exit with a non-zero code if no tests were ran, whether due to skips or having no tests defined.
0.3.0 #
- Bump minimum SDK to
2.4.0for safer usage of for-loop elements. - Deprecate
PhantomJSand provide warning when used. Support forPhantomJSwill be removed in version2.0.0. - Differentiate between test-randomize-ordering-seed not set and 0 being chosen as the random seed.
deserializeSuitenow takes an optionalgatherCoveragecallback.- Support retrying of entire test suites when they fail to load.
- Fix the
compilingmessage in precompiled mode so it saysloadinginstead, which is more accurate. - Change the behavior of the concurrency setting so that loading and running
don't have separate pools.
- The loading and running of a test are now done with the same resource, and
the concurrency setting uniformly affects each. With
-j1only a single test will ever be loaded at a time. - Previously the loading pool was 2x larger than the actual concurrency
setting which could cause flaky tests due to tests being loaded while
other tests were running, even with
-j1.
- The loading and running of a test are now done with the same resource, and
the concurrency setting uniformly affects each. With
- Avoid printing uncaught errors within
spawnHybridUri.
0.2.18 #
- Allow
test_api0.2.13to work around a bug in the SDK version2.3.0.
0.2.17 #
- Add
file_reportersconfiguration option and--file-reporterCLI option to allow specifying a separate reporter that writes to a file.
0.2.16 #
- Internal cleanup.
- Add
customHtmlTemplateFileconfiguration option to allow sharing an html template between tests - Depend on the latest
test_api.
0.2.15 #
- Add a
StringSinkargument to reporters to prepare for reporting to a file. - Add --test-randomize-ordering-seed` argument to randomize test execution order based on a provided seed
- Depend on the latest
test_api.
0.2.14 #
- Support the latest
package:analyzer. - Update to latest
package:matcher. Improves output for instances of private classes.
0.2.13 #
- Depend on the latest
package:test_api.
0.2.12 #
- Conditionally import coverage logic in
engine.dart. This ensures the engine is platform agnostic.
0.2.11 #
- Implement code coverage gathering for VM tests.
0.2.10 #
- Add a
--debugargument for running the VM/Chrome in debug mode.
0.2.9+2 #
- Depend on the latest
test_api.
0.2.9+1 #
- Allow the latest
package:vm_service.
0.2.9 #
- Mark
package:test_coreas deprecated to prevent accidental use. - Depend on the latest
test_api.
0.2.8 #
- Depend on
vm_serviceinstead ofvm_service_lib. - Drop dependency on
pub_semver. - Allow
analyzerversion0.38.x.
0.2.7 #
- Depend on
vm_service_libinstead ofvm_service_client. - Depend on latest
package:analyzer.
0.2.6 #
- Internal cleanup - fix lints.
- Use the latest
test_api.
0.2.5 #
- Fix an issue where non-completed tests were considered passing.
- Updated
compactandexpandedreporters to display non-completed tests.
0.2.4 #
- Avoid
dart:isolateimports on code loaded in tests. - Expose the
parseMetadatafunction publicly through a newbackend.dartimport, as well as re-exportingpackage:test_api/backend.dart.
0.2.3 #
- Switch import for
IsolateChannelfor forwards compatibility with2.0.0.
0.2.2 #
- Allow
analyzerversion0.36.x. - Update to matcher version
0.12.5.
0.2.1+1 #
- Allow
analyzerversion0.35.x.
0.2.1 #
- Require Dart SDK
>=2.1.0. - Require latest
test_api.
0.2.0 #
- Remove
remote_listener.dartandsuite_channel_manager.dartfrom runner and depend on them fromtest_api.
0.1.0 #
- Initial release of
test_core. Provides the basic API for writing and running tests on the VM.