On Sat, Oct 18, 2008 at 11:15 AM, Andy R. Terrel <[EMAIL PROTECTED]> wrote: > > Is there an easy way to only run a specific set of tests, e.g. all the > ones in sympy/functions/elementary/tests?
$ py.test sympy/functions/elementary/tests ============================= test process starts ============================== executable: /usr/bin/python (2.5.2-final-0) using py lib: /usr/lib/python2.5/site-packages/py <rev unknown> sympy/functions/elementary/tests/test_complexes.py[9] ......... sympy/functions/elementary/tests/test_exponential.py[9] ......... sympy/functions/elementary/tests/test_hyperbolic.py[11] ..........f sympy/functions/elementary/tests/test_integers.py[3] ..f sympy/functions/elementary/tests/test_interface.py[3] ... sympy/functions/elementary/tests/test_miscellaneous.py[2] .. sympy/functions/elementary/tests/test_piecewise.py[1] . sympy/functions/elementary/tests/test_trigonometric.py[11] ........... ============== tests finished: 47 passed, 2 xfail in 0.74 seconds ============== or like this: $ python Python 2.5.2 (r252:60911, Aug 8 2008, 09:22:44) [GCC 4.3.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sympy >>> sympy.test("sympy/functions/elementary/tests") ============================= test process starts ============================== py.test like reporting. sympy/functions/elementary/tests/test_complexes.py[9] ......... sympy/functions/elementary/tests/test_exponential.py[9] ......... sympy/functions/elementary/tests/test_hyperbolic.py[11] ..f........ sympy/functions/elementary/tests/test_integers.py[3] ..f sympy/functions/elementary/tests/test_interface.py[3] ... sympy/functions/elementary/tests/test_miscellaneous.py[2] .. sympy/functions/elementary/tests/test_piecewise.py[1] . sympy/functions/elementary/tests/test_trigonometric.py[11] ........... ============= tests finished: 47 passed, 2 xfailed in 0.70 seconds ============= True >>> > > It seems to me that all the tests are really functional tests (as in > the make sure sympy is functionally doing the right thing). Are there > any tests that are more performance tests and thus I can tell if a > change has significant effect on the performance? Yes, for benchmarks use: $ ./setup.py bench it prints nice benchmarks. Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---