←back to thread

449 points bertman | 1 comments | | HN request time: 0.331s | source
Show context
bertman ◴[] No.29702169[source]
The repos: https://github.com/widevinedump?tab=repositories
replies(1): >>29702805 #
sovietmudkipz ◴[] No.29702805[source]
I don’t know why but for some reason I was hopeful to see unit tests in any of the repos. Searching “test” for that user doesn’t reveal any tests. :(

Even the digital property liberators/internet pirates don’t test their software. I feel like I’m on an island with a small population of test enthusiasts.

replies(4): >>29703006 #>>29703066 #>>29703153 #>>29703226 #
boppo1 ◴[] No.29703226[source]
What's the best place to get started with testing? As a newbie brogrammer it's intimidating enough writing software that works, let alone suites to comprehensively test it. Is there a testing 'bible'?
replies(4): >>29703264 #>>29703627 #>>29704108 #>>29708559 #
1. codedokode ◴[] No.29708559[source]
I cannot recommend a book or an article, but just wanted to give an idea: automated testing is when you make a script do what a human tester would do. So maybe you should read about testing software in general. How test planning is done, how do you choose test cases.

You start with listing requirements (what a program/a class/a function is expected to do or not to do) and then write tests that verify that it is indeed so.

The easiest thing is writing unit tests. Pick a function, define requiremens and write a test for every requirement. If your code is not very modular and it is difficult to isolate a class or a function in order to test it, then maybe you should refactor the code first.