Skip to content

Commit

Permalink
Tag performance test as a suite, make a Makefile endpoint to not run …
Browse files Browse the repository at this point in the history
…it. (over-the-shoulder CR by striglia)
  • Loading branch information
gatoatigrado committed Feb 18, 2014
1 parent 79ac2a7 commit 15e3af3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ tests: _PHONY

test: _PHONY tests

test-no-performance: _PHONY
tox -- --exclude-suite=performance tests

coverage: _PHONY
tox -e coverage

Expand Down
1 change: 1 addition & 0 deletions tests/performance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def inner(*args, **kwargs):
return inner


@T.suite("performance", "These tests may flake if your testing server is overloaded.")
class PerformanceTest(T.TestCase):
def get_speedup_factor(self, baseline_fcn, optimized_fcn, num_tests):
baseline_performance = timeit.timeit(baseline_fcn, number=num_tests)
Expand Down

0 comments on commit 15e3af3

Please sign in to comment.