{"id":23472776,"url":"https://github.com/anyproto/anytype-test","last_synced_at":"2025-04-13T05:49:31.031Z","repository":{"id":259537089,"uuid":"821423016","full_name":"anyproto/anytype-test","owner":"anyproto","description":"Tests for All of Anytype","archived":false,"fork":false,"pushed_at":"2025-03-28T15:48:01.000Z","size":225800,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T05:49:28.332Z","etag":null,"topics":["appium-ios","e2e-tests","grpc-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/anyproto.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":"support/api/clients/accountApi.ts","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T14:00:21.000Z","updated_at":"2025-03-28T15:48:04.000Z","dependencies_parsed_at":"2024-10-26T10:08:21.333Z","dependency_job_id":"2c5192d1-6ba6-4cb0-a5d4-ad11aa04e8c9","html_url":"https://github.com/anyproto/anytype-test","commit_stats":null,"previous_names":["anyproto/anytype-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyproto%2Fanytype-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyproto%2Fanytype-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyproto%2Fanytype-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anyproto%2Fanytype-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anyproto","download_url":"https://codeload.github.com/anyproto/anytype-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670501,"owners_count":21142901,"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":["appium-ios","e2e-tests","grpc-testing"],"created_at":"2024-12-24T17:13:42.604Z","updated_at":"2025-04-13T05:49:31.014Z","avatar_url":"https://github.com/anyproto.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Repository\n\nWelcome to the **Test Repository for Anytype**. This repository is used to manage and run end-to-end (E2E) tests using Cucumber, Playwright, and TypeScript.\n\n## Table of Contents\n\n- [Test Repository](#test-repository)\n  - [Table of Contents](#table-of-contents)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Run tests](#run-tests)\n    - [Anytype-heart compatibility tests](#anytype-heart-compatibility-tests)\n      - [Running Tests with Local Middleware](#running-tests-with-local-middleware)\n\n## Prerequisites\n\nBefore setting up the project, make sure you have the following installed:\n\n- Node.js and npm\n- Go (for local middleware testing)\n\n## Installation\n\nClone the repository and install the necessary dependencies.\n\n```bash\ngit clone https://github.com/anyproto/anytype-test.git\nnpm install\n```\n## Run tests\n\n### Anytype-heart compatibility tests\nTo test the compatibility of the latest 3 Anytype-heart versions, run the bash script first to populate the test scripts with versions and download them:\n```bash\n./getHearts.sh \u003cmacos|ubuntu|windows\u003e \u003carm64|amd64\u003e\n```\nReplace `\u003cmacos|ubuntu|windows\u003e` with your operating system and `\u003carm64|amd64\u003e` with your architecture.\nThen run tests with:\n```bash\nnpm run test:comp\n```\n#### Running Tests with Local Middleware\n\nTo run tests using the local middleware, follow these steps:\n\n1. **Set the Version to \"default\" in the .feature File:**\n\n  In the .feature file, set the version variable to \"default\" in the Scenario Outline or Server Test Step. This configuration tells the testing framework to use the local middleware built with Go instead of a specific version.\n\n   For example, you can set the versions like this:\n   ```bash\n   Examples:\n      | version1 | version2 |\n      | \"default\" | \"default\" |\n   ```\n   Or like this:\n   ```bash\n   Given the server \"default\" 1 is running\n   ```\n   2. **Clone the `anytype-heart` Repository:**\n\n   Clone the anytype-heart repository into the anytype-test/mw folder:\n   ```bash\n   git clone https://github.com/anyproto/anytype-heart.git anytype-test/mw/anytype-heart\n   ```\n   \n1. **Follow the Instructions for `anytype-heart`:**\n\n   Navigate to the anytype-heart repository and follow the setup and build instructions provided in its README file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyproto%2Fanytype-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanyproto%2Fanytype-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyproto%2Fanytype-test/lists"}