ThaNarie / tslint-teamcity-reporter

A TSLint formatter/reporter for use in TeamCity
MIT License
4 stars 6 forks source link

Total of errors #8

Open teresitaya opened 5 years ago

teresitaya commented 5 years ago

Hello, this plugin is very useful for me, but I need you to give me the total number of errors and the total warnings of all the files at the end of each execution. Can you help me? Thanks

ThaNarie commented 5 years ago

Hi @teresitaya, this reporter will add two statistics to teamcity for each run, the total error and total warning count.

These can be used like this: https://confluence.jetbrains.com/display/TCD18/Statistic+Charts

By default TeamCity will display some basic charts, but you can add your own and select these two statistics to show up in there.

teresitaya commented 5 years ago

TeamCity

Hi, thanks for the help, but I don't understand how can I apply to my enviroment. I'm using VSCode and tslint-teamcity-reporter is executed as a gulp task. The result I get is an cli output. How can I achive the statics I want in this case? Thanks again

ThaNarie commented 5 years ago

This reporter is only useful when ran from within TeamCity during a build. When doing that, those statistics will automatically be reported and can be show in a custom graph.

When running this locally, you probably want to use a normal reporter. You can do this by configuring two different gulp tasks, one for local, and one for TeamCity.