Quality Assurance

Introduction

 * QA is part of the Wikimedia Release Engineering Team. The job of Release Engineering is to get software from the developer's head to production as quickly, easily, and safely as possible. Software testing is particularly concerned with the "safely" part of that process, and QA is concerned with the overall process.


 * Getting started with Quality Assurance? Take a look at pages that are both in QA and New contributors categories.

Mission
Quality Assurance at the Wikimedia Foundation (WMF) is about answering two questions:


 * What should the software do? (Are we building the right thing?)
 * How should the software function? (Are we building the thing right?)

The biggest issue facing Wikipedia today is that the number of editors. So the answer to the first question is: the software should increase the number of editors for Wikipedia.

QA testing works with the software development projects at WMF to answer the second question, "How should the software function?".

Projects
The software development effort at WMF is divided into several projects:


 * Collaboration is devoted to building significant features for Wikipedia dedicated to encouraging and supporting editors.
 * Flow, a modern discussion and collaboration system, is the most important project right now from the Collaboration team.


 * Growth is devoted to projects that bring in new editors. This team does a lot of A/B testing.


 * We are building a VisualEditor for Wikipedia because having to learn wikitext is a barrier to editing Wikipedia, and sometimes even a burden to those who know it well.


 * We are ramping up a project for better Multimedia support.


 * Find out about Mobile software projects at the Mobile Gateway.


 * Find out about Language software projects at the Language portal.

Contributing to testing: the most important thing any potential tester can do is to understand how the software to be tested should function. After that, contributing is just details.

Software testing
QA at WMF practices two main approaches to software testing: exploratory testing and automated browser testing.

Exploratory testing is "simultaneous learning, test design and test execution" or "test design and test execution at the same time". Exploratory testing is a powerful approach that everyone should know.

Our automated browser tests use Cucumber to define test scenarios and implement the Page Object design pattern. Browser test code resides with the code repositories that they test. You can find browser test code in the /tests/browser directory of the repositories.

Contributing to testing: an automated browser test that fails is an opportunity for exploratory testing. Exploratory testing that discovers a bug is an opportunity to write an automated test.

We have pages devoted to exploratory testing and automated browser testing.

Testing environments
We have two main test environments.

One test environment is known as "beta labs" or "the beta cluster". Here we run the latest version of the master branch of the wiki software and all extensions. The code on beta labs is updated automatically every few minutes, and the databases about every hour or so. On the beta cluster we test the most recent software features that are assumed to be viable. We do not host wild experiments or unsupported features on beta labs, but only the latest version of the master branch of features to be deployed to production. At the moment, we do the majority of testing using desktop and mobile version of English Wikipedia, and desktop version of Wikimedia Commons.

The other test environment is "test2wiki" or "test2". This environment is a node on the production wiki cluster, a peer wiki to English Wikipedia, Commons, etc. This environment is the first target for a potentially deployable branch of all the code, and is updated weekly, one week ahead of all the production wikis. At the moment, we do the majority of testing using desktop and mobile version of the site. The deployment schedule for test2wiki (which is in "group0") and the production wikis is always available on the Deployment wikitech page.

Contributing to testing: maintaining our test environments is a big job. If you are interested in contributing, Labs is the place to start.

Resources
The QA mail list is a great resource not only for testing Wikipedia software but also for general discussion of QA and testing practice

We do issue tracking in Phabricator

Our source code is in Gerrit and is mirrored at GitHub.

We are on IRC in on freenode.

Contributing to testing: there is a conversation about QA and testing going on in these channels all the time. Feel free to join, ask questions, find out.

Step-by-step instructions to get started: Quality assurance/gettingstarted

More information
Because our QA effort is spread across Wikimedia Engineering we are not always 100% engaged with every project. We have a guide on when to use QA services.

We also collaborate with Bug management, Continuous integration, Wikimedia Labs and the testing plans of other Wikimedia Engineering teams.