

Pytest (and all of the plugins we use with it) has a lot of options. Pytest is a testing framework for python and should be your goto for local Python unit testing. Unless otherwise mentioned, all the following commands should be run from inside lms docker container. To get information about various options, you can run the this command: paver -h This includes python, JavaScript, and documentation tests. You can run all of the unit-level tests using this command: paver test
:max_bytes(150000):strip_icc()/Mozilla_Firefox_Start_Page2-1-5c6586ad46e0fb0001ca8f7f.png)
Package work together, while still mocking out template rendering.

LoncapaProblem, NumericalResponse, and CorrectMap in the capa Note that you can still mock or patchĭependencies that are not under test! For example, you might test that
Edx.org problems on chrome for mac code#
We unit test Python code (using unittest) and Javascript (using.As a rule of thumb, your unit tests should cover every code branch.If you find yourself writing tests with many steps,Ĭonsider refactoring the unit under tests into smaller units, and Each test case should be concise: setup, execute, check, and.The pyramid above shows the relative number of unit tests, integration Heavily in unit tests, which tend to be the most robust to changes in In practice, this usually means investing Overall, you want to write the tests that maximize coverage while We maintain three kinds of tests: unit tests, integration tests, and Testing internationalization with dummy translations.Options for Faster Development Cycles in Bok-Choy Tests.
