jeudi 2 juin 2016

Separation of unit tests and integration tests

I'm interested in creating full mocked unit tests, as well as integration tests that check if some async operation has returned correctly. I'd like one command for the unit tests and one for the integration tests that way I can run them separately in my CI tools. What's the best way to do this? Tools like mocha, and jest only seem to focus on one way of doing things.

The only option I see is using mocha and having two folders in a directory.

Something like:

  • __unit__
  • __integration__

Then I'd need some way of telling mocha to run all the __unit__ tests in the src directory, and another to tell it to run all the __integration__ tests.

Thoughts?

Aucun commentaire:

Enregistrer un commentaire