Hacker News new | past | comments | ask | show | jobs | submit login

Yesterday I made a glue program that imports my model code and http code and makes requests to my running server.

I’ve loaded it with assertions and anytime my server code is wrong—it’s just so easy to find out.

The biggest issue for me is trying to get XCode to launch my server first and my test program second every time I make a change.

Besides that—having the test program is a joy. Took me an hour to setup.

All this is to say—testing is very much alive and well in me.

The biggest mistake made is that these IDE’s or programs usually make the testing command something you need to run besides the program. They really should run together. Once click. Test everything.

PS — my favorite testing framework is MPWTest because it brings my code to life as a living document.

With HTTP or server code it hiccups of course—hence my need to roll my own.

https://blog.metaobject.com/2020/05/mpwtest-reducing-test-fr...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: