tree: 84b862aaff6d220b4eb47a79ebf74523ad4df2f9 [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. offsets/
  31. patterns/
  32. rasta/
  33. records/
  34. regress/
  35. runtime_checks/
  36. runtime_checks_new/
  37. sealed_class/
  38. set_literals/
  39. static_field_lowering/
  40. super_parameters/
  41. triple_shift/
  42. unified_collections/
  43. unscheduled_experiments/
  44. variance/
  45. wildcard_variables/
  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.