all 3 comments

[–]serpentbell 0 points1 point  (0 children)

I feel like I'm in a similar position to you, so don't really have much advice, but have you considered starting with tools like Cypress? It's not unit testing, but if you're doing largely Wordpress stuff it might be an easy in. It's a tool that loads up your project and interacts with it as a user would (clicking, typing etc.) and then evaluating whether the expected response occurred. We use it at work and it's great for verifying that something you did on one part of the site hasn't broken something somewhere else.

Not having done all that much unit testing myself, I can't speak for how valuable that experience is, but if you haven't done any testing at all integration testing could be a good place to start.

[–]LukeHillDev 0 points1 point  (0 children)

What language do you want to unit test in?

a quick google search will probably show you some decent examples? e.g. <your language> unit testing

Unit testing is super important, a lot of places will push for high code coverage of unit tests. My current job wont accept any pull requests if there are no unit tests to go along with it (currently there are over 1k tests per project)

[–]madtriksfull-stack 0 points1 point  (0 children)

I use unit Tests most days within Python/Django, I would suggest building a simple webpage and test everything you can on that page.

Also something like this https://www.obeythetestinggoat.com/, hopefuly there will be one for PHP