{"id":15372584,"url":"https://github.com/csells/curl_testing","last_synced_at":"2026-03-18T02:30:16.327Z","repository":{"id":74940982,"uuid":"199096407","full_name":"csells/curl_testing","owner":"csells","description":"some tests for client-side Dart code to generate in https://github.com/NickCarneiro/curlconverter","archived":false,"fork":false,"pushed_at":"2023-05-28T17:10:54.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T20:16:28.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","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/csells.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}},"created_at":"2019-07-27T00:31:48.000Z","updated_at":"2023-10-18T02:44:09.000Z","dependencies_parsed_at":"2023-07-10T17:46:11.588Z","dependency_job_id":null,"html_url":"https://github.com/csells/curl_testing","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"64f33591103d72e3e9ef0f44849f8b927002b1a9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csells%2Fcurl_testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csells%2Fcurl_testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csells%2Fcurl_testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csells%2Fcurl_testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csells","download_url":"https://codeload.github.com/csells/curl_testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239929905,"owners_count":19720230,"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-01T13:52:06.309Z","updated_at":"2026-03-18T02:30:16.269Z","avatar_url":"https://github.com/csells.png","language":"Dart","readme":"# curl_testing\n\nThis project provides tests for client-side Dart code generated in\n[curlconverter](https://github.com/curlconverter/curlconverter). This code tests\ncurl commands against the corresponding Dart code to see if the output of both\ncommands run against an echoing web server returns the same results.\n\n# curl_testing usage\n\nAll of these commands run from `../curl_testing`.\n\nTo start an echoing web server that reflects both curl and Dart version of an\nHTTP call back to the client as JSON for comparison:\n\n```sh\nnode test/http-request-dump.js\n```\n\nTo run the curl and Dart versions of a test from `../curlconverter`:\n\n```sh\ndart bin/main.dart \u003ctest-name\u003e\n```\n\ne.g.\n\n```sh\ndart bin/main.dart get_basic_auth_no_user\n```\n\nTo run all of the curl and Dart versions of the tests from `../curlconverter`:\n\n```sh\ndart bin/main.dart all\n```\n\n# curlconverter usage\n\nAll of these commands run from `../curlconverter`.\n\nTo update the curlconverter CLI from the `dart.ts` source:\n\n```sh\nnpm run compile\n```\n\nTo generate the Dart code for a set of curl arguments:\n\n```sh\nnode dist/src/cli.js --language dart \u003ccurl-arg(s)\u003e\n```\n\ne.g.\n\n```sh\nnode dist/src/cli.js --language dart \"http://localhost:28139/\" -u \":some_password\"\n```\n\nTo run a particular Dart test:\n\n```sh\nnpm test -- --language dart --test \u003ctest-name\u003e\n```\n\ne.g.\n\n```sh\nnpm test -- --language dart --test get_basic_auth_no_user\n```\n\nIf a particular test fails, you can debug the diff using the\n[curl_diff_explainer](https://github.com/csells/curl_diff_explainer) tool.\n\nTo run all of the Dart tests:\n\n```sh\nnpm test -- --language dart\n```\n\n# curlconverter notes\n\nThe set of test curl commands: `../curlconverter/test/fixtures/curl_commands`\n\nThe set of test Dart files: `../curlconverter/test/fixtures/dart`\n\nThe code that generates the Dart files from the curl commands:\n`../curlconverter/src/generators/dart.ts`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsells%2Fcurl_testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsells%2Fcurl_testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsells%2Fcurl_testing/lists"}