Development¶
You can use the following steps to test and modify this library on your machine.
Setup¶
Clone the repository from GitHub.
Run
make install
to install the project’s dependencies and Git hooks.Set up
wikibase-docker
by following the “Local Wikibase Instance” guide.Rename the
config-example.json
file toconfig-tests.json
. This is the configuration file that will be used for testing. Fill in either theoauth_credentials
or thelogin_credentials
parameters 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 theWikibase
class during testing.Make your changes to the code.
Make sure the tests are still passing (
make test
).