cspotcode / ts-project-template

Personal template for TypeScript projects.
MIT License
0 stars 0 forks source link

Add test harness #1

Open cspotcode opened 8 years ago

cspotcode commented 8 years ago

First try: just run tests in node.

Second pass: some sort of in-browser testing?

Include code coverage.

Directory structure:

\src
  \test
    \fixtures
    \spec
    index.ts

Tentative plan:

AVA test runner. (TODO it doesn't support in-browser testing yet?) NYC code coverage (https://github.com/avajs/ava/blob/master/docs/recipes/code-coverage.md) Ready for TravisCI and Coveralls

Anything ending in .test.ts is a test file. They can live anywhere in src/.

cspotcode commented 8 years ago

Windows testing via AppVeyor.