question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ng test` should accept argument for karma configuration file

See original GitHub issue

As discussed with @hansl, currently there is no way to specify the location of karma.conf.js when running ng test. We should allow this to be specified so that angular-cli can be used with projects that do not place config files in their default locations.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:4
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
krotscheckcommented, Jan 6, 2017

An example scenario for multiple test configs:

  • karma.conf.js - Regular unit tests, run in Phantom or whatever browsers are passed in.
  • karma.browserstack.conf.js - CI-run automated tests against all browsers in our preflight and postflight jobs.
0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng test - Angular
Option Description Value Type Defau... ‑‑browsers Override which browsers tests are run against. string ‑‑code‑coverage Output a code coverage report. boolean false ‑‑code‑coverage‑exclude Globs to exclude...
Read more >
Perform single tests using Karma and Angular CLI when tests ...
The basic idea is to pass an additional parameter to karma and change the way this “selects” the .spec.ts files to be executed....
Read more >
Configuration File - Karma
The Karma configuration file can be written in JavaScript, CoffeeScript, or TypeScript and is loaded as a regular Node.js module. Unless provided as...
Read more >
Angular CLI - ng test Command - Tutorialspoint
Angular CLI - ng test Command, This chapter explains the syntax, argument and ... 7, --karmaConfig=karmaConfig, The name of the Karma configuration file....
Read more >
ng test - Angular
json workspace configuration file. When a project name is not supplied, it will execute for all projects. Arguments. Argument, Description. < ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found