{"id":15874651,"url":"https://github.com/rudifa/go-testscripts-compare","last_synced_at":"2025-10-12T17:26:07.980Z","repository":{"id":219683773,"uuid":"681106245","full_name":"rudifa/go-testscripts-compare","owner":"rudifa","description":"Compare go test methods on a sample case","archived":false,"fork":false,"pushed_at":"2023-08-21T09:24:01.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T15:14:05.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rudifa.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}},"created_at":"2023-08-21T09:23:52.000Z","updated_at":"2024-01-19T10:27:34.000Z","dependencies_parsed_at":"2024-01-29T06:13:08.412Z","dependency_job_id":"67774deb-054a-4ff9-874b-e9bbc98a4e04","html_url":"https://github.com/rudifa/go-testscripts-compare","commit_stats":null,"previous_names":["rudifa/testscripts-compare"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fgo-testscripts-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fgo-testscripts-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fgo-testscripts-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fgo-testscripts-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudifa","download_url":"https://codeload.github.com/rudifa/go-testscripts-compare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246725472,"owners_count":20823643,"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-06T01:40:57.903Z","updated_at":"2025-10-12T17:26:02.935Z","avatar_url":"https://github.com/rudifa.png","language":"Go","readme":"# Compare different test methods\n\n## 1 Normal go test\n\n```\n.\n├── pkg\n│   └── goeval\n│       ├── testdata\n│       │   ├── combo.cue\n│       │   ├── raw.json\n│       │   └── stdout.json\n│       ├── goeval.go\n│       └── goeval_test.go\n```\n\n```\ntestscripts-compare % go test $1 ./...\n?       github.com/rudifa/testscripts-compare   [no test files]\nok      github.com/rudifa/testscripts-compare/pkg/goeval        (cached)\n```\n\nAdavantages:\n\n- a well known test method\n- close to the code under test\n- assisted by the vscode go extension (run test, debug test, ...)\n\n## 2 `testscript` with a standalone txtar script\n\n```\n.\n├── pkg\n│   └── goeval\n│       └── testdata\n│           └── standalone.txtar\n```\n\n```\ntestscripts-compare % testscript pkg/goeval/testdata/standalone.txtar\nPASS\n```\n\nAdvangates:\n\n- all-in-one script, suitable for presenting test cases in discussons and reports\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudifa%2Fgo-testscripts-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudifa%2Fgo-testscripts-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudifa%2Fgo-testscripts-compare/lists"}