@@ -253,6 +253,39 @@ description of the ``output``.
253253
254254- `metadata.xml <https://github.com/galaxyproject/galaxy/blob/dev/test/functional/tools/metadata.xml >`__
255255
256+ ------------------------------------------------------
257+ \.\.\. test installed in an existing Galaxy instance?
258+ ------------------------------------------------------
259+
260+ Do not use planemo, Galaxy is should be used to test these tools directly.
261+ The following two commands can be used to test Galaxy tools in an existing
262+ instance.
263+
264+ ::
265+
266+ sh run_tests.sh --report_file tool_tests_shed.html --installed
267+ GALAXY_TEST_TOOL_CONF=config/tool_conf.xml sh run_tests.sh --report_file tool_tests_tool_conf.html functional.test_toolbox
268+
269+ The first command specifies the ``--installed `` flag when calling
270+ ``run_tests.sh ``, this tells the test framework to test tool shed installed
271+ tools and only those tools.
272+
273+ The second command sets ``GALAXY_TEST_TOOL_CONF `` environment variable, which
274+ will restrict the testing framework to considering a single tool conf file
275+ (such as the default tools that ship with Galaxy
276+ ``config/tool_conf.xml.sample `` and which must have their dependencies setup
277+ manually). The last argument to ``run_tests.sh ``, ``functional.test_toolbox ``
278+ tells the test framework to run all the tool tests in the configured tool conf
279+ file.
280+
281+ .. note :: *Tip:* To speed up tests you can use a pre-migrated database file the way planemo
282+ does by setting the following environment variable before running
283+ ``run_tests.sh ``.
284+
285+ ::
286+
287+ export GALAXY_TEST_DB_TEMPLATE="https://github.com/jmchilton/galaxy-downloads/raw/master/db_gx_rev_0127.sqlite"
288+
256289.. _DOI : http://www.doi.org/
257290.. _BibTeX : http://www.bibtex.org/
258291.. _Dockerfile : https://docs.docker.com/reference/builder/
0 commit comments