micropython/tests
Paul Sokolovsky bdd48e67ee tests/uctypes_array_assign_native_le: Split off intbig part. 2017-03-07 08:40:03 +01:00
..
basics tests/basics/unpack1.py: Test if *a, = b copies b when b is a list. 2017-03-07 16:48:16 +11:00
bench
cmdline py: Create str/bytes objects in the parser, not the compiler. 2017-02-24 13:43:43 +11:00
cpydiff tests/cpydiff: Add a test for storing iterable to a list slice. 2017-02-20 17:22:12 +11:00
extmod tests/uctypes_array_assign_native_le: Split off intbig part. 2017-03-07 08:40:03 +01:00
feature_check tests/run-tests: Check for big int availability and skip related tests. 2017-03-03 20:16:59 +03:00
float tests/string_format_modulo2: Split off intbig test. 2017-03-07 00:13:36 +01:00
import
inlineasm
io
jni
micropython tests/micropython/: Split off intbig tests. 2017-03-07 07:12:58 +01:00
misc
pyb
pybnative
stress
thread
unicode
unix
wipy
README
pyboard.py
run-bench-tests
run-tests tests/basic: Split tests into working with small ints and not working. 2017-03-04 00:13:27 +03:00
run-tests-exp.py
run-tests-exp.sh

README

This directory contains tests for various functionality areas of MicroPython.
To run all stable tests, run "run-tests" script in this directory.

Tests of capabilities not supported on all platforms should be written
to check for the capability being present. If it is not, the test
should merely output 'SKIP' followed by the line terminator, and call
sys.exit() to raise SystemExit, instead of attempting to test the
missing capability. The testing framework (run-tests in this
directory, test_main.c in qemu_arm) recognizes this as a skipped test.

There are a few features for which this mechanism cannot be used to
condition a test. The run-tests script uses small scripts in the
feature_check directory to check whether each such feature is present,
and skips the relevant tests if not.

When creating new tests, anything that relies on float support should go in the 
float/ subdirectory.  Anything that relies on import x, where x is not a built-in
module, should go in the import/ subdirectory.