Skip to content

Conversation

@chavic
Copy link
Contributor

@chavic chavic commented Aug 24, 2025

  • Use camino-tempfile::tempdir by default with automatic cleanup
  • Add TestConfig for full control over test execution
  • Support env overrides: UNIFFI_DART_TEST_DIR, UNIFFI_DART_NO_DELETE, UNIFFI_DART_FAILURE_DELAY
  • Resolve relative custom dirs against workspace root
  • Preserve temp files when no-delete is set (uses std::mem::forget)
  • Remove .tmp_tests references and folder - temp dirs are cleaner by default

Backwards compatible: existing run_test() continues to work.

@chavic chavic requested a review from spacebear21 August 24, 2025 14:13
@spacebear21
Copy link
Collaborator

Since this PR does not depend on Hashmap changes, it should just contain the tempfile commit (dd1d75c) and the first commit can be dropped. This enables PRs to be reviewed and merged independently from each other.

@chavic chavic force-pushed the chavic/test-generated-code-enhancement branch 2 times, most recently from 82e6f10 to 792ea82 Compare August 27, 2025 07:42
Copy link
Collaborator

@spacebear21 spacebear21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are now even more unrelated commits then before? To be clear this PR should just contain 792ea82

@chavic chavic force-pushed the chavic/test-generated-code-enhancement branch from cb9170e to c1e8fc9 Compare August 30, 2025 20:19
@chavic
Copy link
Contributor Author

chavic commented Aug 30, 2025

There are now even more unrelated commits then before? To be clear this PR should just contain 792ea82

I'm not sure if the merge conflict had anything to do with it... I'll try again 🤔, though I remember fixing it...

@chavic chavic requested a review from spacebear21 September 2, 2025 13:41
…put options

- Use camino-tempfile::tempdir by default with automatic cleanup
- Add TestConfig for full control over test execution
- Support env overrides: UNIFFI_DART_TEST_DIR, UNIFFI_DART_NO_DELETE, UNIFFI_DART_FAILURE_DELAY
- Resolve relative custom dirs against workspace root
- Preserve temp files when no-delete is set (uses std::mem::forget)
- Remove .tmp_tests references and folder - temp dirs are cleaner default

Backwards compatible: existing run_test() continues to work.
@chavic chavic force-pushed the chavic/test-generated-code-enhancement branch 2 times, most recently from c1e8fc9 to c3552f2 Compare September 2, 2025 18:42
@spacebear21 spacebear21 force-pushed the chavic/test-generated-code-enhancement branch from c3552f2 to 3b01958 Compare September 3, 2025 21:44
@spacebear21 spacebear21 dismissed their stale review September 3, 2025 21:48

force pushed

@spacebear21 spacebear21 merged commit fcea88c into Uniffi-Dart:main Sep 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants