Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tapjs/tapjs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 276ac5972315a85963982900b42ffafcdeb60fb7
Choose a base ref
...
head repository: tapjs/tapjs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 963943ed289b0612fd529c97ad50f4048e468c42
Choose a head ref

Commits on Mar 2, 2015

  1. Consumer class that can parse child indented sections

    This class does some minimal validity checking, but not much.  It'll
    still be on the runner to decide what to report up to the user.
    isaacs committed Mar 2, 2015
    2
    Copy the full SHA
    c3dfa33 View commit details

Commits on Mar 3, 2015

  1. Copy the full SHA
    942468e View commit details
  2. Copy the full SHA
    5c8d6c6 View commit details
  3. Copy the full SHA
    ec8c336 View commit details
  4. description in readme

    isaacs committed Mar 3, 2015
    Copy the full SHA
    6da0020 View commit details
  5. Copy the full SHA
    0c86105 View commit details
  6. Copy the full SHA
    5a787d4 View commit details
  7. Copy the full SHA
    e491360 View commit details
  8. the root test singleton

    isaacs committed Mar 3, 2015
    Copy the full SHA
    3952997 View commit details

Commits on Mar 5, 2015

  1. add bin for parsing tap

    isaacs committed Mar 5, 2015
    Copy the full SHA
    cd958da View commit details
  2. Use domains to handle errors

    isaacs committed Mar 5, 2015
    Copy the full SHA
    c0ac9c6 View commit details
  3. Copy the full SHA
    6d8958a View commit details
  4. Copy the full SHA
    3e9c559 View commit details

Commits on Mar 8, 2015

  1. Copy the full SHA
    09039ea View commit details
  2. Copy the full SHA
    7f8bda0 View commit details
  3. Copy the full SHA
    47b0a5b View commit details
  4. Test.spawn function

    isaacs committed Mar 8, 2015
    Copy the full SHA
    3b85892 View commit details

Commits on Mar 9, 2015

  1. Copy the full SHA
    4ddf389 View commit details
  2. Copy the full SHA
    83b9821 View commit details
  3. Add Test.passing() to check if we've hit any failures yet

    This allows for early termination in the line-by-line test output test,
    where a mismatch means probably every other line will fail as well.
    isaacs committed Mar 9, 2015
    Copy the full SHA
    7ef6b1e View commit details

Commits on Mar 11, 2015

  1. add type (isa) assert

    isaacs committed Mar 11, 2015
    Copy the full SHA
    af0e088 View commit details
  2. Copy the full SHA
    1781d5e View commit details

Commits on Mar 12, 2015

  1. Copy the full SHA
    be2397a View commit details
  2. Copy the full SHA
    426523d View commit details

Commits on Mar 14, 2015

  1. clean up t.spawn() output

    isaacs committed Mar 14, 2015
    Copy the full SHA
    95f15e9 View commit details
  2. pass extra info through, even on successes

    Otherwise we don't know when an 'ok' test is todo/skip
    isaacs committed Mar 14, 2015
    Copy the full SHA
    fd7ce90 View commit details
  3. upgrade tap-parser to 1.0.1

    isaacs committed Mar 14, 2015
    Copy the full SHA
    85d5e03 View commit details

Commits on Mar 15, 2015

  1. Treat missing t.test() cb as a todo

    Also a test that does some funky mocha-like stuff.
    isaacs committed Mar 15, 2015
    Copy the full SHA
    0f9717a View commit details
  2. Comment child test more like Test::More

    Instead of commenting at the parent level, make the comment the
    first thing in the Child test level, and prefix with 'Subtest: '
    
    Todo: the Parser should name the child based on this comment maybe?
    isaacs committed Mar 15, 2015
    Copy the full SHA
    c7669c3 View commit details
  3. tests of all the assert types

    isaacs committed Mar 15, 2015
    Copy the full SHA
    08a1e8d View commit details
  4. end root-spawned subtests on process exit

    The better to report failing plans with.
    
    Thanks to @iarna for calling out
    isaacs committed Mar 15, 2015
    1
    Copy the full SHA
    cfeee4c View commit details
  5. Copy the full SHA
    8180f2f View commit details
  6. Copy the full SHA
    52c4fcb View commit details
  7. Copy the full SHA
    b3af0e9 View commit details
  8. support test timeouts

    isaacs committed Mar 15, 2015
    Copy the full SHA
    6cd663d View commit details

