{"id":15555740,"url":"https://github.com/unkindpartition/tasty-html","last_synced_at":"2025-12-11T23:28:27.661Z","repository":{"id":14407973,"uuid":"17118749","full_name":"UnkindPartition/tasty-html","owner":"UnkindPartition","description":"HTML test reporter for the Tasty test framework","archived":false,"fork":false,"pushed_at":"2024-01-01T23:46:02.000Z","size":500,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-18T04:56:11.256Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnkindPartition.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-02-23T22:30:21.000Z","updated_at":"2023-11-03T12:15:38.000Z","dependencies_parsed_at":"2025-04-17T16:01:02.945Z","dependency_job_id":"73943d40-e37a-4405-9674-34a60752d5a8","html_url":"https://github.com/UnkindPartition/tasty-html","commit_stats":null,"previous_names":["feuerbach/tasty-html"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Ftasty-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Ftasty-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Ftasty-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Ftasty-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnkindPartition","download_url":"https://codeload.github.com/UnkindPartition/tasty-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250513006,"owners_count":21443127,"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-02T15:10:29.095Z","updated_at":"2025-12-11T23:28:27.633Z","avatar_url":"https://github.com/UnkindPartition.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"tasty-html\n==========\n\nHTML test reporter for the Tasty test framework.\n\n\n## Example\n\nHere's how your `test.hs` might look like:\n\n```haskell\nimport Test.Tasty\nimport Test.Tasty.SmallCheck as SC\nimport Test.Tasty.QuickCheck as QC\nimport Test.Tasty.HUnit\nimport Test.Tasty.Runners.Html\n\nimport Data.List\nimport Data.Ord\n\nmain = defaultMainWithIngredients (htmlRunner:defaultIngredients) tests\n\ntests :: TestTree\ntests = testGroup \"Tests\" [properties, unitTests]\n\nproperties :: TestTree\nproperties = testGroup \"Properties\" [scProps, qcProps]\n\nscProps = testGroup \"(checked by SmallCheck)\"\n  [ SC.testProperty \"sort == sort . reverse\" $\n      \\list -\u003e sort (list :: [Int]) == sort (reverse list)\n  , SC.testProperty \"Fermat's little theorem\" $\n      \\x -\u003e ((x :: Integer)^7 - x) `mod` 7 == 0\n  -- the following property does not hold\n  , SC.testProperty \"Fermat's last theorem\" $\n      \\x y z n -\u003e\n        (n :: Integer) \u003e= 3 SC.==\u003e x^n + y^n /= (z^n :: Integer)\n  ]\n\nqcProps = testGroup \"(checked by QuickCheck)\"\n  [ QC.testProperty \"sort == sort . reverse\" $\n      \\list -\u003e sort (list :: [Int]) == sort (reverse list)\n  , QC.testProperty \"Fermat's little theorem\" $\n      \\x -\u003e ((x :: Integer)^7 - x) `mod` 7 == 0\n  -- the following property does not hold\n  , QC.testProperty \"Fermat's last theorem\" $\n      \\x y z n -\u003e\n        (n :: Integer) \u003e= 3 QC.==\u003e x^n + y^n /= (z^n :: Integer)\n  ]\n\nunitTests = testGroup \"Unit tests\"\n  [ testCase \"List comparison (different length)\" $\n      [1, 2, 3] `compare` [1,2] @?= GT\n\n  -- the following test does not hold\n  , testCase \"List comparison (same length)\" $\n      [1, 2, 3] `compare` [1,2,2] @?= LT\n  ]\n```\n\nTo produce the HTML output, run the test program with the `--html` option,\ngiving it the html file path:\n\n```\n./test --html results.html\n```\n\nHere is the output of the above program rendered to HTML:\n\n![screenshot](https://raw.githubusercontent.com/UnkindPartition/tasty-html/master/screenshot.png)\n\n(Note that whether QuickCheck finds a counterexample to the third property is\ndetermined by chance.)\n\n## Hacking\n\n```\n$ git clone --recursive https://github.com/feuerbach/tasty-html\n$ cabal run tasty-html-pass -- --html pass.html\n$ cabal run tasty-html-fail -- --html fail.html\n$ firefox pass.html fail.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkindpartition%2Ftasty-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funkindpartition%2Ftasty-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkindpartition%2Ftasty-html/lists"}