tree: c0eea4d196df7f26207711c6e4589cc73dcf3a23 [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. new_const_insertion/
  28. nnbd/
  29. nnbd_mixed/
  30. no_such_method_forwarders/
  31. none/
  32. nonfunction_type_aliases/
  33. offsets/
  34. patterns/
  35. rasta/
  36. records/
  37. regress/
  38. runtime_checks/
  39. runtime_checks_new/
  40. sealed_class/
  41. set_literals/
  42. static_field_lowering/
  43. super_parameters/
  44. triple_shift/
  45. unified_collections/
  46. unscheduled_experiments/
  47. variance/
  48. expression.status
  49. incremental.status
  50. incremental_bulk_compiler_full.status
  51. incremental_bulk_compiler_smoke.status
  52. incremental_dartino.status
  53. modular.status
  54. outline.status
  55. OWNERS
  56. README.md
  57. sdk.status
  58. strong.status
  59. textual_outline.status
  60. 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.