https://github.com/kalhauge/hspec-glitter

Not all that Gi[l]tters is gold!

https://github.com/kalhauge/hspec-glitter

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.4%) to scientific vocabulary
Last synced: 5 months ago · JSON representation

Repository

Not all that Gi[l]tters is gold!

Basic Info
  • Host: GitHub
  • Owner: kalhauge
  • Language: Haskell
  • Default Branch: main
  • Size: 13.7 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme

README.md

Not all that G[l]itters is Gold.

The idea is simple. Instead of predicting the output of a test, you simply run the test, and save the results. Now, you can check if the test have changed, according to the version control system.

Features

Seperately from other packages, in Glitter test.

  1. There are no seperate tool for accepting and inspecting golden test. You can simply use git, as you would normally.

  2. After running the golden test, you can run a sequence of checks to see if the saved file is well-formed. This way you don't save files without some minimal assurances.

Missing Features

Eventually, I would like to add:

  1. Templating. Normalizing output is hard and not always straight forward, when dates or other things are involved. In this case, it would be nice if the golden file, is a template that can simply check if it matches.

  2. Force test mode. In a CI/CD system, you would like to test all cases, even the ones that havn't changed. Adding a flag to controll this would be nice.

  3. Inline diffing.

Related Packages

Owner

  • Name: Christian Kalhauge
  • Login: kalhauge
  • Kind: user

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: almost 2 years ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

hspec-glitter.cabal hackage
  • attoparsec *
  • base >=4.9 && <5
  • bytestring *
  • directory *
  • filepath *
  • hspec-core *
  • text *
  • typed-process *
  • attoparsec * test
  • base >=4.9 && <5 test
  • bytestring * test
  • directory * test
  • filepath * test
  • hspec * test
  • hspec-core * test
  • hspec-discover * test
  • hspec-glitter * test
  • text * test
  • typed-process * test