Development¶
You can use the following steps to test and modify this library on your machine.
Setup¶
Clone the repository from GitHub.
Run
make installto install the project’s dependencies and Git hooks.Set up
wikibase-dockerby following the “Local Wikibase Instance” guide.Rename the
config-example.jsonfile toconfig-tests.json. This is the configuration file that will be used for testing. Fill in either theoauth_credentialsor thelogin_credentialsparameters and delete the other. If you didn’t changewikibase-docker’s configuration, you can use the following:{ "apiUrl": "http://localhost:8181/w/api.php", "loginCredentials": { "botUsername": "WikibaseAdmin", "botPassword": "WikibaseDockerAdminPass" } }
In
config-tests.json, you can also specify other parameters you want to pass to theWikibaseclass during testing.Make your changes to the code.
Make sure the tests are still passing (
make test).