GithubHelp home page GithubHelp logo

moodle-behat-extension's Introduction

moodle-behat-extension

Behat extension for Moodle to get features and steps definitions from different moodle components; it basically allows multiple features folders and helps with the contexts spreads across components of an external app.

Following custom formats are supported.

  • moodle_progress: Prints Moodle branch information and dots for each step.
  • moodle_list: List all scenarios.
  • moodle_stepcount: List all features with total steps in each feature file. Used for parallel run.
  • moodle_screenshot: Take screenshot and core dump of each step. With following options you can dump either or both.
    • --format-settings '{"formats": "image"}': will dump image only
    • --format-settings '{"formats": "html"}': will dump html only.
    • --format-settings '{"formats": "html,image"}': will dump both.
    • --format-settings '{"formats": "html", "dir_permissions": "0777"}'

Contributing

http://docs.moodle.org/dev/Acceptance_testing/Contributing_to_Moodle_behat_extension

Upgrade from moodle-behat-extension 1.31.x to 3.31.0

  • Chained steps are not natively supported by behat 3.
    • You should either replace Behat\Behat\Context\Step\Given with Behat\Behat\Context\Step\Given;
    • or use behat_context_helper::get('BEHAT_CONTEXT_CLASS'); and call api to execute the step.
  • named selectors are deprecated, use named_exact or named_partial instead.
  • Failed steps are cached for rerun and doesn't require an empty file to save failed scenarios.

moodle-behat-extension's People

Contributors

andrewnicols avatar chocolate-lightning avatar dmonllao avatar junpataleta avatar marinaglancy avatar mouneyrac avatar polothy avatar sarjona avatar stronk7 avatar vmdef avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.