Run karma test on CI against several browsers
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:
makebuild/node_modules/karma/bin/karma start tests/karma.config.js(or usemake test-js-debugafter reviewing https://github.com/owncloud/core/pull/27222)- Open
localhost:9876in Firefox - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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