Skip to content
#

tdd

Here are 3,496 public repositories matching this topic...

sgravrock
sgravrock commented Aug 15, 2020

The following spec fails with a timeout but should fail with a message that explains that a promise was expected to be resolved:

  it('should fail with something other than a timeout', function() {
    var p = new Promise(function() {});
    return expectAsync(p).toBeResolved();
  });

Most of the async matchers have this problem, with the notable exception of toBePending.

philsquared
philsquared commented Mar 24, 2020

Describe the bug
When TEMPLATE_LIST_TEST_CASE and TEMPLATE_LIST_TEST_CASE_METHOD were added, the corresponding versions with the CATCH_ prefix were missed.

Expected behavior
CATCH_TEMPLATE_LIST_TEST_CASE and CATCH_TEMPLATE_LIST_TEST_CASE_METHOD should be available.

Additional context

The commit that added TEMPLATE_LIST_TEST_CASE and `TEMPLATE_LIST_TEST_CASE_MET

sinon
itmayziii
itmayziii commented Jul 27, 2019

Is your feature request related to a problem? Please describe.
Reading through what a fake can and can not do is not clear from the documentation.

Describe the solution you'd like
Exact methods that are available to a Fake need to be documented.

First of all thank you for Sinon, I believe the library is powerful and has helped me write a lot of tests. What I'm requesting here is

nohwnd
nohwnd commented Aug 21, 2020

Code lens in vscode cannot run tests when TestCases are provided because we are using the opening brace position as the line filter, but test cases will move it further down, not matching the filter. To avoid difficult parsing let's change that to using $MyInvocation.ScriptLineNumber instead of $ScriptBlock.StartPosition.StartLine, which will give us the position of the It (and other) co

Augure34
Augure34 commented Oct 3, 2019

When running build.ps1 -t Test, the following output describes the failing tests:

  1. Failed : NUnit.Framework.Api.FrameworkControllerTests.ExploreTestsAction_FileNotFound_ReturnsNonRunnableSuite
    Expected: String containing "The system cannot find the file specified."
    But was: "Le fichier sp├®cifi├® est introuvable. (Exception from HRESULT: 0x80070002)"
    at NUnit.Framework.Api.Framew
chinleung
chinleung commented Mar 9, 2020

Hi,

When I run my tests using the neovim strategy, it opens a new terminal but auto focus on the buffer. Then I have to press <C-o> to not close the buffer and go back to my split pane.

Is there a way to have it open but not switch my focus to the newly opened pane automatically?

fast-check
dubzzz
dubzzz commented Feb 24, 2020

TypeScript 3.7 · TypeScript https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions

In fast-check fc.pre can be used to stop the execution of a property if some preconditions are not validated.

// v is number | null
fc.pre(v !== null)
// while v cannot be null there, TypeScript stills consider that it can be

As adding thi

Improve this page

Add a description, image, and links to the tdd topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the tdd topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.