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

Karma Reporter #71

Closed
zdfs opened this issue Dec 9, 2015 · 13 comments
Closed

Karma Reporter #71

zdfs opened this issue Dec 9, 2015 · 13 comments

Comments

@zdfs
Copy link
Collaborator

zdfs commented Dec 9, 2015

@LeaVerou has mentioned it would be nice to have an HTML reporter where users can re-run the tests in the browser. I was looking at something like this: https://www.npmjs.com/package/karma-jasmine-html-reporter.

@dperrymorrow - Seen this anywhere with karma? Ideas.

@zdfs
Copy link
Collaborator Author

zdfs commented Dec 10, 2015

I don't see anything out there that works like QUnit, where you can re-run the tests in the browser.

Which begs the question, how important is this?

@dperrymorrow
Copy link
Collaborator

well if you reload the Chrome browser it launches, it does re-run the tests.
Are we looking to have the tests suite as a page on the gh-pages site? Is that what you mean?

@zdfs
Copy link
Collaborator Author

zdfs commented Dec 10, 2015

@dperrymorrow - Yeah. That's the use case.

@dperrymorrow
Copy link
Collaborator

Using karma-htmlfile-reporter I'm able to generate a html file of the result of a Karma run.
Its not actually running the suite, but lists out all the tests ect...
bliss unit tests - bliss unit tests 2015-12-09 16-52-47

You could wire up an html page for the tests, but that would probally require checking the npm_modules dir into the project.

@zdfs
Copy link
Collaborator Author

zdfs commented Dec 10, 2015

Committing the node modules seems problematic.

@dperrymorrow
Copy link
Collaborator

i would agree,
only thing i can think of at the moment would be to have a gulp task that makes a concatenated minified js file for the html test page from the src in of node_modules.

could work...

@zdfs
Copy link
Collaborator Author

zdfs commented Dec 10, 2015

If you wanted to spend some time seeing if something like could work, it might be worth releasing. Other than that, the only path forward I'm aware of is rewriting the tests in QUnit.

@dperrymorrow
Copy link
Collaborator

if we go down this road its just going to further complicate #59 though isn't it?

@zdfs
Copy link
Collaborator Author

zdfs commented Dec 10, 2015

Possibly. Just trying to figure out what our options are. @LeaVerou: how important is this to you?

@zdfs
Copy link
Collaborator Author

zdfs commented Dec 11, 2015

Closing this out for #82.

@zdfs zdfs closed this as completed Dec 11, 2015
@dperrymorrow
Copy link
Collaborator

ok i can always take a stab later at building a gulp task to create a test web page.

@dperrymorrow
Copy link
Collaborator

IMO i think having CI in multiple browsers might be of more priority, with something like SauceLabs

@zdfs
Copy link
Collaborator Author

zdfs commented Dec 11, 2015

I think Browserstack or SauceLabs is a good idea. We can get a free account since this is open source.

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