--
You received this message because you are subscribed to the Google Groups "testacular" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testacular+...@googlegroups.com.
To post to this group, send email to testa...@googlegroups.com.
Visit this group at http://groups.google.com/group/testacular?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I'm having the same issue. I get a blank coverage report with 100% and no files. My config looks like this:// base path, that will be used to resolve files and excludebasePath = '';// list of files / patterns to load in the browserfiles = ['source/modules/**/*.js',];// set pre-processor files neededpreprocessors = {'**/source/modules/**/*.js': 'coverage'};// test results reporter to use// possible values: 'dots', 'progress', 'junit'reporters = ['coverage'];
On Wednesday, March 20, 2013 6:05:42 PM UTC-4, Michael Bielski wrote:Good to hear. Looking forward to it.
--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users?hl=en.
I have another config file that runs the test using junit and progress as reporters and the test run fine. The reason for this is that I have the coverage as part of a grunt documentation task I ran every now and then while the test run whenever any of the files being tested change.I tried changing the basePath, giving it the absolute folder path but it is already adding it. For example, I get an error saying that: /Users/carlosrodriguez/project/Users/carlosrodrigues/projects/source/modules/**/*.js doesn't match any files. If I leave the baseBath blank, I don't get this warning.
On Friday, March 29, 2013 6:05:14 PM UTC-4, Michael Bielski wrote:Without some other kind of reporter, how can you tell if your tests are even running? Also, with your basePath set as it is, I think Karma will expect your files to be at c:\source\modules\**\*.js. If they are not at the location, that may be your trouble.
--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users?hl=en.
Of course. Coverage can't run on its own, it needs something to run the tests so it can generate the coverage report.I got it to work by simply adding progress reporter.Thanks a lot
On Friday, March 29, 2013 6:05:14 PM UTC-4, Michael Bielski wrote:
Without some other kind of reporter, how can you tell if your tests are even running? Also, with your basePath set as it is, I think Karma will expect your files to be at c:\source\modules\**\*.js. If they are not at the location, that may be your trouble.
--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users?hl=en.
The progress reporter actually fix it. The issue was that I was trying to un coverage on its own with no other reporter so there were no tests running.My config file went from:
// base path, that will be used to resolve files and excludebasePath = '';// list of files / patterns to load in the browserfiles = ['source/modules/**/*.js',];// set pre-processor files neededpreprocessors = {'**/source/modules/**/*.js': 'coverage'};// test results reporter to use// possible values: 'dots', 'progress', 'junit'reporters = ['coverage'];
tobasePath = ''; // list of files / patterns to load in the browser files = [ JASMINE, JASMINE_ADAPTER, './source/ui/lib/jquery/jquery.min.js', './source/ui/lib/lodash/lodash.min.js', './source/ui/lib/handlebars/handlebars.min.js', './source/ui/lib/jyoutube/jyoutube.js', './source/ui/lib/jgfeed/jgfeed.js', //'./source/modules/partials/partials.shtml', './source/modules/**/*.js', './source/test/**/*.js' ]; // set pre-processor files needed preprocessors = { '**/source/modules/**/*.js': 'coverage' }; // test results reporter to use // possible values: 'dots', 'progress', 'junit' reporters = ['progress','coverage'];Aside from adding the progress reporter I also added the files needed for testing. Note that I had tried this before when using just the coverage reporter and was getting the same empty results.
[preprocessor.coverage]: [39mProcessing "/var/lib/jenkins/jobs/HarnessJS/workspace/source/aaaaa/bbbbb/cccc/public/js/internal/init.js"
Visit this group at http://groups.google.com/group/karma-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/karma-users/72af4fd6-06a0-4c36-a62a-8b46f0126482%40googlegroups.com.