Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document unexpected t.end() behavior #279

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

kl0tl
Copy link
Contributor

@kl0tl kl0tl commented Mar 28, 2016

See #222 for motivation.

@abhisekp
Copy link

Please merge this!
Required!!

@abhisekp
Copy link

abhisekp commented Jul 14, 2016

@kl0tl I suppose t.plan should be used for any async tests. Please correct me If i'm wrong.

And t.end is simply redundant then for the async part.

But sync part may use t.end

Check out https://jsbin.com/tuholu/2/edit?js,output

@abhisekp
Copy link

Basically, t.plan must be used whenever there is an async in the test and in all other cases which doesn't involve async, t.end can be used.

@yoshuawuyts
Copy link

Yup, yeah pretty much - for consistency I never use t.end()

@ljharb

This comment has been minimized.

@ljharb ljharb added the needs "allow edits" PR needs "allow edits" checked label Jan 9, 2019
@ljharb ljharb removed the needs "allow edits" PR needs "allow edits" checked label Jan 4, 2021
@codecov-io
Copy link

codecov-io commented Jan 4, 2021

Codecov Report

Merging #279 (b505c4c) into master (7aff9e4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #279   +/-   ##
=======================================
  Coverage   74.15%   74.15%           
=======================================
  Files          19       19           
  Lines         766      766           
  Branches      146      146           
=======================================
  Hits          568      568           
  Misses        198      198           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7aff9e4...b505c4c. Read the comment docs.

@ljharb ljharb merged commit b505c4c into tape-testing:master Jan 4, 2021
ljharb added a commit that referenced this pull request Jan 4, 2021
 - [Fix] preserve stack traces for returned Promises (async/await) (#537)
 - [Robustness] cache and call-bind more prototype methods
 - [Refactor] use `call-bind/callBound` instead of `function-bind` directly
 - [readme] Document unexpected `t.end()` behavior (#279)
 - [readme] Added tabe into reporter list (#249)
 - [readme] improve method docs
 - [meta] do not publish github action workflow files
 - [meta] run `aud` in `posttest`
 - [meta] add Automatic Rebase and Require Allow Edits workflows
 - [eslint] ensure no trailing commas
 - [eslint] fix some inconsistencies
 - [Tests] make `stripFullStack` output an array of lines, for better failure messages
 - [Tests] add `npm run test:example` to test non-failing examples.
 - [Tests] migrate tests to Github Actions (#538)
 - [Tests] skip Promise tests when Promises are not available
 - [Tests] run `nyc` on all tests
 - [Tests] add `timeoutAfter` test with Promises
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants