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
Post by twetch#622
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?
What the chain says
- Block
- 630 563
- Time
- 2020-04-14T15:41:11Z
- Signer
- 1Eyk15KEeYX9JwH8e98pqpX3kTUuY9d43C
- App
- twetch
- Type
- post
- Content type
- text/plain
- Name in tx
- twetch#622
Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.
1Eyk15KEeYX9JwH8e98pqpX3kTUuY9d43C VerifiedReplies (4)
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.
I'm not sure I understand... Are you recommending I program in Ruby?