Files
RustPython/tests
Noah 71344bbcf0 Merge pull request #2173 from qingshi163/dev3
Fix: array with float type should accept integer parameter
2020-09-02 08:32:11 -05:00
..
2019-08-22 03:11:51 +02:00
2020-08-11 02:18:20 +09:00
2020-04-02 17:42:01 -05:00
2020-04-02 17:42:01 -05:00
2020-07-14 08:30:23 +09:00
2019-11-24 15:37:32 +01:00
2019-07-16 19:13:07 -05:00

Test snippets

This directory contains two sets of test snippets which can be run in Python. The snippets/ directory contains functional tests, and the benchmarks/ directory contains snippets for use in benchmarking RustPython's performance.

Setup

Our testing depends on pytest, which you can either install globally using pip or locally using our pipenv.

Running

Simply run pytest in this directory, and the tests should run (and hopefully pass). If it hangs for a long time, that's because it's building RustPython in release mode, which should take less time than it would to run every test snippet with RustPython compiled in debug mode.