PHPUnit’s HTML code coverage reports don’t play nicely with GitHub pages “main branch /docs folder” by default, as they store CSS, JS and icon assets in folders prefixed with underscores.
Here’s a little bash script to run tests with code coverage enabled, then move the assets around:
rm -rf docs/coverage/
XDEBUG_MODE=coverage ./vendor/bin/phpunit tests --coverage-filter src --coverage-html docs/coverage
mv docs/coverage/_css docs/coverage/phpunit_css
mv docs/coverage/_icons docs/coverage/phpunit_icons
mv docs/coverage/_js docs/coverage/phpunit_js
grep -rl _css docs/coverage | xargs sed -i "" -e 's/_css/phpunit_css/g'
grep -rl _icons docs/coverage | xargs sed -i "" -e 's/_icons/phpunit_icons/g'
grep -rl _js docs/coverage | xargs sed -i "" -e 's/_js/phpunit_js/g'
That allows you to use GitHub pages to show code coverage reports as well as docs, as I’m doing for taproot/indieauth.
Not unrelatedly, Jack Jamieson’s dissertation on the IndieWeb is called Independent Together: Building and Maintaining Values in a Distributed Web Infrastructure.
Also on:Yea that looks like a cool site! I hope it catches on, but we also have IndieNews and Indieweb.xyz and those have never really had huge usage.Yea I think showing the replies inline makes it more interesting than just an aggregator to me. I hope it might stimulate some blogchains (https://doubleloop.net/2020/04/05/blogchains-and-hyperconversations/)
I kicked one off, if you’re interested! – https://www.indieforums.net/threads/c1c36e81a755848c.html
https://github.com/hometown-fork/hometown/wiki/Exclusive-lists
Also on:The fact that so many people publish their thoughts and share knowledge, is something I’ve always loved about the web. Whether it is practical stuff about how to solve a coding issue or some kind of opinion… everyone’s brain is wired differently. It may resonate, it may not, that’s also fine.
De Indieweb bouwstenen zijn een mooie verzameling onderdelen om extra functionaliteit aan je blog toe te voegen. Helaas werkt één van de plugins niet altijd naar behoren zoals ik vanochtend weer merkte. Ik heb op mijn telefoon een Shortcut waarmee ik websites kan liken. Dit is vergelijkbaar met de...I’ve had that same problem before, and never really reached a solution. I think you’re right – it is likely that it can’t parse the information it needs properly from the page you liked.
One way to dig in to it could be to see if that same URL, when pasted in to the ‘URL’ section when creating a post manually in WordPress (not via Micropub), gets the correct values picked up. That could point whether it is specifically a parsing issue or a Micropub issue.
Keeping an eye on this work with federated bookshelves. Only a matter of time before we have good IndieWeb-friendly alternatives to Goodreads, and I want Micro.blog to be a part of that.
Now I finally fixed my webmention endpoint, time to make sure my webmention sending is up to scratch, with https://webmention.rocks/
Test 1 Test 2 Test 3 Test 4 Test 5 Test 6 Test 7 Test 8 Test 9 Test 10 Test 11 Test 12 Test 13 Test 14 Test 15 Test 16 Test 17 Test 18 Test 19 Test 20 Test 21 Test 22 Test 23