Skip to content

Commit

Permalink
Merge pull request #215 from dib-lab/fix/build-time
Browse files Browse the repository at this point in the history
Try to reduce the build time for continuous integration tests
  • Loading branch information
standage committed Mar 13, 2018
2 parents d11fa78 + f903d09 commit c96a0d2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install:
- pip install -r requirements.txt
- pip install .
script:
- make testall
- make testmore
- make style
- make doc
after_success:
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ ext: kevlar/alignment.c src/align.c inc/align.h

## test: execute the automated test suite
test: ext
py.test --cov=kevlar kevlar/tests/*.py -m 'not long'
py.test --cov=kevlar kevlar/tests/*.py -m 'not long and not toolong'

## testall: execute the automated test suite, including long-running tests
## testmore: execute the automated test suite, including longer-running tests
testmore: ext
py.test -v --cov=kevlar kevlar/tests/*.py -m 'not toolong'

## testall: execute the automated test suite, including all tests
testall: ext
py.test -v --cov=kevlar kevlar/tests/*.py

Expand Down
18 changes: 17 additions & 1 deletion kevlar/tests/test_simplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def teardown():
return mother.name, father.name, proband.name, refr.name


@pytest.mark.long
@pytest.mark.toolong
def test_simplex_pico(pico_trio, capsys):
mother, father, proband, refr = pico_trio

Expand Down Expand Up @@ -95,3 +95,19 @@ def test_simplex_trio1(capsys):
'CCGTGGAAGCATAA'
])
assert out.strip() == testvcf


def test_simplex_minitrio():
proband = data_file('minitrio/trio-proband.fq.gz')
mother = data_file('minitrio/trio-mother.fq.gz')
father = data_file('minitrio/trio-father.fq.gz')
refr = data_file('minitrio/refr.fa')

arglist = [
'simplex', '--novel-memory', '10M', '--case', proband,
'--control', mother, '--control', father, '--threads', '2',
'--ctrl-max', '1', '--case-min', '5', '--ksize', '25',
refr
]
args = kevlar.cli.parser().parse_args(arglist)
kevlar.simplex.main(args)

0 comments on commit c96a0d2

Please sign in to comment.