Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 903 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 903 Bytes

spectrometer-tests

This is a repo of integration tests against popular (or problematic) open-source repositories.

Adding tests

  • Add a project repo as a submodule
git submodule add [email protected]:foo/bar.git repos/strategygroup/bar/

Only use ssh remotes for submodules

  • Add a test to test/IntegrationSpec.hs, using the repo helper

See existing examples in test/IntegrationSpec.hs, and see docs for Repo and Analysis in test/Repo.hs

Failing tests

Comment out failing tests (or use pending from test/IntegrationSpec.hs). For each failing test, add a FIXME comment detailing why the test fails, and/or the relevant error message.

Updating Sub modules

To update git sub module to specific commit, execute following, and commit the changes.

git update-index --cacheinfo 160000,<git revision of sub module to target>,<path to the submodule>