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

How to use Blanket.js in test files loaded with Require.js? #562

Open
joaorodr84 opened this issue May 19, 2016 · 2 comments
Open

How to use Blanket.js in test files loaded with Require.js? #562

joaorodr84 opened this issue May 19, 2016 · 2 comments

Comments

@joaorodr84
Copy link

I am testing a JavaScript API using QUnit and BlanketJS and I separated it in multiple files for a better organization. I use RequireJS to load the files of the API.

The problem is, now I can't put the BlanketJS data-cover attribute on the JS files I want covered because I am no longer loading them with the common <script> tag. So this (below) is now impossible:

<script src="js/libs/api/api.js" data-cover></script>

How should I do to enable the coverage in my files?

@narayanagowdas
Copy link

Facing same issue someone please answer.

@alex-seville
Copy link
Owner

There are some examples here:
https://github.com/alex-seville/blanket/tree/master/test/requirejs

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

No branches or pull requests

3 participants