Commits on Mar 19, 2015

  1. test with console.log

    isaacs committed Mar 19, 2015
    Copy the full SHA
    c3fdb82 View commit details
  2. support infinity timeout

    isaacs committed Mar 19, 2015
    Copy the full SHA
    74e96c5 View commit details
  3. Copy the full SHA
    a69c4e2 View commit details
  4. TAP_TIMEOUT env is in seconds, not ms

    Before launch, probably need to just go ahead and change this.  I doubt
    anyone is depending on it being in seconds, since that's hella confusing.
    isaacs committed Mar 19, 2015
    Copy the full SHA
    434414e View commit details
  5. Copy the full SHA
    c4aae7a View commit details

Commits on Mar 21, 2015

  1. Copy the full SHA
    141eec5 View commit details
  2. Copy the full SHA
    007aa4e View commit details
  3. Copy the full SHA
    dbe786b View commit details

Commits on Mar 22, 2015

  1. Consistening timing reporting, and more mocha-like additions

    Report all time info with a '# time=##ms' style, according to
    TestAnything/Specification#16 proposal.
    
    Support function-less throws/doesNotThrow and treat as TODO.
    
    Add tap.mochaGlobals() to stub out describe() and it() methods.
    
    Add mochatap bin for injecting mocha globals into test env.
    isaacs committed Mar 22, 2015
    Copy the full SHA
    bd0f487 View commit details

Commits on Mar 23, 2015

  1. new runner cli

    isaacs committed Mar 23, 2015
    Copy the full SHA
    41e6ba8 View commit details
  2. Copy the full SHA
    05d812f View commit details
  3. Copy the full SHA
    dbed092 View commit details

Commits on Mar 24, 2015

  1. Copy the full SHA
    d5c69ec View commit details
  2. Copy the full SHA
    ca87e1f View commit details
  3. Copy the full SHA
    ca05705 View commit details
