tree: 6fe5f3e3f79b0c3f31c8ef87ee5da3fc552b0ed8 [path history] [tgz]
  1. agnostic/
  2. dart2js/
  3. dartdevc/
  4. dartino/
  5. expression/
  6. extensions/
  7. general/
  8. general_nnbd_opt_out/
  9. implicit_getter_calls/
  10. incremental_initialize_from_dill/
  11. inference/
  12. inference_new/
  13. instantiate_to_bound/
  14. late_lowering/
  15. late_lowering_sentinel/
  16. new_const_insertion/
  17. nnbd/
  18. nnbd_mixed/
  19. no_such_method_forwarders/
  20. none/
  21. nonfunction_type_aliases/
  22. nonfunction_type_aliases_no_nnbd/
  23. rasta/
  24. regress/
  25. runtime_checks/
  26. runtime_checks_new/
  27. set_literals/
  28. static_field_lowering/
  29. triple_shift/
  30. unified_collections/
  31. value_class/
  32. variance/
  33. expression.status
  34. incremental.status
  35. incremental_bulk_compiler_full.status
  36. incremental_bulk_compiler_smoke.status
  37. outline.status
  38. README.md
  39. sdk.status
  40. strong.status
  41. text_serialization.status
  42. textual_outline.status
  43. 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.

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.