Automated testing
Cypress.io is used for testing this plugin. The following steps show how to run the tests locally.
- Install JBrowse but don’t install chromosome files.
- Download Chr 1 fasta from
http://ftp.ensembl.org/pub/release-94/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.chromosome.1.fa.gz
. There should be the fasta index file incypress/data/Homo_sapiens.GRCh38.dna.chromosome.1.fa.fai
. Put these files intojbrowse/data/
. - Install Cypress.io with
npm install
. - Place
cypress/data/tracks.conf
into yourjbrowse/data/
directory. Make sure no other tracks are present. - Run
npx cypress open
ornpx cypress run
ornpm run e2e
Note while some tests have mocked endpoints, not all endpoints are mocked. This could lead to breakage of tests in the future.