{"id":19974003,"url":"https://github.com/objectbox/objectbox-swift-integration-test","last_synced_at":"2025-03-01T18:27:05.971Z","repository":{"id":44616977,"uuid":"223188597","full_name":"objectbox/objectbox-swift-integration-test","owner":"objectbox","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-31T17:21:23.000Z","size":2107,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-31T17:41:04.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Roff","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/objectbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-11-21T14:08:53.000Z","updated_at":"2025-01-31T17:21:26.000Z","dependencies_parsed_at":"2025-01-31T17:34:49.447Z","dependency_job_id":"b32b11f0-257e-47ad-809c-bf6eaef65941","html_url":"https://github.com/objectbox/objectbox-swift-integration-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-swift-integration-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-swift-integration-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-swift-integration-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-swift-integration-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectbox","download_url":"https://codeload.github.com/objectbox/objectbox-swift-integration-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241406591,"owners_count":19958012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-13T03:13:34.759Z","updated_at":"2025-03-01T18:27:05.949Z","avatar_url":"https://github.com/objectbox.png","language":"Roff","funding_links":[],"categories":[],"sub_categories":[],"readme":"ObjectBox Swift Integration Test\n================================\n\nHow to run the tests\n--------------------\nWith `test.sh` you can run several integration tests for ObjectBox Swift.\nTo test the latest version available from Cocoapods, simply run the script without any parameters:\n\n```\n./test.sh\n```\n\nAnother typical example to reset all files (the script calls something like `git clean -fdx` and `git reset --hard`) and specify a particular ObjectBox version to test:\n\n```\n./test.sh --clean -v 1.6.0\n```\n\nIf all works out you should see something like this in your Terminal:\n\n```\n** TEST SUCCEEDED **\n\n    _\n_  //  ALL DONE (Thu Feb 25 11:43:58 CET 2021)\n\\X/\n```\n\nTo learn more about the test script, use the `--help` parameter, which prints something like this:\n\n```\n$ ./test.sh --help\nUsage: test.sh [options] {project-directory}\n\n-v, --version:  specify version for the Podfile/Cartfile\n-s, --source:   specify source repository for the Podfile/Cartfile\n-S, --staging:  use the staging source repository for the Podfile/Cartfile\n-f, --file:     only create Podfile/Cartfile\n-c, --carthage: use Carthage instead of CocoaPods\n--carthage-bin: use the packaged Carthage executable from our bin dir\n--clean:        cleans all added/modified files to reset the state to a fresh\ngit checkout. Warning: Data may be LOST!!\nDoes something like 'git clean -fdx \u0026\u0026 git reset --hard'\n--skip:         specify a project to skip\n--framework:    specify a HTTPS URL to an uploaded framework to be tested\n(this creates a local Cartfile pointing to the URL)\n```\n\nWhat is this doing?\n-------------------\nThe process for each project is like this:\n\n1. Plain Xcode project and sources checked in without pods; ensure this \"fresh\" state when running on the CI machine\n2. Add ObjectBox pods by running the usual commands as described in the docs (pod init, manual Podfile edits, pod install, setup.rb)\n3. Build the project and its unit tests and run the latter\n\nThis is an example Podfile for a project called \"obxtest2\":\n\n```\nsource 'https://github.com/objectbox/objectbox-swift-spec-staging.git'\n\n# Uncomment the next line to define a global platform for your project\n# platform :ios, '11.0'\n\ntarget 'obxtest2' do\n  # Comment the next line if you don't want to use dynamic frameworks\n  use_frameworks!\n\n  # Pods for obxtest2\n  pod 'ObjectBox', '~\u003e 1.5.0'\n\nend\n```\n\nTo get to a Podfile like that (and use it) consider this sequence:\n\n0. Ensure no pod related files are on the file system (e.g. left-overs from last run)\n1. `cd` into the project dir and run `pod init` to get an initial Podfile for the given project\n2. Adjust the Podfile \n    1. Insert `source 'https://github.com/objectbox/objectbox-swift-spec-staging.git'` as the first line\n    2. Find the line containing `  # Pods ` and insert `pod 'ObjectBox', '~\u003e 1.0.0-rc.3'` after it\n3. Run `Pods/ObjectBox/setup.rb` (still in the project dir)\n4. Now that the pods are prepared for the project, build the project using the Xcode workspace\n\nTODO: add unit tests to the plain Xcode projects and execute them in CI","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-swift-integration-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectbox%2Fobjectbox-swift-integration-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-swift-integration-test/lists"}