jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 244 forks source link

Support "--include-all-sources" behavior from `istanbul cover` #502

Open brodock opened 8 years ago

brodock commented 8 years ago

From my understanding teaspoon coverage support is done by invoking on file by file the teaspoon instrument command instead of relying on cover so it can support sprockets directives resolution.

So it doesn't support the --include-all-sources flag and because of that, doesn't output as 0% coverage for files without corresponding specs:

      --include-all-sources
              instrument all unused sources after running tests, defaults to
              false

Can we support instrumenting them by something like a configuration flag?