[ffigen] Rewrite `test/README.md` to match current test layout and hooks

Open Beginner friendly
#3,860 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
dart
Domain
documentation

Research direction

Read pkgs/ffigen/test/README.md and compare it with the current test layout and hooks described in the issue. Check how hook/build.dart, UPDATE=true verify/golden tests, the C++/ObjC glue rebuild, and the macOS-only tests work. Update the README to cover those details and remove the deleted setup command; done when its instructions match the current test workflow.

Written by the indexing model from the issue text.

Description

needs-triage package:ffigen

pkgs/ffigen/test/README.md is pretty out of date. It still tells contributors to run the deleted dart run test/setup.dart in three places (lines 9, 28, and 43; deleted in #3334 when we moved to hook/build.dart).

It's also missing the current test layout (unit_tests, header_parser_tests, native_cpp_test, native_objc_test, example_tests, large_integration_tests), how UPDATE=true works for verify/golden tests, the two-step C++/ObjC glue rebuild (UPDATE=true updates .cpp/.m files after hook/build.dart already built the dylib, so you need a second dart test), and the 41 @TestOn('mac-os') test files that get skipped on Linux/Windows.

Context: https://github.com/dart-lang/native/issues/3837

Note: This bug is AI generated. I've reviewed it and it makes sense, but I haven't attempted to repro. Make sure the bug repros before trying to fix it.

Dominant language
Dart
Stars
280
Forks
166
Avg merge
3d 1h
Merged PRs (30d)
35

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dart-lang/native

All issues in dart-lang/native

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.