2017-06-14 02:01:01 +02:00
{% extends "zerver/portico.html" %}
{# Login page. #}
{% block portico_content %}
< div id = "devtools-page" >
< h2 > Useful development URLs< / h2 >
< p >
Below is a list of useful tools and data sets available only in the Zulip
development environment that are often useful when contributing to Zulip.
Most of these require you to run a command to build/generate the relevant
content. This table specifies which command to use to update the data served
by each page (since several of these, like test coverage, require a special
command to be run to generate the data). Make sure your development server is still running
when you visit these!
< / p >
< table class = "table table-striped table-rounded table-bordered" >
< thead >
< tr >
< th > URL< / th >
< th > Command< / th >
< th > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td > < a href = "/coverage/index.html" > /coverage/index.html< / a > < / td >
< td > < code > ./tools/test-backend --coverage< / code > < / td >
< td > View backend coverage report< / td >
< / tr >
< tr >
< td > < a href = "/node-coverage/index.html" > /node-coverage/index.html< / a > < / td >
< td > < code > ./tools/test-js-with-node --coverage< / code > < / td >
< td > View node coverage report< / td >
< / tr >
< tr >
< td > < a href = "/docs/index.html" > /docs/index.html< / a > < / td >
< td > < code > ./tools/build-docs< / code > < / td >
< td > View Zulip documentation< / td >
< / tr >
< tr >
< td > < a href = "/emails" > /emails< / a > < / td >
2017-09-26 02:03:08 +02:00
< td > < code > ./tools/inline-email-css< / code > < br / >
Run the command if you made changes to source.html email templates.
< / td >
< td > Preview all email templates.< / td >
2017-06-14 02:01:01 +02:00
< / tr >
2017-06-15 05:42:58 +02:00
< tr >
< td > < a href = "/static/html/5xx.html" > /static/html/5xx.html< / a > < / td >
2017-07-08 02:48:52 +02:00
< td > < code > ./manage.py collectstatic --noinput< / code > < / td >
2017-07-17 01:34:05 +02:00
< td > Error 5xx page served by nginx (used when Django is totally broken)< / td >
2017-06-15 05:42:58 +02:00
< / tr >
< tr >
< td > < a href = "/errors/404" > /errors/404< / a > < / td >
< td > None needed< / td >
< td > Error 404 page served by Django< / td >
< / tr >
< tr >
< td > < a href = "/errors/5xx" > /errors/5xx< / a > < / td >
< td > None needed< / td >
< td > Error 5xx page served by Django< / td >
< / tr >
2018-02-28 21:47:53 +01:00
< tr >
< td > < a href = "/accounts/do_confirm/invalid" > /accounts/do_confirm/invalid< / a > < / td >
< td > None needed< / td >
< td > Invalid confirmation link page< / td >
< / tr >
2017-06-14 02:01:01 +02:00
< / tbody >
< / table >
2017-09-22 15:42:25 +02:00
< p > Development-specific management commands live in < code > zilencer/management/commands< / code > . Highlights include:
2017-08-30 01:08:54 +02:00
< ul >
2017-09-22 15:42:25 +02:00
< li > < code > ./manage.py populate_db< / code > : Rebuilds database. Has options to e.g. create 3K users for testing.< / li >
2017-08-30 01:08:54 +02:00
< li > < code > ./manage.py mark_all_messages_unread< / code > : Useful for testing reading messages.< / li >
< li > < code > ./manage.py add_new_realm< / code > : Add a new realm. Useful for testing onboarding.< / li >
< li > < code > ./manage.py add_new_user< / code > : Add a new user. Useful for testing onboarding.< / li >
< li > < code > ./manage.py add_mock_conversation< / code > : Add test messages, streams, images, emoji, etc.
into the dev environment. First edit zilencer/management/commands/add_mock_conversation.py
to add the data you're testing.
< / li >
< / ul >
< / p >
2017-11-16 19:51:44 +01:00
< p > You can find docs on testing Google & GitHub authentication over < a href = "https://zulip.readthedocs.io/en/latest/subsystems/settings.html#testing-google-github-authentication" > here< / a > .< / p >
2017-06-14 02:01:01 +02:00
< / div >
{% endblock %}