Post by twetch#2645

1Eyk15…d43C Key · twetch

Just an update... Looks like Mocha and Chai are a good starting point for tools, so I've got those installed and will begin with trying to understand them.

I think what I need most (could be wrong) is a general knowledge base for how to do testing well.

1D7phC…Dnj9 Key · twetch

Are you looking to do Unit testing or Integration testing?

IMO start with Unit testing first (easier to get started, less dependencies etc)

What the chain says
Block
630 499
Time
2020-04-13T20:46:52Z
Signer
1D7phC6f3D3zA8Dwu6eGNNLbXbuNHkDnj9
App
twetch
Type
post
Content type
text/plain
Name in tx
twetch#2645

Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.

Signed by 1D7phC6f3D3zA8Dwu6eGNNLbXbuNHkDnj9 Verified

Replies (7)

1Eyk15…d43C Key · twetch
Replying to@1D7phC…Dnj9

I am very early in this specific learning curve, so I'd assume Unit testing. I have a very basic understanding of what Unit testing is vs Integration testing.

1D7phC…Dnj9 Key · twetch
Replying to@1Eyk15…d43C

Welcome to the world of testing! It always seems like more work at first, but in the long run you'll be thanking yourself for investing the time. Tests are really important when you start coding with multiple people or a large team. For JS I've used Chai

1Eyk15…d43C Key · twetch
Replying to@1D7phC…Dnj9

Yes, I know it's important, and doing it well is important too. I'm vaguely aware of concepts like TDD and BDD.

Do you have any good resources to help me dive deeper into these and other concepts involving testing?

1D7phC…Dnj9 Key · twetch
Replying to@1Eyk15…d43C

Yeah I agree, you want meaningful tests vs tests that don't serve a good purpose. Unfortunately I don't have anything quickly to reference. I write in Go, so the testing is in the language, and I follow the best practices (as I learn them).

Continue thread →