karma-runner / karma-runner/karma

Feature Request: filter included/served files based on browser

Open
#1,092 2 comments 0 reactions 0 assignees View on GitHub
help wanted type: backlog type: feature
Dominant language
JavaScript
Stars
12k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

This might be a duplicate --- I searched but there were a lot of issues, hard to narrow it down effectively and quickly.

So, it's possible to work around this with multiple karma configurations, but it would be really nice if you could say "load file X if the browser is not Y or Z, otherwise load browser Ε".

Use case: loading sinon-ie as well as sinon, so that when IE runs would load the appropriate version, and non-IE runs would also load the appropriate version. This would be a kind of filtering behaviour, I guess.

I'm not really expecting this to be implemented, but it would be nice, and a lot more elegant than having per-browser karma configurations.

Contributor guide

Open the contributing guide

Research direction

Start by tracing Karma's configuration path for included and served files, then examine how browser selection is represented. Define the filtering behavior for IE and non-IE runs, including how multiple matching files are handled, and verify that the existing per-browser configuration workaround remains unnecessary.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.