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

feat(test): extend karma.conf.js w/ kjhtml reporter #4567

Closed
wants to merge 1 commit into from

Conversation

wardbell
Copy link
Contributor

@wardbell wardbell commented Feb 9, 2017

Add karma-jasmine-html-reporter (kjhtml) which displays Jasmine test runner in the test browser.

We use this in docs testing chapter so users can visualize their tests in the test browser rather than see a blank page. Convenient for exploring broken tests and re-running certain specific tests.

image

Has no apparent ill-effects on CI. We run these tests with this config in docs CI.

Deliberately excluded from the test/code-coverage combo ... for no great reason other than I thought someone who was running with code-coverage wouldn't want it.

wardbell added a commit to IdeaBlade/angular that referenced this pull request Feb 10, 2017
wardbell added a commit to IdeaBlade/angular that referenced this pull request Feb 13, 2017
@filipesilva
Copy link
Contributor

I think it would be a better reporter than just having a blank screen.

@@ -31,8 +35,8 @@ module.exports = function (config) {
environment: 'dev'
},
reporters: config.angularCli && config.angularCli.codeCoverage
? ['progress', 'karma-remap-istanbul']
: ['progress'],
? ['progress', 'karma-remap-istanbul'] //, 'kjhtml']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM aside from the leftoever comment.

@johnpapa
Copy link
Contributor

LGTM

@wardbell wardbell force-pushed the karma-conf-add-kjhtml branch 3 times, most recently from 0ba7345 to 2709911 Compare February 14, 2017 19:25
karma-jasmine-html-reporter (kjhtml) displays Jasmine test runner in the test browser.
@wardbell wardbell deleted the karma-conf-add-kjhtml branch February 14, 2017 21:08
@phanikirancdonthi
Copy link

will it be possible to view the report at a later point in time ? (like the coverage reports)

As part our CI, we have to run our unit tests using 'Phantom JS' & we would like to review the results later

asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this pull request Apr 12, 2017
karma-jasmine-html-reporter (kjhtml) displays Jasmine test runner in the test browser.

Close angular#4567
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants