tree: 0eaf6e963d701da1d35b82a07971240f079018b6 [path history] [tgz]
  1. dartino/
  2. expression/
  3. extensions/
  4. general/
  5. incremental_initialize_from_dill/
  6. inference/
  7. inference_new/
  8. instantiate_to_bound/
  9. new_const_insertion/
  10. nnbd/
  11. no_such_method_forwarders/
  12. old_dills/
  13. rasta/
  14. regress/
  15. runtime_checks/
  16. runtime_checks_new/
  17. set_literals/
  18. expression.status
  19. incremental.status
  20. incremental_bulk_compiler_full.status
  21. incremental_bulk_compiler_smoke.status
  22. legacy.status
  23. outline.status
  24. README.md
  25. sdk.status
  26. strong.status
  27. text_serialization.status
  28. type_promotion_look_ahead.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.

Dart 1.0 Compilation

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

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.