aboutsummaryrefslogtreecommitdiff
path: root/src/formats.ts
Commit message (Collapse)AuthorAgeFilesLines
* #7 Add Cobertura formatKevin J Hoerr2021-09-161-2/+26
|
* Refactor coverage upload for ease of new formatsKevin J Hoerr2021-09-121-2/+4
|
* Add target filename to formatKevin J Hoerr2021-09-121-1/+3
|
* Remove inaccessible code branchKevin J Hoerr2021-09-121-2/+1
|
* These changes moved a lot of the startup async to run in a streamlinedKevin J Hoerr2020-04-261-5/+5
| | | | | | | | | | async init function. This brings more logic "to light", so it should probably have unit tests added to check the edge cases. As a bonus, no async runs as a result of route initialization. Speaking of routes, it might be nice to trim down the route calls themselves with async functions, if possible. The upload routes in particular use a lot of async. Just a note for the future.
* #4 Lower brightness of generated report badgesKevin J Hoerr2019-12-211-9/+9
|
* Use nullish-coalescing op for env var assignmentsKevin J Hoerr2019-12-121-1/+1
|
* Fix color matcher for inbetween step valuesKevin J Hoerr2019-12-121-2/+4
|
* Add Jest to handle unit and integration testingKevin J Hoerr2019-12-111-3/+6
| | | | | | | | | | | | Wrote a couple of initial unit tests for some of the logic-heavy points in the application, being logger.ts and formats.ts. Evidently colorize() causes an error when transforming on the Format object that's returned. Since that is specific to the Console transport anyways, I just moved it to the transport, since the unit test was only testing the passed label in the returned Formats object. Also the bash template has some issues that I didn't test (oops), so those are fixed now.
* Add linting to project using EslintKevin J Hoerr2019-12-091-17/+22
|
* Promisify data flow in POST requestKevin J Hoerr2019-12-091-10/+11
|
* Overhaul error handling for controllersKevin J Hoerr2019-12-081-2/+4
| | | | | | | | | | | This change fixes various issues with the GET endpoints to return more accurate error messages. It adds business logic error objects that are returned in a union type in the controllers. This change should help separate the business logic from the actual errors from upstream services. There may be required changes still with handling those upstream errors via Promises. Integration tests should be added to verify issues.
* Implement file handling for reportsKevin J Hoerr2019-11-291-1/+1
|
* Implement report parsing for TarpaulinKevin J Hoerr2019-11-291-2/+24
| | | | | | | | | | The generated Tarpaulin HTML report does not have stats to parse via the DOM - the data is injected via a script tag, which only has line-by-line coverage, though it includes statistics for each file. The total coverage is counted by summing the covered/coverable stats reported for each file. Also, the bad version for express is fixed, and messages are included for errors that occur for the POST endpoint.
* Add Prettier to projectKevin J Hoerr2019-11-231-30/+36
| | | | Signed-off-by: Kevin J Hoerr <kjhoerr@protonmail.com>
* Generate report badge with color gradientKevin J Hoerr2019-11-231-2/+15
|
* Move TS files into /srcKevin J Hoerr2019-11-101-0/+33