{"id":17983555,"url":"https://github.com/vvscode/talk--heizenbug2023--user-objects","last_synced_at":"2025-04-04T02:13:07.152Z","repository":{"id":200287184,"uuid":"705182617","full_name":"vvscode/talk--heizenbug2023--user-objects","owner":"vvscode","description":"🦾🤖👩‍👩‍👦‍👦 Как мы автоматизировали тесты с несколькими пользователями","archived":false,"fork":false,"pushed_at":"2023-10-15T10:43:32.000Z","size":5072,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T13:37:04.612Z","etag":null,"topics":["api-client","heisenbug","integration-testing","userobject","vvscode"],"latest_commit_sha":null,"homepage":"https://heisenbug.ru/talks/54b7d8b162b144acbfc24bab7d40403c/?referer=/persons/c6d72e4e454e42fc85d067ce51f6c717/","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/vvscode.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}},"created_at":"2023-10-15T09:29:59.000Z","updated_at":"2023-10-15T10:03:35.000Z","dependencies_parsed_at":"2023-10-16T12:31:23.559Z","dependency_job_id":"ce8abdea-9604-434b-8753-46488956f487","html_url":"https://github.com/vvscode/talk--heizenbug2023--user-objects","commit_stats":null,"previous_names":["vvscode/talk--heizenbug2023--user-objects"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvscode%2Ftalk--heizenbug2023--user-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvscode%2Ftalk--heizenbug2023--user-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvscode%2Ftalk--heizenbug2023--user-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvscode%2Ftalk--heizenbug2023--user-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvscode","download_url":"https://codeload.github.com/vvscode/talk--heizenbug2023--user-objects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107828,"owners_count":20884797,"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":["api-client","heisenbug","integration-testing","userobject","vvscode"],"created_at":"2024-10-29T18:17:39.706Z","updated_at":"2025-04-04T02:13:07.135Z","avatar_url":"https://github.com/vvscode.png","language":"TypeScript","readme":"# Как мы автоматизировали тесты с несколькими пользователями\n\nВ сервисе доставки еды мы с командой столкнулись с задачей написания E2E-тестов. Главный вызов был в том, что для тестирования сущностей клиента, курьера и ресторана нужно действовать от имени других сущностей – чтобы ресторан был онлайн, курьеры были в городе и т.д.\n\nСначала попробовали подход с моками и фальшивым API, но это команду не устроило, потому что тестировалось только мобильное приложение и в искусственных условиях. Позже создали (и удачно) библиотеку, которая через API-вызовы позволяет симулировать все действующие лица в системе.\n\n[Презентация](readme.pdf)\n\n\n\u003cdetails\u003e\n  \u003csummary\u003eЗапуск кода\u003c/summary\u003e\n\n  \nКод писался под:\n- node@20\n- npm@10\n\n```bash\ngit clone https://github.com/vvscode/talk--heizenbug2023--user-objects\ncd talk--heizenbug2023--user-objects\nnpm install\nnpm run test\n```\n  \nКаждый класс проверен по-отдельности. Если будут ошибки (почти наверняка), которые хочется победить - [issue](https://github.com/vvscode/talk--heizenbug2023--user-objects/issues) is welcome, чем смогу помогу. Но с большего представленный код является **концептом, написанным для демонстрации подхода**, чтобы не нарушать NDA.\n\u003c/details\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvscode%2Ftalk--heizenbug2023--user-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvscode%2Ftalk--heizenbug2023--user-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvscode%2Ftalk--heizenbug2023--user-objects/lists"}