News for hackers. Stuff that matters.
Re:"Widevine Dump":Leaked Code Downloads HD Video from Disne... by boppo1 on Monday December 27, 2021 @10:27AM (#29703226)
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'?
Re:"Widevine Dump":Leaked Code Downloads HD Video from Disne... by corndoge on Monday December 27, 2021 @10:31AM (#29703264)
You'll fare much better in today's software industry climate if you don't use the word brogrammer
Re:"Widevine Dump":Leaked Code Downloads HD Video from Disne... by codedokode on Monday December 27, 2021 @07:09PM (#29708559)
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.

Re:"Widevine Dump":Leaked Code Downloads HD Video from Disne... by hatware on Monday December 27, 2021 @11:09AM (#29703627)
Build systems that break, the tests come naturally after that.
Re:"Widevine Dump":Leaked Code Downloads HD Video from Disne... by Godel_unicode on Monday December 27, 2021 @11:53AM (#29704108)
There are many deeply held beliefs that people have about testing, so I recommend reading many different takes on how to structure your testing approach. For the pragmatic python programmer, Brian's book is quite good as a starting place:

https://pragprog.com/titles/bopytest/python-testing-with-pyt...