The Wayback Machine - https://web.archive.org/web/20200715022933/https://github.com/topics/test-driven-development
Skip to content
#

test-driven-development

Here are 977 public repositories matching this topic...

mwmichael
mwmichael commented Mar 29, 2020

This is a great book and I've enjoyed following it through almost to the end.

However, if I type / copy the code in the first code block at https://quii.gitbook.io/learn-go-with-tests/go-fundamentals/math#write-the-test-first then run the test, it will give me a

Success: all tests pass.

It looks like the package that is being included already has the correct code. The guide should sure

maald
maald commented Apr 24, 2020

As a new end user, I cannot find a single user guide or decent documentation. The javadoc reads like it's written as a quick review for someone who already knows the ins/outs of Mockito and just need some sample code. I don't even know what or how Mockito works and the first couple of lines are talking about "mockito inline".

Most open source projects have really great user guides and document

sinon
rensbaardman
rensbaardman commented Sep 19, 2019

Describe the bug
When the (string) representations of the expected outcome and the actual outcome of e.g. assert.calledWith() are equal, the resulting error message is very confusing and hinting at a bug in the display logic. Instead of <red>actual</red> <green>expected</green> (with <color>...</color> my attempt at showing the expected terminal output color), it displays `actual

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
mcmilleon-will
mcmilleon-will commented May 7, 2018

In our tests we often validate default data and prop values for the component under test using something like this:

componentUnderTest.data().should.deep.equal({
 // all expected data values go here
});

componentUnderTest.propsData().should.deep.equal({
 // all expected props values go here
});

We're using v4.2.0 and this works nicely for calls to data(), and it do

arunshan
arunshan commented Sep 29, 2017

Versions:
serverless: 1.21.1
serverless-mocha-plugin: 1.7.0

Problem:
I just followed the documentation to add tests to my existing serverless project. I use sls invoke test -p . to run tests and get the following error:

Aruns-MacBook-Pro:aws arunshankar$ sls invoke test -p .
Serverless: Invoke invoke:test
 
  Error --------------------------------------------------
 
  C
pgrangelgo
pgrangelgo commented Nov 29, 2018

When using quotes inside here doc in the context of fake, the quote will disappear from the output of the faked function. This is different from what is expected from using here doc.

Here is an exemple:

test_should_succeed_but_will_fail() {
  fake toto <<EOF
"test"
EOF

  assert 'toto | grep \"' 'should have found quote but seems like fake swallowed it'
}

test_will_succee

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

You can’t perform that action at this time.