{"id":18406396,"url":"https://github.com/defuncart/dart_test_utils","last_synced_at":"2026-05-09T05:09:36.132Z","repository":{"id":211248316,"uuid":"722559022","full_name":"defuncart/dart_test_utils","owner":"defuncart","description":"A dart tool containing test utils.","archived":false,"fork":false,"pushed_at":"2024-05-27T12:48:22.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T23:38:44.627Z","etag":null,"topics":["dart","dart-tests","flutter","flutter-testing","tool"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defuncart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-23T12:09:14.000Z","updated_at":"2024-12-28T04:21:59.000Z","dependencies_parsed_at":"2023-12-07T11:27:11.987Z","dependency_job_id":"aa771ca7-bb7e-4561-a8e9-403855020bc5","html_url":"https://github.com/defuncart/dart_test_utils","commit_stats":null,"previous_names":["defuncart/dart_test_utils"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/defuncart/dart_test_utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuncart%2Fdart_test_utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuncart%2Fdart_test_utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuncart%2Fdart_test_utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuncart%2Fdart_test_utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defuncart","download_url":"https://codeload.github.com/defuncart/dart_test_utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuncart%2Fdart_test_utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","dart-tests","flutter","flutter-testing","tool"],"created_at":"2024-11-06T03:08:53.493Z","updated_at":"2026-05-09T05:09:36.098Z","avatar_url":"https://github.com/defuncart.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dart_test_utils\n\nA dart tool containing test utils.\n\n## Installation\n\nThe tool can be installed by activating the package on your local machine: `dart pub global activate dart_test_utils`. Similarly, the tool can be uninstalled via `dart pub global deactivate dart_test_utils`. Alternatively, the tool can be a depended upon in a dart/flutter project:\n\n```yaml\ndev_dependencies:\n    dart_test_utils:\n```\n\n## Organize Test Folder\n\nThis tools re-organizes the file structure of `/test` to match `lib`.\n\nFor instance, if the file structure was\n\n```\nlib/\n├─ features/\n│  ├─ feature_1/\n│  │  ├─ feature_1_repository.dart\ntest/\n├─ feature_1_repository_test.dart\n```\n\nthen\n\n`test/feature_1_repository_test.dart` would be moved into `test/features/feature_1/feature_1_repository_test.dart`.\n\n### Usage\n\n```sh\ndart pub global run dart_test_utils:organize_test_folder --apply\n```\n\nor\n\n```sh\ndart run dart_test_utils:organize_test_folder --apply\n```\n\nif the tool is a dev dependency. \n\nThe option `--set-exit-if-changed` can be used in a CI pipeline to fail when there are file changes. For a full overview, see `dart run dart_test_utils:organize_test_folder -h`.\n\n### Expected Behavior\n\n- When a file should be moved, if a file exists at the target location, then the existing file will be overwritten.\n- If a moved file contains relative paths (i.e. `import '../mocks.dart'`), then the path will need manual resolution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefuncart%2Fdart_test_utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefuncart%2Fdart_test_utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefuncart%2Fdart_test_utils/lists"}