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

Unit files not included #197

Closed
FrancescoBorzi opened this issue Sep 23, 2016 · 2 comments
Closed

Unit files not included #197

FrancescoBorzi opened this issue Sep 23, 2016 · 2 comments

Comments

@FrancescoBorzi
Copy link

From documentation:

The files option can be extended "per-target" in the typical way Grunt handles files:

karma: {
  options: {
    files: ['lib/**/*.js']
  },
  unit: {
    files: [
      { src: ['test/**/*.js'] }
    ]
  }
}

in my case I have:

karma: {
  options: {
    files: ['FileA.js', 'FileB.js']
  },
  myUnit: {
    files: [
      { src: ['FileC.js'] }
    ]
  }
}

and it is working. The problem is that the FileB.js should be only included in myUnit so I tried to move it, this way:

karma: {
  options: {
    files: ['FileA.js']
  },
  myUnit: {
    files: [
      { src: ['FileC.js'] },
      { src: ['FileB.js'] }
    ]
  }
}

but it does not work.

For some reasons unknown to me, the FileB.js is actually included only if I put it in the main configuration, if I place it under the myUnit configuration it is not included at all.

Using:

grunt-cli v1.2.0
grunt v1.0.1
grunt-karma": "^2.0.0
jasmine-core": "^2.5
karma": "^1.1.2
karma-babel-preprocessor": "^6.0.1
karma-chrome-launcher": "^1.0.1
karma-cli": "^1.0.1
karma-jasmine": "^1.0.2
karma-junit-reporter": "^1.1.0
karma-phantomjs-launcher": "^1.0.2
karma-sourcemap-loader": "^0.3.7
karma-webpack": "^1.8.0
@Krinkle
Copy link
Collaborator

Krinkle commented Aug 27, 2018

@ShinDarth I am unable to reproduce this issue with the current versions of grunt-karma and karma. Could you try this again on a current version?

@FrancescoBorzi
Copy link
Author

sorry, it was two years ago and I don't have that source code anymore

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

No branches or pull requests

2 participants