Anyone have any good resources on implementing testing in N…
Anyone have any good resources on implementing testing in Node/Express applications?
Replies
Pinging experts @205 @888 @833
Appreciated.
I've been skating by without anything on that front so far, which I know is baaad. So, better now than later. But, I need a starting point on it all.
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.
Are you looking to do Unit testing or Integration testing?
IMO start with Unit testing first (easier to get started, less dependencies etc)
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.
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
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.
I'm not sure I understand... Are you recommending I program in Ruby?