Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Use Deno's test steps #15

Closed
gcaptn opened this issue May 27, 2021 · 1 comment
Closed

Use Deno's test steps #15

gcaptn opened this issue May 27, 2021 · 1 comment

Comments

@gcaptn
Copy link
Owner

gcaptn commented May 27, 2021

https://deno.land/manual@v1.18.0/testing#test-steps

@gcaptn gcaptn changed the title Support the Deno.tester API Support the future Deno.tester API May 27, 2021
@gcaptn gcaptn changed the title Support the future Deno.tester API Use Deno's test.step API Jan 25, 2022
@gcaptn
Copy link
Owner Author

gcaptn commented Jan 26, 2022

After testing out the implementation and comparing it to the current version, tincan will not be using Deno's test steps.

Deno's test steps are not meant to be used like jest suites. When a test step fails, the reported failure at the bottom is only the top level Deno.test's headline.

The current tincan treats every it node as a Deno.test case. It uses the full hierarchy as the test headline, it's much more readable and debugging is easier.

Side-by-side Comparison:

Deno's Test Steps Tincan
Screen Shot 2022-01-26 at 14 34 55 Screen Shot 2022-01-26 at 14 34 30

The branch is still available at use-test-steps for the meantime.

@gcaptn gcaptn changed the title Use Deno's test.step API Use Deno's test steps Jan 26, 2022
@gcaptn gcaptn closed this as completed Jan 26, 2022
@gcaptn gcaptn pinned this issue Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant