-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng test
should accept argument for karma configuration file
#183
Comments
Actually the solution would not be argument but a metadata with sensible default. I'll work on this. |
Does this make a lot of sense given that the file is generated by the CLI and will therefore be in a consistent location? |
Projects might want to move it (e.g. Material2 has it in |
Point taken. |
Yeah I'm not 100% sure about multiple test files, but we can revisit. |
The option
|
Although, riscie, those aliases/options do not appear to work. |
An example scenario for multiple test configs:
|
This is something I can take a look at over the next few days. |
Any update? |
@hansl @Brocco I'm also all for possible multiple config files. I know, I'm always coming up with very specific use cases, but that's all I have :D As we're using angular-cli in our trainings, we want to be able to run tests normally using
But then there's another testsuite for us training that we want to run to verify our labs are working. So then something like
Would be really need. @krotscheck 's scenario also seems very valid to me. |
Is this possible still? |
@lohiarahul |
the build doesn't bundle up the "Alternative Config File" and the CI process fails. Any way to include the other file in the bundle? |
@lohiarahul why want to bundle karma config ? |
i have 2 featured modules, which I would like to unit test seperately . I am using angular-cli , angular 5. The build will be one , where 2 applications will be shown via the lazy loading . I want to have seperate testing for these modules. Can some one guide me how to do it ? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
As discussed with @hansl, currently there is no way to specify the location of
karma.conf.js
when runningng 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.The text was updated successfully, but these errors were encountered: