Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testing/README.md #1562

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@

# Testing SynBioHub

## Running the test suite

First, install dependencies. The dependencies are python 3, the python packages in tests/test_requirements.txt, and jq.

Ubuntu:\
`sudo apt-get install jq`\
`sudo apt-get install -y python3 python3-pip`\
`sudo pip3 install -r tests/test_requirements.txt`\
```bash
sudo apt-get install jq python3 python3-pip python-is-python3 python3-venv

# Install Chrome for the dependancies that pypeter needs
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt update
sudo apt install google-chrome-stable libxss1

cd tests

python3 -m venv venv
. venv/bin/activate
pip3 install -r test_requirements.txt

cd ..
```

Then build a docker image from the local version of synbiohub using
`docker build -t synbiohub/synbiohub:snapshot-standalone -f docker/Dockerfile .`
Expand Down
Loading