{"id":20389324,"url":"https://github.com/positiondev/hspec-fn","last_synced_at":"2025-03-04T23:44:45.002Z","repository":{"id":72914983,"uuid":"53675924","full_name":"positiondev/hspec-fn","owner":"positiondev","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-09T14:52:50.000Z","size":98,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T10:02:36.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/positiondev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-11T15:19:44.000Z","updated_at":"2018-10-09T14:52:49.000Z","dependencies_parsed_at":"2023-05-26T01:30:34.155Z","dependency_job_id":null,"html_url":"https://github.com/positiondev/hspec-fn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fhspec-fn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fhspec-fn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fhspec-fn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fhspec-fn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/positiondev","download_url":"https://codeload.github.com/positiondev/hspec-fn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241940539,"owners_count":20045878,"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-15T03:17:31.323Z","updated_at":"2025-03-04T23:44:44.996Z","avatar_url":"https://github.com/positiondev.png","language":"Haskell","readme":"## About\n\n`hspec-fn` is a library to allow you to write tests against Fn web\napplications in the context of an `hspec` test suite.\n\n## Usage\n\nThe basic usage is that within an `hspec` test suite, you can insert a\nblock with `fn`, within which all of the normal spec organization\ntools work (`describe`, `context`, and `it`), but the content of the\nactual tests should be tests in the Fn context. These tests can make\nrequests against your application, run arbitrary handler functions,\nand assert various HTTP statuses, content of HTML pages, or just plain\nunit tests. You can't mix in other types of tests within the `fn`\nblock, and you can't share values between different unit tests (a unit\ntest being what's inside an `it`), but you can have any number of\n`fn` blocks, and can make any number of assertions within a unit\ntest block (from HSpec's perspective, though, it is just one test).\n\nTo get started, take a look at the test suite within the `spec/`\ndirectory.\n\n## Examples\n\nThe easiest examples to look at are in the test suite in the `spec/`\ndirectory.\n\n## Tests\n\nYou can run the test suite with `cabal test`. When the robots \nlast ran the suite, it: [![Circle CI](https://circleci.com/gh/positiondev/hspec-fn.svg?style=svg\u0026circle-token=cb855793cfa202fa807ffaf6adb3be979be457b3)](https://circleci.com/gh/positiondev/hspec-fn)\n\n## License\n\nBSD3\n\n## Contributors\n\nDaniel Patterson (dbp@dbpmail.net)\n\nTim Adams (timmy_tofu@linux.com)\n\nLibby Horacek (libby@daydrea.me)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpositiondev%2Fhspec-fn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpositiondev%2Fhspec-fn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpositiondev%2Fhspec-fn/lists"}