{"id":26487225,"url":"https://github.com/thorvg/thorvg.test-automation","last_synced_at":"2025-06-26T13:34:41.491Z","repository":{"id":208763245,"uuid":"718933111","full_name":"thorvg/thorvg.test-automation","owner":"thorvg","description":"ThorVG Automated Test Tool","archived":false,"fork":false,"pushed_at":"2025-03-24T08:43:04.000Z","size":7139,"stargazers_count":4,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T22:25:25.788Z","etag":null,"topics":["lottie","test","test-automation","thorvg","vercel"],"latest_commit_sha":null,"homepage":"https://thorvg-test-automation.vercel.app","language":"TypeScript","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/thorvg.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-11-15T04:46:57.000Z","updated_at":"2025-03-24T08:40:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"713048c5-ca15-45a7-bcb8-c047f1c04abd","html_url":"https://github.com/thorvg/thorvg.test-automation","commit_stats":null,"previous_names":["thorvg/thorvg.test-automation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thorvg/thorvg.test-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorvg%2Fthorvg.test-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorvg%2Fthorvg.test-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorvg%2Fthorvg.test-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorvg%2Fthorvg.test-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thorvg","download_url":"https://codeload.github.com/thorvg/thorvg.test-automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorvg%2Fthorvg.test-automation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262076979,"owners_count":23255093,"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":["lottie","test","test-automation","thorvg","vercel"],"created_at":"2025-03-20T06:36:08.772Z","updated_at":"2025-06-26T13:34:41.449Z","avatar_url":"https://github.com/thorvg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThorVG Test Automation\n\nThorVG Test Automation is a comprehensive rendering test tool designed for the ThorVG Engine. This versatile tool operates seamlessly as both a Graphical User Interface (GUI) and a Command-Line Interface (CLI). Its primary function is to identify rendering errors by performing a meticulous canvas bitmap comparison automatically.\n\n## Key Features\n\n### Dual Interface Capability\nThe tool is equipped with both a Graphical User Interface (GUI) and a Command-Line Interface (CLI), providing flexibility for different testing environments and user preferences.\n\n### Automated Rendering Error Detection\nThorVG Test Automation streamlines the testing process by automatically detecting rendering errors. Through a sophisticated canvas bitmap comparison, it quickly identifies discrepancies, ensuring the reliability and accuracy of rendered images.\n\n## How It Works\n\n### Workflow\nThis figure illustrates a brief workflow of the ThorVG test automation.\u003c/br\u003e\n\n![image](https://github.com/thorvg/thorvg.test-automation/assets/3711518/37ea8cf9-6329-445d-9c76-73665c66d4b0)\n\n### GUI\nIn GUI mode, developers benefit from a user-friendly interface, allowing them to interact with the tool effortlessly. The graphical representation aids in visualizing rendering errors, making the debugging process more intuitive.\n- [Try it out](https://thorvg-test-automation.vercel.app)\n\n### CLI\nFor a streamlined and automated testing workflow, the Command-Line Interface is ideal. It facilitates integration into automated testing pipelines and continuous integration systems.\n\n```sh\n$npm i -g ./cli # in thorvg.test-automation\n\n$tvg-cli /path/to/target-dir\n\n$open result.pdf # open the summarized PDF\n```\n\n```\nOptions:\n    -E  Run automatic classification after test\n    -D  Debug Mode, test with GUI, CLI at same time\n    -V  Verbose, log all\n\n    Target:\n        The directory path where `.json` files are located,\n        at least one of valid lottie json has to be provided.\n```\n\n## ThorVG CI Integration (TBD)\n\nTo enhance the robustness of ThorVG, we plan to integrate test automation using ThorVG. The following figure illustrates a concise workflow for ThorVG's Continuous Integration (CI) test automation.\n\n![image](https://github.com/thorvg/thorvg.test-automation/assets/3711518/a15c3458-2d2c-4c1e-bd01-c12217eba377)\n\n## Review with PDF\n\nUpon completion of the test, the system ensures a seamless experience for result retrieval. You will receive a PDF document containing the detailed test results, allowing for easy inspection and review.\n\n- **GUI**: The GUI mode simplifies the process further by automatically opening the PDF in a new tab. This user-friendly feature ensures immediate visibility of the test outcomes, enhancing the efficiency of result assessment.\n\n- **CLI**: In CLI mode, the system generates a file named result.pdf in your current working directory. This approach provides a straightforward and organized means of accessing and storing the test results for further analysis or archival purposes.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg width=\"800\" height=\"auto\" src=\"./docs/pdf-example.png\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorvg%2Fthorvg.test-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthorvg%2Fthorvg.test-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorvg%2Fthorvg.test-automation/lists"}