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.
Post by twetch#2645
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
What the chain says
- Block
- 630 547
- Time
- 2020-04-14T14:10:48Z
- 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.
1D7phC6f3D3zA8Dwu6eGNNLbXbuNHkDnj9 VerifiedReplies (5)
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?
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).
Hmm... Ok. Unfortunately that's not very helpful to me.
Are there any general concepts that you suggest I research in more depth? Things like TDD and BDD?
Ruby relies heavily on TDD and BDD, due to its (former) lack of type-safetyness.
Testing in Ruby is quite a pleasant experience, and its easy to get going - either with unit tests, or functional/integration tests using a tool like Capybara.