Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 703 Bytes

TESTING.md

File metadata and controls

11 lines (11 loc) · 703 Bytes

How to run pre-written tests

BEFORE YOU RUN:
Currently, if one of the test url's are already stored in the DB, then it will return as a FAIL, when it just means that it is not going to overwrite the data because it already exists. If you want to ensure 100% your tests are correct, use mv to move the current chroma directory outside of the Silvercord directory, then run your tests. After passing, you can replace the new directory generated with the "moved" one after.

  1. Make sure Go is installed
  2. Run go mod init <module-name-here>
    Example: go mod init db_test
  3. Run go test
  4. Clean up Go environment: rm go.mod