stryker-mutator / stryker-html-reporter

A HTML reporter for stryker - the JavaScript mutation testing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting a lot of 404 errors in the html report

michaelpcote opened this issue · comments

I've run into an issue that is causing a lot of 404 errors that makes the html reports unusable.

The issue occurs whenever the report is able to condense a path to something like:

parentDir/childDir

This happens because there is only 1 child directory or because only 1 child directory has .js files. So, for instance, because we group our features together something like this:

feature -
- js (contains directives, services, controllers)
- css
- partials

It is basically formatting incorrectly every time. The issue is that the report on the upper level will show

feature/js - and when you click into that link it then shows the js directory and all the files completely unstyled. The index.html for that file then is trying to reference the bootstrap and stryker.js files 1 level up, like "../bootstrap" when it should actually be "../../bootstrap".

I think a lot of people may run into a similar issue.

Thanks,
Mike

+1 I'm running into this issue as well

Well take a look at this, thanks for reporting!

Any update on this issue? Should it be reposted to main Stryker issue list?

Yeah, we migrated the stryker-html-reporter into the main stryker repository. I'm planning a complete rewrite of this reporter using the new onScoreResultCalculated reporter callback and typed-html.

That should simplify the code a lot and i'll also look into fixing this issue.

@nicojs Thanks for the update and help in addressing this issue. 👍

I've reposted this to the main stryker repo here: stryker-mutator/stryker-js#335

@j-truax Thanks! I'll close this issue for now as we'll fix it in the stryker repo.