ipfs-social-proof icon indicating copy to clipboard operation
ipfs-social-proof copied to clipboard

[META] Test Suites

Open daviddahl opened this issue 6 years ago • 4 comments

There is a test for signature verification in test/index.js, but a full on test suite needs to be created at least for the code in src/index.js

daviddahl avatar Oct 11 '18 02:10 daviddahl

what do you think about https://jestjs.io/ ?

cdeng001 avatar Oct 11 '18 18:10 cdeng001

I like jest, but I was thinking of using the standard karma / mocha set up as is used in all of the IPFS repos.

Also, this looks cool: https://github.com/ipfs/aegir

daviddahl avatar Oct 11 '18 19:10 daviddahl

ahh I see, I agree, the testing should stay consistent.

cdeng001 avatar Oct 11 '18 21:10 cdeng001

Now that clearer sub modules and APIs have been formed these are the test suites needed:

src/

  • [x] db.js
  • [x] proofs-db.js
  • [x] remote-proofs.js
  • [x] ipfs.js
  • [ ] proof.js
  • [ ] crypto.js
  • [ ] identity.js
  • [ ] utils.js

client/ REFACTOR in progress

  • [ ] TBD

client E2E test suite (a'la pupperteer)

  • [ ] Puppeteer test suit to test all of the front end

daviddahl avatar Oct 27 '18 19:10 daviddahl