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

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

Dart 3.0 (strong mode)

./pkg/front_end/tool/cfe 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.