This week, I added tests for
susi APIs and fixed tests for
user topology related queries. PHPUnit was used as the testing framework since it provides code-coverage support.
Below are the Tests that were added.
testPush – to test Push API.
testSusi – to test newly added Susi API.
testMap – to test map API.
testMarkdown – to test markdown API.
For more detailed information regarding the entire Loklak PHP API test-suite, refer to this.
In above process, code-coverage was increased from 33% to 61%. Test-suite continuously updated as new APIs are added to Loklak.
Source support for Search API
Apart from that, since Loklak is scaling beyond Twitter.
Source argument has been added to the
search API to define the source of search results. As far as wordpress plugins are concerned, since they only require twitter results for now,
source has been added as a default argument. See below code: