{"id":20777608,"url":"https://github.com/semgrep/testo","last_synced_at":"2026-01-18T02:35:30.882Z","repository":{"id":217070726,"uuid":"743023809","full_name":"semgrep/testo","owner":"semgrep","description":"Test framework for OCaml","archived":false,"fork":false,"pushed_at":"2025-07-01T01:10:59.000Z","size":1147,"stargazers_count":23,"open_issues_count":24,"forks_count":4,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-07-01T02:24:50.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/semgrep.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2024-01-14T04:29:21.000Z","updated_at":"2025-06-22T19:12:23.000Z","dependencies_parsed_at":"2024-01-14T11:41:00.342Z","dependency_job_id":"2cfa594f-fe51-4d19-9c07-dbc8e85deba3","html_url":"https://github.com/semgrep/testo","commit_stats":null,"previous_names":["semgrep/testo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/semgrep/testo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Ftesto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Ftesto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Ftesto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Ftesto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semgrep","download_url":"https://codeload.github.com/semgrep/testo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Ftesto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264559586,"owners_count":23628040,"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-17T13:16:15.918Z","updated_at":"2026-01-18T02:35:30.869Z","avatar_url":"https://github.com/semgrep.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"Testo [![CircleCI badge](https://circleci.com/gh/semgrep/testo.svg?style=svg)](https://app.circleci.com/pipelines/github/semgrep/testo)\n==\n\n\u003e Party hard, test harder \u0026mdash; DJ Testo\n\n![image](https://github.com/semgrep/testo/assets/343265/51f3e6a0-fdb1-400b-a146-4312746ae8d0)\n\nDocumentation: [testocaml.net](https://testocaml.net)\n--\n\n* [Getting started](https://testocaml.net/tutorial)\n* [Howtos](https://testocaml.net/howtos)\n* [API reference](https://testocaml.net/reference/testo/Testo/index.html)\n\nFeatures\n--\n\nTesto is a test framework for OCaml that takes inspiration from its\npredecessor [Alcotest](https://github.com/mirage/alcotest) and from\n[pytest](https://pypi.org/project/pytest/).\nFeatures include:\n\n- support for explicit XFAIL tests i.e. tests that are expected to fail, indicating that they should be fixed eventually;\n- support for test snapshots i.e. persistent storage of captured stdout, stderr, or output files;\n- reviewing and approving tests without re-running them;\n- nested test suites;\n- various ways to select tests;\n- parallel execution (using multiprocessing);\n- supports OCaml \u003e= 4.08.\n\nA test executable is generated from a list of tests\nwritten in OCaml. The function to interpret the command line\nand run things is `Testo.interpret_argv`.\nThe core subcommands supported by a test executable are:\n\n- `run`: run tests\n- `status`: check the status of the tests without re-running them\n- `approve`: approve test output and make it the new reference\n\nA test is fundamentally a name and test function of type\n`unit -\u003e unit`. A test is considered successful if the test function\nreturns normally and is considered failed if it raises an exception.\nA test is created with `Testo.create` which takes a variety of options\nin addition to the name and the test function.\n\nFor example, checking that some test result `res` equals an expected\nvalue of `42` is written as:\n```ocaml\nTesto.(check int) 42 res;\n```\nThis raises an exception that is turned into a nice error message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemgrep%2Ftesto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemgrep%2Ftesto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemgrep%2Ftesto/lists"}