8000 Add an html code coverage example · theintern/intern-examples@12f5471 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Add an html code coverage example
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Jun 23, 2014
1 parent cafd264 commit 12f5471
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sauce_connect.log*
node_modules
components
bower_components
bower_components
html-report
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Every example has a README that will guide you through the process of setting it

### Backbone Application

See `backbone-example` folder and the associated README. This example showcases both unit tests and functional tests that work locally and remotely via Sauce Labs. It is based on the [TodoMVC Backbone Example](http://todomvc.com/architecture-examples/backbone/).
See `backbone-example` folder and the associated README.
This example showcases both unit tests and functional tests that work locally and remotely via Sauce Labs. It is based on the [TodoMVC Backbone Example](http://todomvc.com/architecture-examples/backbone/).
This example will generate an HTML code coverage report in the `html-report` directory.

----

Expand Down
4 changes: 3 additions & 1 deletion backbone-example/tests/intern.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ define({
]
},

reporters: [ 'console', 'lcovhtml' ],

// Non-functional test suite(s) to run in each browser
suites: [ 'tests/all' ],

// Functional test suite(s) to run in each browser once non-functional tests are completed
functionalSuites: [ 'tests/functional/Todo' ],

// A regular expression matching URLs to files that should not be included in code coverage analysis
excludeInstrumentation: /^tests\//
excludeInstrumentation: /^(tests|bower_components|node_modules)\//
});

0 comments on commit 12f5471

Please sign in to comment.
0