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

Add a test status & coverage reporter for Teamcity #47

Merged
merged 3 commits into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .sonarcloud.properties
Empty file.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[![TeamCity build (develop)](https://teamcity.jetbrains.com/app/rest/builds/aggregated/strob:%28locator:%28buildType:%28id:OpenSourceProjects_AbsaOSS_SplineUi_AutomaticBuilds%29,branch:develop%29%29/statusIcon.svg)](https://teamcity.jetbrains.com/viewType.html?buildTypeId=OpenSourceProjects_AbsaOSS_SplineUi_AutomaticBuilds&branch=develop&tab=buildTypeStatusDiv)
[![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=AbsaOSS_spline-ui&metric=alert_status)](https://sonarcloud.io/dashboard?id=AbsaOSS_spline-ui)
[![SonarCloud Maintainability](https://sonarcloud.io/api/project_badges/measure?project=AbsaOSS_spline-ui&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=AbsaOSS_spline-ui)
[![SonarCloud Reliability](https://sonarcloud.io/api/project_badges/measure?project=AbsaOSS_spline-ui&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=AbsaOSS_spline-ui)
[![SonarCloud Security](https://sonarcloud.io/api/project_badges/measure?project=AbsaOSS_spline-ui&metric=security_rating)](https://sonarcloud.io/dashboard?id=AbsaOSS_spline-ui)

# Spline UI

## Config
Expand Down
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ module.exports = {
'transformIgnorePatterns': [
'node_modules/(?!@ngrx)'
],
"testResultsProcessor": "jest-teamcity-reporter",
'coverageReporters': [
'text',
'html',
'cobertura'
'cobertura',
'teamcity'
],
'moduleNameMapper': {
"/spline-api/": "<rootDir>/projects/spline-api/src/public-api",
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "ng serve --open --port 4300",
"start:localhost": "ng serve -c localhost --open --port 4300",
"build": "ng build --prod --deploy-url=../ --base-href=/app/",
"test": "jest --passWithNoTests",
"test": "jest --passWithNoTests --coverage",
"lint": "npm run lint:ts && npm run lint:styles",
"lint:ts": "eslint src/**/*.ts projects/**/*.ts",
"lint:styles": "stylelint src/**/*.scss",
Expand Down Expand Up @@ -73,6 +73,7 @@
"husky": "^4.3.0",
"jest": "^25.5.4",
"jest-preset-angular": "^8.1.3",
"jest-teamcity-reporter": "^0.9.0",
"lint-staged": "^10.1.3",
"ng-packagr": "^9.0.0",
"protractor": "~5.4.3",
Expand Down