Solucionado (ver solução)
Solucionado
(ver solução)
5
respostas

Estou com dúvida no curso de Testando comportamento através de mocks, no exercício do capítulo Simulando comportamentos com Mock Objects.

Hello Guys.

Where is the script of the database? mocks

Because if you running the first test you got "connection refused".

5 respostas

Hi dude, what's up?

I guess that this course don't have an script to create the database tables. You'll won't need real data stored in db to create yours mocks, the real propose is create fake data to your tests.

Sure. But if the student follow the video step by step find it problem. I did the script too. Thanks.

Diaz, can you tell us which error you got? Post the message please?

The first time do you have this message: connection refuse

solução!

Hi Diaz,

You actually don't need the database. You should mock everything! :)

In the screencast, I try to connect to the database just to motivate you to mock stuff. In the exercise, you don't have to do it!

Makes sense?

Regards!