owncloud / owncloud/QA

Run karma test on CI against several browsers

Open
#385 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
16
Forks
16
Avg merge
11h 11m
Merged PRs (30d)
1

Description

With the karma runner it is possible to run the JS tests against more than just PhantomJS.

The challenge is to have a virtual X server run on CI to which the different browsers can connect to.

To run against Firefox locally for example:

  1. make
  2. build/node_modules/karma/bin/karma start tests/karma.config.js (or use make test-js-debug after reviewing https://github.com/owncloud/core/pull/27222)
  3. Open localhost:9876 in Firefox
  4. Wait for the tests to run and observe the result on the console

There are settings for karma to automatically start and stop browsers.

@owncloud/qa @DeepDiver1975 @tboerger something for later

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/karma.config.js and the local command build/node_modules/karma/bin/karma start tests/karma.config.js, then review how make test-js-debug invokes it. Check the repository's CI setup and determine how a virtual X server and multiple browsers can run there. Done means the JavaScript tests execute against several browsers on CI and report their results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
ci-cd, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.