tree: f0c1b74f9d80e579c1482bab35450109caf0cfa9 [path history] [tgz]
  1. class_modifiers/
  2. const_functions/
  3. constructor_tearoffs/
  4. dart2js/
  5. dart2wasm/
  6. dartdevc/
  7. dartino/
  8. enhanced_enums/
  9. expression/
  10. extension_types/
  11. extensions/
  12. general/
  13. generic_metadata/
  14. implicit_getter_calls/
  15. incremental/
  16. inference/
  17. inference_new/
  18. inference_update_1/
  19. inference_update_2/
  20. inference_update_3/
  21. instantiate_to_bound/
  22. late_lowering/
  23. late_lowering_sentinel/
  24. macros/
  25. named_arguments_anywhere/
  26. nnbd/
  27. no_such_method_forwarders/
  28. none/
  29. nonfunction_type_aliases/
  30. null_aware_elements/
  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. wildcard_variables/
  47. expression.status
  48. incremental.status
  49. incremental_bulk_compiler_full.status
  50. incremental_bulk_compiler_smoke.status
  51. incremental_dartino.status
  52. modular.status
  53. outline.status
  54. OWNERS
  55. README.md
  56. sdk.status
  57. strong.status
  58. textual_outline.status
  59. 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.