thekid / dialog

Dialog photoblog
2 stars 1 forks source link

Add integration tests #48

Closed thekid closed 1 year ago

thekid commented 1 year ago

This PR adds integration testing via GitHub actions, creating an instance of de.thekid.dialog.App and making it serve requests.

Makes use of protocol() accessor in https://github.com/xp-forge/mongodb/pull/26

thekid commented 1 year ago

After more of an hour of educated guesses on how to get the test setup to work correctly, I finally did it:

$ sh xp-run xp.unittest.TestRunner src/it/php -a mongodb://localhost:49153
[....]

OK: 4/4 run (0 skipped), 4 succeeded, 0 failed
Memory used: 6801.54 kB (6911.08 kB peak)
Time taken: 0.021 seconds

See https://github.com/thekid/dialog/actions/runs/3725103025/jobs/6317693381#step:9:1