This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
thelounge
Watch
2
Star
0
Fork
You've already forked thelounge
0
mirror of
https://github.com/thelounge/thelounge
synced
2024-11-22 12:03:11 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
dd24cb1300
thelounge
/
test
/
.nycrc-report.json
5 lines
93 B
JSON
Raw
Normal View
History
Unescape
Escape
Instrument client code before running tests Despite being a bit gross to look at, this brings a few advantages: - Tests are now closer to what actually runs, so more likely to find broken stuff. - We can start using things that were so far Webpack-only or browser-only, like ES6 imports, loading Handlebars templates, etc. - We open ourselves to browser testing (there is some work to do, but that would be a necessary step). - We improve the client/server separation, by making it possible to run them independently I do some extra steps around coverage: now we have 2 reports (client + server), so I have an extra step to combine them (the `nyc report` part). This is strictly to keep feature parity (the coverage report of this code is effectively the same as before), but in the near future, we might want to keep both reports separate, for example to continue separating client/server. Another reason would be to use something like Codecov, which I believe has the ability to have multiple reports. This is down the road though, our coverage is not good enough to make hosting them somewhere be useful (I think). A few extras with this commit: - Coverage summary is displayed when tests are run (this is not slowing down tests) - Tests check for leaks (see https://mochajs.org/#--check-leaks) - Tests now output with the `dot` reporter. This is nice as `npm test` runs in parallel, the whole output holds in a few lines instead of spanning over multiple screens.
2017-11-22 01:21:51 +00:00
{
Update dependency nyc to v13.1.0
2018-10-14 10:12:19 +00:00
"temp-dir"
:
"./node_modules/.cache/nyc_output"
,
Set up Prettier on md, html, json, and yaml
2019-07-17 07:45:34 +00:00
"reporter"
:
[
"lcov"
,
"text-summary"
]
Instrument client code before running tests Despite being a bit gross to look at, this brings a few advantages: - Tests are now closer to what actually runs, so more likely to find broken stuff. - We can start using things that were so far Webpack-only or browser-only, like ES6 imports, loading Handlebars templates, etc. - We open ourselves to browser testing (there is some work to do, but that would be a necessary step). - We improve the client/server separation, by making it possible to run them independently I do some extra steps around coverage: now we have 2 reports (client + server), so I have an extra step to combine them (the `nyc report` part). This is strictly to keep feature parity (the coverage report of this code is effectively the same as before), but in the near future, we might want to keep both reports separate, for example to continue separating client/server. Another reason would be to use something like Codecov, which I believe has the ability to have multiple reports. This is down the road though, our coverage is not good enough to make hosting them somewhere be useful (I think). A few extras with this commit: - Coverage summary is displayed when tests are run (this is not slowing down tests) - Tests check for leaks (see https://mochajs.org/#--check-leaks) - Tests now output with the `dot` reporter. This is nice as `npm test` runs in parallel, the whole output holds in a few lines instead of spanning over multiple screens.
2017-11-22 01:21:51 +00:00
}
Reference in a new issue
Copy permalink