{"id":15930285,"url":"https://github.com/ageron/prototype-roc-test-runner","last_synced_at":"2025-07-25T03:13:57.536Z","repository":{"id":251582155,"uuid":"837833322","full_name":"ageron/prototype-roc-test-runner","owner":"ageron","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-24T12:19:01.000Z","size":85466,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T03:14:05.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ageron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-04T07:05:30.000Z","updated_at":"2024-08-22T09:15:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf06f038-c25c-435e-b107-be928f7a29e5","html_url":"https://github.com/ageron/prototype-roc-test-runner","commit_stats":null,"previous_names":["ageron/prototype-roc-test-runner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fprototype-roc-test-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fprototype-roc-test-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fprototype-roc-test-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fprototype-roc-test-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ageron","download_url":"https://codeload.github.com/ageron/prototype-roc-test-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247014519,"owners_count":20869376,"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-10-07T00:40:46.633Z","updated_at":"2025-04-03T14:18:21.887Z","avatar_url":"https://github.com/ageron.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exercism Roc Test Runner\n\nThe Docker image to automatically run tests on Roc solutions submitted to [Exercism].\n\n## Run the test runner\n\nTo run the tests of an arbitrary exercise, do the following:\n\n1. Open a terminal in the project's root\n2. Run `./bin/run.sh \u003cexercise-slug\u003e \u003csolution-dir\u003e \u003coutput-dir\u003e`\n\nOnce the test runner has finished, its results will be written to `\u003coutput-dir\u003e/results.json`.\n\n## Run the test runner on an exercise using Docker\n\n_This script is provided for testing purposes, as it mimics how test runners run in Exercism's production environment._\n\nTo run the tests of an arbitrary exercise using the Docker image, do the following:\n\n1. Open a terminal in the project's root\n2. Run `./bin/run-in-docker.sh \u003cexercise-slug\u003e \u003csolution-dir\u003e \u003coutput-dir\u003e`\n\nOnce the test runner has finished, its results will be written to `\u003coutput-dir\u003e/results.json`.\n\n## Run the tests\n\nTo run the tests to verify the behavior of the test runner, do the following:\n\n1. Open a terminal in the project's root\n2. Run `./bin/run-tests.sh`\n\nThese are [golden tests][golden] that compare the `results.json` generated by running the current state of the code against the \"known good\" `tests/\u003ctest-name\u003e/results.json`. All files created during the test run itself are discarded.\n\nWhen you've made modifications to the code that will result in a new \"golden\" state, you'll need to generate and commit a new `tests/\u003ctest-name\u003e/results.json` file.\n\n## Run the tests using Docker\n\n_This script is provided for testing purposes, as it mimics how test runners run in Exercism's production environment._\n\nTo run the tests to verify the behavior of the test runner using the Docker image, do the following:\n\n1. Open a terminal in the project's root\n2. Run `./bin/run-tests-in-docker.sh`\n\nThese are [golden tests][golden] that compare the `results.json` generated by running the current state of the code against the \"known good\" `tests/\u003ctest-name\u003e/results.json`. All files created during the test run itself are discarded.\n\nWhen you've made modifications to the code that will result in a new \"golden\" state, you'll need to generate and commit a new `tests/\u003ctest-name\u003e/results.json` file.\n\n## Known weaknesses\n\nThe regular expression that looks for calls to `RUN_TEST` cannot handle multiline comments or more than one function call per line. The calls need to be kept simple:\n\n```Roc\nRUN_TEST(test_date);\nRUN_TEST(test_date_and_time_with_day_rollover);\n// RUN_TEST(test_your_birthday);\n```\n\n# Acknowledgement\nThis repository was mostly forked from https://github.com/exercism/c-test-runner.\n\n[test-runners]: https://github.com/exercism/docs/tree/main/building/tooling/test-runners\n[golden]: https://ro-che.info/articles/2017-12-04-golden-tests\n[exercism]: https://exercism.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Fprototype-roc-test-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fageron%2Fprototype-roc-test-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Fprototype-roc-test-runner/lists"}