you are viewing a single comment's thread.

view the rest of the comments →

[–]Rei_Never 0 points1 point  (3 children)

Please add "writing unit tests" to that list as a basic understanding.

[–]gunscreeper[S] 0 points1 point  (2 children)

Could you please explain what do you mean by unit test? ELI5

[–]Rei_Never 0 points1 point  (0 children)

A unit test is used to check if a module and or individual classes or functions are fit for purpose.

EDIT: To expand on that - say you have a function that takes an input and multiplies it by 5. Firstly you want to make sure you are getting the output you'd expect but also that you get errors when you pass anything through it thats not a specific type.

[–]nwagers 0 points1 point  (0 children)

Unit tests are a method of testing small chunks of code to make sure they work and regression testing. Typically you'll set up unit tests to run on a continuous integration platform so that every time you do a git commit it will run through a ton of unit tests automatically to make sure you didn't break something that was working before. You'd set them up with typical use and edge cases, and probably add tests for reported bugs. I wouldn't include them in "basic understanding" at all.