Git Product home page Git Product logo

jeblad / doppelganger Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 74 KB

This extension for Mediawiki add test stubs and doubles to Lua modules. This makes it possible to recreate actions that can otherwise be difficult to achieve, to facilitate interactive and collaborative debugging.

Home Page: https://jeblad.github.io/Doppelganger/

License: GNU General Public License v2.0

PHP 22.79% Lua 77.21%
mediawiki-extension scribunto vagrant lua-modules

doppelganger's Introduction

Doppelgänger

stability-experimental GitHub issues

This extension for Mediawiki adds test stubs and doubles (or doppelgängers) for use in Lua modules provided by the Scribunto extension. This makes it possible to report failures clearly and visible, to facilitate interactive and collaborative fault fixing.

Extensive help is available at Doppelganger: Test stubs and doubles for Lua code embedded within Mediawiki, with a programmers guide, a reference, and examples.

Usage

Doppelganger depends on modules from the Scribunto extension.

  1. Download from Github (zip) and place the file(s) in a directory called Doppelganger in your extensions/ folder.

  2. Add the following code at the bottom of your LocalSettings.php:

    wfLoadExtension( 'Doppelganger' );
  3. Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Development

Doppelganger uses Mediawiki-Vagrant, and a complete setup can be made quite easily.

  1. Make sure you have Vagrant, etc, prepare a development directory, and move to that directory.

  2. Clone Mediawiki

    git clone --recursive https://gerrit.wikimedia.org/r/mediawiki/vagrant .
  3. Add the role unless #539690 has been merged. (You need git-review to do this.)

    git review -d 539690
  4. Run setup.

    ./setup.sh
  5. Enable role for Doppelganger. This pulls in the role for Scribunto, which then pulls in additional roles.

    vagrant roles enable doppelganger
  6. Start the instance.

    vagrant up
  7. Done.

doppelganger's People

Contributors

jeblad avatar

Watchers

 avatar  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.