Question: How to write tests for tools that access built-in data from the data tables
gravatar for Thon deBoer
6 months ago by
Thon deBoer20
Thon deBoer20 wrote:

I am writing a tool wrapper for a tool that allows as FASTA file input something from the data-table all_fasta.

How do I write tests for these kinds of tools?

The tests I wrote that use data provided as test-data in the test-data directory work fine, but I want to test it using the data from a data-table...

ADD COMMENTlink modified 6 months ago by jmchilton1.1k • written 6 months ago by Thon deBoer20
gravatar for jmchilton
6 months ago by
United States
jmchilton1.1k wrote:

There is some documentation on how to do this here, I hope that helps.

ADD COMMENTlink written 6 months ago by jmchilton1.1k
gravatar for Jennifer Hillman Jackson
6 months ago by
United States
Jennifer Hillman Jackson25k wrote:


The tests are self-contained per tool. Please see this tool's tests for an example that makes use of a data table within the test:

Using the data table fasta_indexes is a better choice than all_fasta for a few technical reasons, mostly to ensure that both manually indexed data and data manager indexed data are accessed by the tool once deployed. Not all servers have both types of indexes, but some do, and this makes the tool more robust.

Other references: - - -

Thanks! Jen, Galaxy team

ADD COMMENTlink written 6 months ago by Jennifer Hillman Jackson25k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 171 users visited in the last hour