Showing with 4,756 additions and 2,836 deletions.
  1. +0 −2 .gitignore
  2. +2 −0 .npmignore
  3. +14 −0 CONTRIBUTING.md
  4. +12 −20 LICENSE
  5. +543 −76 README.md
  6. +11 −0 TODO.md
  7. +15 −0 bin/mochatap.js
  8. +380 −0 bin/run.js
  9. +0 −19 bin/tap-http.js
  10. +0 −33 bin/tap-reader.js
  11. +0 −147 bin/tap.js
  12. +0 −15 coverage-example/lib/bar.js
  13. +0 −15 coverage-example/lib/foo.js
  14. +0 −20 coverage-example/test/bar.test.js
  15. +0 −29 coverage-example/test/baz.test.js
  16. +0 −20 coverage-example/test/foo.test.js
  17. +35 −0 example/long-slow-many.js
  18. +298 −0 lib/assert.js
  19. +0 −16 lib/main.js
  20. +46 −0 lib/mocha.js
  21. +26 −0 lib/root.js
  22. +222 −0 lib/stack.js
  23. +91 −0 lib/synonyms.js
  24. +0 −466 lib/tap-assert.js
  25. +0 −63 lib/tap-browser-harness.js
  26. +0 −246 lib/tap-consumer.js
  27. +0 −78 lib/tap-cov-html.js
  28. +0 −80 lib/tap-global-harness.js
  29. +0 −226 lib/tap-harness.js
  30. +0 −131 lib/tap-producer.js
  31. +0 −72 lib/tap-results.js
  32. +0 −502 lib/tap-runner.js
  33. +0 −110 lib/tap-test.js
  34. +961 −0 lib/test.js
  35. +20 −16 package.json
  36. +94 −0 scripts/generate-test-test.js
  37. +0 −36 test-disabled/bailout.js
  38. +0 −1 test-disabled/foo.js
  39. +0 −16 test-disabled/t.js
  40. +236 −0 test/asserts.js
  41. +23 −15 test/debug-test.js
  42. +1 −1 test/exit-code.js
  43. +9 −22 test/expose-gc-test.js
  44. +18 −5 test/independent-timeouts.js
  45. +0 −16 test/isolated-conf-test.js
  46. +0 −73 test/meta-test.js
  47. +0 −50 test/output-childtest-description.js
  48. +0 −20 test/result-trap.js
  49. +174 −0 test/runner.js
  50. +54 −30 test/segv.js
  51. +0 −13 test/test-assert-todo-skip.js
  52. +0 −48 test/test-directives.js
  53. +1 −11 test/test-test.js
  54. +126 −0 test/test.js
  55. +13 −0 test/test/assert-todo-skip.js
  56. +22 −0 test/test/assert-todo-skip.tap
  57. +13 −0 test/test/async.js
  58. +14 −0 test/test/async.tap
  59. +17 −0 test/test/bail-child.js
  60. +11 −0 test/test/bail-child.tap
  61. +13 −0 test/test/bail-fail-spawn.js
  62. +25 −0 test/test/bail-fail-spawn.tap
  63. +34 −0 test/test/bailout.js
  64. +26 −0 test/test/bailout.tap
  65. +62 −0 test/test/console-log.js
  66. +42 −0 test/test/console-log.tap
  67. 0 test/{end-exception/t.js → test/end-exception.js}
  68. +15 −0 test/test/end-exception.tap
  69. +13 −0 test/test/equivalent.js
  70. +37 −0 test/test/equivalent.tap
  71. +58 −0 test/test/mochalike.js
  72. +80 −0 test/test/mochalike.tap
  73. +44 −0 test/test/nesting.js
  74. +51 −0 test/test/nesting.tap
  75. 0 test/{ → test}/non-tap-output.js
  76. +14 −0 test/test/non-tap-output.tap
  77. +3 −0 test/test/not-ok.js
  78. +9 −0 test/test/not-ok.tap
  79. +40 −0 test/test/ok.js
  80. +29 −0 test/test/ok.tap
  81. +11 −0 test/test/plan-too-many.js
  82. +37 −0 test/test/plan-too-many.tap
  83. +1 −1 test/{test-skip.js → test/skip.js}
  84. +5 −0 test/test/skip.tap
  85. +5 −0 test/test/spawn-empty.js
  86. +8 −0 test/test/spawn-empty.tap
  87. +10 −0 test/test/spawn-stderr.js
  88. +12 −0 test/test/spawn-stderr.tap
  89. +48 −0 test/test/spawn.js
  90. +107 −0 test/test/spawn.tap
  91. +41 −0 test/test/throw.js
  92. +48 −0 test/test/throw.tap
  93. +72 −0 test/test/throws-and-plans.js
  94. +96 −0 test/test/throws-and-plans.tap
  95. +24 −0 test/test/timeout.js
  96. +42 −0 test/test/timeout.tap
  97. +24 −0 test/test/todo.js
  98. +29 −0 test/test/todo.tap
  99. +16 −0 test/test/unfinished.js
  100. +17 −0 test/test/unfinished.tap
  101. +4 −12 test/timeout.js
  102. +2 −0 test/trivial-success.js
  103. +0 −27 test/undefined_indented.js
  104. +0 −37 test/valid-command.js
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
node_modules/
coverage/
coverage-example/coverage/
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test/
example/
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- Check the `TODO.md` file to see stuff that is likely to be accepted.
- Every patch should have a new test that fails without the patch and
passes with the patch.
- All tests should pass on Node 0.8 and above. If some tests have to
be skipped for very old Node versions that's fine, but the
functionality should still work as intended.
- Run `node scripts/generate-test-test.js test/test/*.js` to
re-generate the output tests whenever output is changed. However,
when you do this, make sure to check the change to ensure that it's
what you intended, and that it didn't cause any other inadvertent
changes.
- Prefer adding cases to an existing test rather than writing a new
one from scratch. For example, add a new test in `test/test/*.js`
rather than create a new test that validates test output.
32 changes: 12 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
All rights reserved.
The ISC License

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
Copyright (c) Isaac Z. Schlueter and Contributors

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Loading