Events2Join

unit tests in moodle


Writing PHPUnit tests - MoodleDocs

There are three basic test class that are supposed to used in all Moodle unit tests - basic_testcase, advanced_testcase and provider_testcase.

Unit test API - MoodleDocs

Running the basic tests · Log in with an admin account. · Access Administration > Reports > Unit tests in 1.9 or Site administration > ...

PHPUnit - Moodle Developer Resources

PHPUnit by Sebastian Bergmann is an advanced unit testing framework for PHP. It is installed as Composer dependency and is not part of ...

Unit Testing - Moodle Developer Resources

Unit Testing. Unit tests are the best way of checking the behaviour of your external services and can help you to: ... Writing unit tests for an ...

Unit Testing in Moodle

About this course. In this course, you will learn about the different types of testing conducted in Moodle. The course will cover unit testing in greater detail ...

how to set up and run unit tests in moodle - YouTube

The idea here is that we could continue from the first setup video: https://www.youtube.com/watch?v=JzYjPF5ybT8 It will be good for us to ...

How do I have to run unit tests? - Moodle.org

Try running some of the core unit tests first, eg vendor/bin/phpunit --testsuite report_questioninstances_testsuite And look at the file where they are defined.

Moodle in English: Unit testing tables

I want to test my database functionality, which would be safest if it would run on tables with the unittest_ prefix. How can I make sure that those test tables ...

Common unit test problems - MoodleDocs

Verify that you are not using multiple PHP opcode accelerators together (APC, Opcode...). Also try disabling all them (they really don't help ...

unit tests in moodle

It will try and connect to the database defined in the $CFG->phpunit_db* variables in config.php so that it can create a test installation of Moodle.

PHPUnit integration - MoodleDocs

Moodle tests extend basic_testcase or advanced_testcase. ... Since 2.6 it is possible to use automatic class loader when executing individual unit ...

Unit Tests - STACK Documentation - Moodle

Maxima unit tests,; Test scripts exposed to the question author. These three mechanisms aim to provide comprehensive testing of STACK. The last category are a ...

Unit Testing in Moodle

The course will cover unit testing in greater detail. Learners will set up PHPUnit on their local Moodle development environment, and write a PHP unit test.

moodle-qtype_stack/doc/en/Developer/Unit_tests.md at master

Unit testing for STACK comes in the following three parts. PHP Unit tests,; Maxima unit tests,; Test scripts exposed to the question author.

Unit tests with PHPUnit and config.php - Moodle.org

try to create some PHPUnit test cases for a new Moodle resource type I implemented. Because I use some functions from the weblib.php library, I ...

Moodle plugin development testing - Stack Overflow

Log into the site with suitable user accounts and test your plugin. Ideally, you should also write (and run) both Unit tests.

moodlehq/moodle-exttests: Test files for phpunit tests using external ...

This folder contains several files that are used for unit testing Moodle download capabilities. File specs: test.html: One test valid xhtml file containing UTF- ...

Unit tests - MoodleDocs

The Unit Test report is a tool for developers to let them automatically test various parts of the Moodle code.

Moodle | Unit Test Submission Assessment and Grading - YouTube

Moodle | Unit Test Submission | Assessment and Grading.

Running UNIT tests on students' code - Moodle.org

It would be nice to allow them to load the code on moodle and to show if their code behave corretly to some unit test written by the teacher.