tree: 3f8928bc2e9c33041cadc3d688d3875cd9de1ed3 [path history] [tgz]
  1. agnostic/
  2. class_modifiers/
  3. const_functions/
  4. constructor_tearoffs/
  5. dart2js/
  6. dart2wasm/
  7. dartdevc/
  8. dartino/
  9. enhanced_enums/
  10. expression/
  11. extension_types/
  12. extensions/
  13. general/
  14. generic_metadata/
  15. implicit_getter_calls/
  16. incremental/
  17. inference/
  18. inference_new/
  19. inference_update_1/
  20. inference_update_2/
  21. inference_update_3/
  22. instantiate_to_bound/
  23. late_lowering/
  24. late_lowering_sentinel/
  25. macros/
  26. named_arguments_anywhere/
  27. nnbd/
  28. no_such_method_forwarders/
  29. none/
  30. nonfunction_type_aliases/
  31. offsets/
  32. patterns/
  33. rasta/
  34. records/
  35. regress/
  36. runtime_checks/
  37. runtime_checks_new/
  38. sealed_class/
  39. set_literals/
  40. static_field_lowering/
  41. super_parameters/
  42. triple_shift/
  43. unified_collections/
  44. unscheduled_experiments/
  45. variance/
  46. expression.status
  47. incremental.status
  48. incremental_bulk_compiler_full.status
  49. incremental_bulk_compiler_smoke.status
  50. incremental_dartino.status
  51. modular.status
  52. outline.status
  53. OWNERS
  54. README.md
  55. sdk.status
  56. strong.status
  57. textual_outline.status
  58. weak.status
pkg/front_end/testcases/README.md

Overview

The testcases in this directory and its subdirectory are all compiled in various different configurations designed to test various aspects of Fasta (or more generally, package:front_end).

The configurations are described below.

The source of truth for these configurations is the file pkg/front_end/testing.json.

Updating all expectations

To update test expectations for all tests at once, run:

dart pkg/front_end/tool/update_expectations.dart

Note that this takes a long time and should only be used when many tests need updating.

Updating expectations for a single test

To update the expectations for a specific test, provide the folder and test name as an argument.

For example, if you want to update the test expectations for a test, such as pkg/front_end/testcases/general/abstract_instantiation.dart, then run:

dart pkg/front_end/tool/update_expectations.dart general/abstract_instantiation

Updating expectations for all tests in a folder

If you want to update the test expectations for a specific folder of tests such as the pkg/front_end/testcases/general/ folder, then run:

dart pkg/front_end/tool/update_expectations.dart general/...

Dart 1.0 Outlines

./pkg/front_end/tool/fasta testing -DupdateExpectations=true outline/test1 outline/test2 ...

Dart 2.0 (strong mode)

./pkg/front_end/tool/fasta testing -DupdateExpectations=true -DupdateComments=true strong/test1 strong/test2 ...

Note: strong mode configuration additionally parses comments in the test file and can precisely match internal details of the compiler such as the inferred type of an expression or if a warning was emitted at a given location.