Skip to content
Newer
Older
100644 93 lines (47 sloc) 4.1 KB
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
1 # Compatibility and Features
2
3 * [Browser testing](#browser-testing)
7acce0d @demiurgosoft broken node-testing link
demiurgosoft authored Oct 21, 2015
4 * [Node](#node-testing)
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
5 * [RequireJS](#requirejs)
6 * [Mocha in the browser](#mocha-in-the-browser)
7 * [Jasmine](#jasmine)
8 * [Backbone](#backbone)
9 * [CoffeeScript in the browser](#coffeescript-in-the-browser)
10 * [CoffeeScript in node](#coffeescript-in-node)
11 * [Custom reporter](#custom-reporter)
d94b4d3 @alex-seville Added branch tracking to feature list
authored Jan 13, 2013
12 * [Branch Tracking](#branch-tracking)
7ab96ba @alex-seville Updated docs
authored May 1, 2013
13 * [YUI](#yui)
14 * [On the Go](#on-the-go)
b7d0763 @vladikoff Fix bad anchor
vladikoff authored Dec 3, 2013
15 * [How much jQuery does Bootstrap use?](#how-much-jquery-does-bootstrap-use)
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
16
17
18 ## Browser Testing
19
cf216de @alex-seville repo move updates
authored Mar 11, 2013
20 A classic example of browser testing with blanket coverage can be found in [/test/lib-tests](http://alex-seville.github.com/blanket/test/lib-tests/runner.html). This is blanket covering the blanket code (eating our own dog food).
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
21
046a51f @alex-seville Added browser compatibility
authored Feb 13, 2013
22 Blanket can be run in any modern browser (Chrome, FF, Safari, IE9+), but will fail in IE8 or lower. You may need to use es5-shim to get it working in those environments. If you feel Blanket should support IE8, please let me know in the Issue Tracker.
23
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
24
25 ## Node testing
26
cf216de @alex-seville repo move updates
authored Mar 12, 2013
27 Node testing can be seen in [/test/test-node](https://github.com/alex-seville/blanket/tree/master/test/test-node). These are blanket's own node based tests.
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
28
29
30 ## RequireJS
31
32 If you already use RequireJS in your test runner, it's no problem, blanket will work around it.
cf216de @alex-seville repo move updates
authored Mar 12, 2013
33 See an example in [/test/requirejs](http://alex-seville.github.com/blanket/test/requirejs/require_runner.html)
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
34
35
36 ## Mocha in the browser
37
38 Mocha can be run in the browser, and blanket seamlessly integrates with it. All you need to do is reference the mocha adapter when you reference the blanket script, and the rest is done for you.
39
cf216de @alex-seville repo move updates
authored Mar 12, 2013
40 Check out an example in [/test/mocha-browser](http://alex-seville.github.com/blanket/test/mocha-browser/adapter.html)
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
41
42
43 ## Jasmine
44
45 Blanket comes with QUnit support by default, but Jasmine (or any other test runner) can be supported using an adapter (or a custom build!).
46
cf216de @alex-seville repo move updates
authored Mar 12, 2013
47 An example of Jasmine support can be seen in [/test/jasmine](http://alex-seville.github.com/blanket/test/jasmine/SpecRunner_data_adapter.html)
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
48
49
50 ## Backbone
51
ec9daf6 @alex-seville typo
authored Mar 12, 2013
52 Backbone, or any external library, doesn't have any effect on blanket. The [Backbone Koans test suite](http://alex-seville.github.com/blanket/test/backbone-koans/index.html) (by Addy Osmani) illustrates the compatibility.
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
53
54
55 ## CoffeeScript in the browser
56
57 If your test runner tests source files written in coffee script, blanket still has you covered. Using a custom loader, coffeescript files are compiled, instrumented, and tested.
58
cf216de @alex-seville repo move updates
authored Mar 12, 2013
59 See coffeescript support in [/test/coffee_script](http://alex-seville.github.com/blanket/test/coffee_script/index.html)
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
60
61
62 ## CoffeeScript in node
63
64 If your mocha tests use coffee script source files, blanket still has you covered.
65
9df31ca @gregglind test coffee script in node link was missing.
gregglind authored Jan 21, 2015
66 See an example in [/test/test-node/](https://github.com/alex-seville/blanket/tree/master/test/test-node/tests/coffee-script).
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
67
68
69 ## Custom Reporter
70
cf216de @alex-seville repo move updates
authored Mar 12, 2013
71 You can easily create your own reporters for blanket. See a frivolously simple example in [/test/custom-reporter](http://alex-seville.github.com/blanket/test/custom-reporter/index.html)
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
72
73
d94b4d3 @alex-seville Added branch tracking to feature list
authored Jan 13, 2013
74 ## Branch Tracking
75
cf216de @alex-seville repo move updates
authored Mar 12, 2013
76 Blanket can track untouched branches. You can view a simple example in [/test/branchTracking](http://alex-seville.github.com/blanket/test/branchTracking/branch_runner.html?coverage=true)
d94b4d3 @alex-seville Added branch tracking to feature list
authored Jan 13, 2013
77
7ab96ba @alex-seville Updated docs
authored May 2, 2013
78 ## YUI
79
ad17600 @alex-seville Updated links
authored May 1, 2013
80 Blanket can be used with the YUI framework. A custom adapter is required, and the TestRunner code needs to be wrapped in a blanket call. You can view an example in [/test/yui](../test/yui/runner.html).
7ab96ba @alex-seville Updated docs
authored May 2, 2013
81
82
83 ## On-the-go
84
ad17600 @alex-seville Updated links
authored May 2, 2013
85 Blanket can be used live to determine how much extraneous code you have on a page. It displays a live coverage percentage. As you navigate the site the coverage percentage should increase and you can view full results to see untouched code blocks. See an example using the Backbone Todos App in [/test/usage](../test/usage/index.html).
7ab96ba @alex-seville Updated docs
authored May 2, 2013
86
d94b4d3 @alex-seville Added branch tracking to feature list
authored Jan 13, 2013
87
1b92853 @alex-seville Compatibility and features doc
authored Dec 31, 2012
88 ## How much jQuery does Bootstrap use?
89
90 You can cover dependencies of your source files to see what percentage of a certain library you use.
91
cf216de @alex-seville repo move updates
authored Mar 12, 2013
92 You can see this in action by viewing [/test/bootstrap](http://alex-seville.github.com/blanket/test/bootstrap/tests/index.html) and seeing that Twitter Bootstrap uses almost 50% of jQuery code!
Something went wrong with that request. Please try again.