Skip to content
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

Code coverage for child Project #1367

Closed
rohitagg28 opened this issue Apr 2, 2015 · 2 comments
Closed

Code coverage for child Project #1367

rohitagg28 opened this issue Apr 2, 2015 · 2 comments
Labels

Comments

@rohitagg28
Copy link

I am having two projects on my machine named Proj1 and Proj2 using Require.js and Jasmine for the test-cases .
The Proj2 is having dependencies(library files,modules) on Proj1 ,so Proj2 is child node of Proj1 .

I have got the code-coverage of Proj1 by making the test-main.js and karma.conf.js files in it and run karma from terminal .

But now I want the code-coverage of Proj2 ,so I make test-main.js and karma.conf.js files in it but as its having the dependecies on Proj1 , so that dependent files are not getting when I ran karma on terminal . So how should I include/link the Proj1 files with Proj2 and get the code-coverage .

@dignifiedquire
Copy link
Member

This depends a lot on how you actually include the files from Proj1 into Proj2. The simplest way that I can imagine is to put the karma.conf of Proj2 into the top level folder and reference things in a nested way.

@dignifiedquire
Copy link
Member

For questions and support please use the mailing list or Gitter. The issue tracker is for bug reports and feature discussions only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants