Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pipeline {
agent any
environment {
GIT_REPO = '202212_Equipo11'
GIT_REPO = '202212_Equipo10'
GIT_CREDENTIAL_ID = '277a9d46-cf19-4119-afd9-4054a7d35151'
SONARQUBE_URL = 'http://172.24.100.52:8082/sonar-misovirtual'
}
Expand Down Expand Up @@ -80,4 +80,3 @@ pipeline {
}
}
}

3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"styles": ["src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"],
"scripts": []
},
"configurations": {
Expand Down
41 changes: 41 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@angular/platform-browser": "~13.3.0",
"@angular/platform-browser-dynamic": "~13.3.0",
"@angular/router": "~13.3.0",
"bootstrap": "^5.2.2",
"exec-sh": "^0.4.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
Expand Down
53 changes: 49 additions & 4 deletions reports/ut_report.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,52 @@
<testExecutions version="1">
<file path="src/app/book/book.service.spec.ts">
<testCase name="Service: Book should ..." duration="28">
<failure message="Error">NullInjectorError: R3InjectorError(DynamicTestModule)[BookService -&gt; HttpClient -&gt; HttpClient]:
NullInjectorError: No provider for HttpClient!
error properties: Object({ ngTempTokenPath: null, ngTokenPath: [ 'BookService', 'HttpClient', 'HttpClient' ] })
NullInjectorError: R3InjectorError(DynamicTestModule)[BookService -&gt; HttpClient -&gt; HttpClient]:
NullInjectorError: No provider for HttpClient!
at NullInjector.get (node_modules/@angular/core/fesm2015/core.mjs:11120:1)
at R3Injector.get (node_modules/@angular/core/fesm2015/core.mjs:11287:1)
at R3Injector.get (node_modules/@angular/core/fesm2015/core.mjs:11287:1)
at injectInjectorOnly (node_modules/@angular/core/fesm2015/core.mjs:4765:1)
at ɵɵinject (node_modules/@angular/core/fesm2015/core.mjs:4769:1)
at Object.BookService_Factory [as factory] (ng:///BookService/ɵfac.js:4:39)
at R3Injector.hydrate (node_modules/@angular/core/fesm2015/core.mjs:11457:1)
at R3Injector.get (node_modules/@angular/core/fesm2015/core.mjs:11276:1)
at NgModuleRef.get (node_modules/@angular/core/fesm2015/core.mjs:21832:1)
at TestBedRender3.inject (node_modules/@angular/core/fesm2015/testing.mjs:1719:1)
</failure>
</testCase>
</file>
<file path="src/app/book/book-list/book-list.component.spec.ts">
<testCase name="BookListComponent should create" duration="151">
<failure message="Error">NullInjectorError: R3InjectorError(DynamicTestModule)[BookService -&gt; HttpClient -&gt; HttpClient]:
NullInjectorError: No provider for HttpClient!
error properties: Object({ ngTempTokenPath: null, ngTokenPath: [ 'BookService', 'HttpClient', 'HttpClient' ] })
NullInjectorError: R3InjectorError(DynamicTestModule)[BookService -&gt; HttpClient -&gt; HttpClient]:
NullInjectorError: No provider for HttpClient!
at NullInjector.get (node_modules/@angular/core/fesm2015/core.mjs:11120:1)
at R3Injector.get (node_modules/@angular/core/fesm2015/core.mjs:11287:1)
at R3Injector.get (node_modules/@angular/core/fesm2015/core.mjs:11287:1)
at injectInjectorOnly (node_modules/@angular/core/fesm2015/core.mjs:4765:1)
at ɵɵinject (node_modules/@angular/core/fesm2015/core.mjs:4769:1)
at Object.BookService_Factory [as factory] (ng:///BookService/ɵfac.js:4:39)
at R3Injector.hydrate (node_modules/@angular/core/fesm2015/core.mjs:11457:1)
at R3Injector.get (node_modules/@angular/core/fesm2015/core.mjs:11276:1)
at NgModuleRef.get (node_modules/@angular/core/fesm2015/core.mjs:21832:1)
at Object.get (node_modules/@angular/core/fesm2015/core.mjs:21509:1)

Error: Expected undefined to be truthy.
at &lt;Jasmine&gt;
at UserContext.&lt;anonymous&gt; (src/app/book/book-list/book-list.component.spec.ts:26:23)
at _ZoneDelegate.invoke (node_modules/zone.js/fesm2015/zone.js:372:1)
at ProxyZoneSpec.onInvoke (node_modules/zone.js/fesm2015/zone-testing.js:287:1)
</failure>
</testCase>
</file>
<file path="src/app/app.component.spec.ts">
<testCase name="AppComponent should have as title 'base-project'" duration="118"/>
<testCase name="AppComponent should create the app" duration="14"/>
<testCase name="AppComponent should render title" duration="13"/>
<testCase name="AppComponent should have as title 'base-project'" duration="37"/>
<testCase name="AppComponent should create the app" duration="15"/>
</file>
</testExecutions>
</testExecutions>
Loading