LD4P / bfe-defunct

see sinopia_editor -- keeping this to enable PRs against upstream lcnetdev/bfe
Other
0 stars 0 forks source link

Unit and/or Behavorial Testing Suite #1

Open jermnelson opened 6 years ago

jermnelson commented 6 years ago

From @jermnelson on July 23, 2018 19:1

Missing any unit or behavioral tests for functionality in bfe. Possible node.js testing frameworks include Mocha and Chai a BDD / TDD assertion library.

Copied from original issue: sul-dlss/bfe#1

jermnelson commented 6 years ago

From @mejackreed on July 24, 2018 17:56

We have started to use Jest for several recent projects. Sorry for the drive by comment, but its been a bit easier for us to setup and get started with.

jermnelson commented 6 years ago

Thanks for the pointer!

ndushay commented 6 years ago

Besides jest https://jestjs.io/

Cypress https://www.cypress.io/ - allows simulated browser testing; similarity to selenium ability; also way to have test code repo separate for "when I click this, and then click that, I expect to see" sort of tests. Good tool in addition to jest which may be more unit-testy / functional testy but not integration testy?

another js test thing: chai https://www.chaijs.com/