Skip to content
#

test-driven-development

Here are 1,130 public repositories matching this topic...

sinon
fatso83
fatso83 commented May 25, 2021

Is your feature request related to a problem? Please describe.
Today we silently ignore stubbing issues, such as trying to use sinon.stub(obj, 'prop'), when obj.prop is a synthetic getter. From a user perspective, it is probably more user friendly to be explicitly told immediately that this Object.descriptor is non-configurable (perhaps even with a link to a Sinon doc page!) and cannot be

lepinkainen
lepinkainen commented Jun 21, 2020

I have two setups, in one the -parallel option works just fine in vscode - it generates parallel test cases as it should. In the other it doesn't do anything (not reporting errors in custom flags is a problem in the vscode go plugin, which is not the issue here).

Both were installed with go get -u github.com/cweill/gotests/... when in the $HOME directory within 15 minutes of each other.

mikkelbu
mikkelbu commented Apr 23, 2019

This is a corner case that I only ran into in due to work on the analyzers in nunit/nunit.analyzers#54, and my guess is that very few will run into this problem. Nevertheless, I think we could improve the error message, and fix seems simple and safe.

Given a generic test method with no parameters we get a failure that is difficult to interpret for the users (see last example below for more deta

ocervell
ocervell commented Jun 3, 2021

Seems that adding -e also suppress the exception name and cause. It would be great to keep them while supressing the traceback

Example with Arpeggio library:

Failure in tests.unit.test_promql.TestPromQLConversion.test_conversion (expr='sum by(pod)(rate(metric_test_app[2m] * 60)')
  File "/Users/ocervello/Workspace/dev/cloudops-migrator/tests/unit/test_promql.py", line 39, in test_con

Improve this page

Add a description, image, and links to the test-driven-development 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 test-driven-development topic, visit your repo's landing page and select "manage topics."

Learn more