{"id":28329275,"url":"https://github.com/taservers/lest-example","last_synced_at":"2025-08-02T01:10:59.063Z","repository":{"id":172499226,"uuid":"626121635","full_name":"TAServers/lest-example","owner":"TAServers","description":"Example repository showing how to use Lest","archived":false,"fork":false,"pushed_at":"2023-04-10T21:08:49.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-24T22:39:12.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/TAServers.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,"zenodo":null}},"created_at":"2023-04-10T20:59:46.000Z","updated_at":"2023-05-29T19:48:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1fb8902-fc36-40cd-bfcd-7893e9dd8094","html_url":"https://github.com/TAServers/lest-example","commit_stats":null,"previous_names":["taservers/lest-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TAServers/lest-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TAServers%2Flest-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TAServers%2Flest-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TAServers%2Flest-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TAServers%2Flest-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TAServers","download_url":"https://codeload.github.com/TAServers/lest-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TAServers%2Flest-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268322416,"owners_count":24231819,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"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":[],"created_at":"2025-05-26T10:35:19.564Z","updated_at":"2025-08-02T01:10:59.051Z","avatar_url":"https://github.com/TAServers.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple example repo for Lest\n\nThis repo is a simple example of how to use the Lest testing framework, which you can find at https://github.com/TAServers/lest.\n\nThe program itself simply prints the sum of 1 and 2 to console.\n\nRun the tests locally by downloading the latest release bundle for Lest and running `lua lest.lua` from the project directory. You can run it with a working directory elsewhere, but you will need to manually set the config path when invoking Lest and update the config to match the tests correctly.\n\n## Structure\n\n- `.github/workflows/test.yml` - GitHub workflow which tests the program on commit using the Lest GitHub Action\n- `src/` - The source code for the program\n  - `main.lua` - Entrypoint of the program\n  - `main.test.lua` - Unit tests for `main.lua`. Showcases module and function mocking\n  - `sum.lua` - Dependency of `main.lua` that exports a function which returns the sum of two numbers\n  - `sum.test.lua` - Unit tests for `sum.lua`. Very simple example of unit testing with no mocking.\n- `tests/` - Tests for the program that don't specifically relate to a single source file (integration, end to end etc.). A convention and not a requirement of Lest\n  - `integration.test.lua` - Simple integration test of the whole program\n- `.gitignore` - Used to ignore a local copy of Lest in this instance\n- `lest.config.lua` - Contains configuration options for Lest,\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaservers%2Flest-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaservers%2Flest-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaservers%2Flest-example/lists"}