1 | <!DOCTYPE html>
|
2 | <html lang="en">
|
3 | <head>
|
4 | <meta charset="utf-8" />
|
5 | <title>TAP Reporter Spec</title>
|
6 |
|
7 | <link rel="stylesheet" href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css" type="text/css" />
|
8 | <script type="text/javascript" src="../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
|
9 | <script type="text/javascript" src="../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
|
10 |
|
11 | <script type="text/javascript" src="../src/tap_reporter.js"></script>
|
12 | <script type="text/javascript" src="../node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>
|
13 | <script>
|
14 | jasmine.getEnv().addReporter(new jasmineReporters.TapReporter());
|
15 | </script>
|
16 | </head>
|
17 | <body>
|
18 | <script type="text/javascript">
|
19 | describe("Some base suite", function() {
|
20 | describe("Basic Suite", function() {
|
21 | it("Should pass a basic truthiness test.", function() {
|
22 | expect(true).toEqual(true);
|
23 | expect(false).toEqual(false);
|
24 | });
|
25 | it("Should fail when it hits an inequal statement.", function() {
|
26 | expect(1+1).toEqual(3);
|
27 | });
|
28 | });
|
29 |
|
30 | xdescribe("A skipped suite", function() {
|
31 | it("Should not be reported.", function() {
|
32 | expect(0).toEqual(0);
|
33 | });
|
34 | it("Should still add to the skipped count", function() {
|
35 | expect(0).toEqual(0);
|
36 | });
|
37 | });
|
38 | describe("A suite with a skipped suite", function() {
|
39 | describe("A suite with a skipped test", function() {
|
40 | xit("Should be executed but skipped.", function() {
|
41 | expect(0).toEqual(0);
|
42 | });
|
43 | it("Should not be skipped.", function() {
|
44 | expect(0).toEqual(0);
|
45 | });
|
46 | });
|
47 | xdescribe("A nested skipped suite", function() {
|
48 | it("Should not be reported.", function() {
|
49 | expect(0).toEqual(0);
|
50 | });
|
51 | it("Should still add to the skipped count", function() {
|
52 | expect(0).toEqual(0);
|
53 | });
|
54 | });
|
55 | });
|
56 | });
|
57 | describe("Another Suite", function() {
|
58 | it("Should pass this test as well.", function() {
|
59 | expect(0).toEqual(0);
|
60 | });
|
61 | });
|
62 | </script>
|
63 | </body>
|
64 | </html>
|