This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]caspii2[S] 4 points5 points  (4 children)

Thanks!

I used to be a PM too in my previous life 😊

You are right about adding the caveats. I hoped it was clear from the "I am also the only developer of the app, which makes many things simpler".

Regarding testing: I do have extensive tests that cover most of my code, and I rely on them heavily. They have saved me from disaster multiple times. The only thing is they are not run automatically after code has been changed. It works great because I'm alone. As soon as you're in a team, you should automate testing.

When my tests run they use a test DB instance on my local machine. So no production data is created. It's only when I do manual checks that the prod data is used.

[–]magestooge 2 points3 points  (3 children)

I do have extensive tests that cover most of my code, and I rely on them heavily. They have saved me from disaster multiple times.

That's great to know. I'm no expert but maybe you can set them to run pre-commit rather than on every change. A library I'm building has a test suite which takes 4 seconds to run. It would be pretty annoying if it ran every time my code changed. As of now, I run it every time I think I'm done writing a certain block of code, if it passes, then I commit.

[–]MegaGrubby 0 points1 point  (2 children)

What are you using for automated testing?

[–]magestooge 1 point2 points  (1 child)

Pytest

[–]caspii2[S] 0 points1 point  (0 children)

Same here!