-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Uniandes-isis2603/Pruebas-itinerario-y-re…
…comendacion Pruebas Nathalia
- Loading branch information
Showing
9 changed files
with
11,990 additions
and
141 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,73 @@ | ||
<testExecutions version="1"> | ||
<file path="src/app/recomendacion/recomendacion-detalle/recomendacion-detalle.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="2"/> | ||
<file path="src/app/proveedor/proveedor-list/proveedor-list.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de longitud " duration="514"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de id " duration="38"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de longitud " duration="299"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de latitud " duration="219"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="79"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de latitud " duration="207"/> | ||
</file> | ||
<file path="src/app/seguro/seguro-detalle/seguro-detalle.component.spec.ts"> | ||
<testCase name="SeguroDetalleComponent should create" duration="1"/> | ||
</file> | ||
<file path="src/app/proveedor/proveedor-list/proveedor-list.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="11"/> | ||
</file> | ||
<file path="src/app/itinerario/itinerario-detalle/itinerario-detalle.component.spec.ts"> | ||
<testCase name="ItinerarioDetalleComponent should have a titulo alojamiento" duration="217"/> | ||
<testCase name="ItinerarioDetalleComponent should create" duration="11"/> | ||
<testCase name="ItinerarioDetalleComponent should have a día" duration="13"/> | ||
<testCase name="ItinerarioDetalleComponent should have a titulo alimentacion" duration="10"/> | ||
<testCase name="ItinerarioDetalleComponent should have a alojamiento" duration="11"/> | ||
<testCase name="ItinerarioDetalleComponent should have a alimentacion" duration="10"/> | ||
</file> | ||
<file path="src/app/app.component.spec.ts"> | ||
<testCase name="AppComponent should create the app" duration="48"/> | ||
<testCase name="AppComponent should have as title 'museums-front'" duration="6"/> | ||
<testCase name="AppComponent should render title" duration="9"/> | ||
<testCase name="AppComponent should render title" duration="108"/> | ||
<testCase name="AppComponent should create the app" duration="205"/> | ||
<testCase name="AppComponent should have as title 'museums-front'" duration="53"/> | ||
</file> | ||
<file path="src/app/recomendacion/recomendacion-detalle/recomendacion-detalle.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<file path="src/app/proveedor/proveedor-list/proveedor-list.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="698"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de longitud " duration="23"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de id " duration="9"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de latitud " duration="8"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de longitud " duration="9"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="7"/> | ||
<testCase name="ProveedorDetalleComponent Deberia contener un atributo de latitud " duration="8"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
</file> | ||
<file path="src/app/seguro/seguro-detalle/seguro-detalle.component.spec.ts"> | ||
<testCase name="SeguroDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="5"/> | ||
</file> | ||
<file path="src/app/recomendacion/recomendacion-detalle/recomendacion-detalle.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="2"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="97"/> | ||
<testCase name="RecomendacionDetalleComponent should have a titulo indumentaria" duration="57"/> | ||
<testCase name="RecomendacionDetalleComponent should have a titulo equipo" duration="16"/> | ||
<testCase name="RecomendacionDetalleComponent should have a equipo" duration="7"/> | ||
<testCase name="RecomendacionDetalleComponent should create" duration="47"/> | ||
<testCase name="RecomendacionDetalleComponent should have a indumentaria" duration="20"/> | ||
</file> | ||
<file path="src/app/proveedor/proveedor-list/proveedor-list.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
</file> | ||
<file path="src/app/seguro/seguro-list/seguro-list.component.spec.ts"> | ||
<testCase name="SeguroListComponent should create" duration="1"/> | ||
</file> | ||
<file path="src/app/recomendacion/recomendacion-detalle/recomendacion-detalle.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="2"/> | ||
<file path="src/app/proveedor/proveedor-list/proveedor-list.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="1"/> | ||
</file> | ||
<file path="src/app/expedicion/expedicion-detalle/expedicion-detalle.component.spec.ts"> | ||
<testCase name="ExpedicionDetalleComponent should have a hora de llegada" duration="25"/> | ||
<testCase name="ExpedicionDetalleComponent should have a nombre" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a dificultad" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a costo" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a lugar salida" duration="9"/> | ||
<testCase name="ExpedicionDetalleComponent should have a description element" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a fecha de inicio" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a fecha final" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a hora de salida" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should create" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a duracion" duration="7"/> | ||
<testCase name="ExpedicionDetalleComponent should have a lugar llegada" duration="6"/> | ||
<testCase name="ExpedicionDetalleComponent should have a fecha de inicio" duration="195"/> | ||
<testCase name="ExpedicionDetalleComponent should have a lugar salida" duration="137"/> | ||
<testCase name="ExpedicionDetalleComponent should have a nombre" duration="72"/> | ||
<testCase name="ExpedicionDetalleComponent should have a fecha final" duration="127"/> | ||
<testCase name="ExpedicionDetalleComponent should have a lugar llegada" duration="23"/> | ||
<testCase name="ExpedicionDetalleComponent should have a hora de salida" duration="31"/> | ||
<testCase name="ExpedicionDetalleComponent should have a hora de llegada" duration="156"/> | ||
<testCase name="ExpedicionDetalleComponent should have a dificultad" duration="144"/> | ||
<testCase name="ExpedicionDetalleComponent should create" duration="26"/> | ||
<testCase name="ExpedicionDetalleComponent should have a description element" duration="19"/> | ||
<testCase name="ExpedicionDetalleComponent should have a costo" duration="23"/> | ||
<testCase name="ExpedicionDetalleComponent should have a duracion" duration="150"/> | ||
</file> | ||
<file path="src/app/proveedor/proveedor-list/proveedor-list.component.spec.ts"> | ||
<testCase name="ProveedorDetalleComponent should create" duration="2"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="2"/> | ||
<testCase name="ProveedorDetalleComponent should create" duration="4"/> | ||
</file> | ||
</testExecutions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 52 additions & 6 deletions
58
src/app/itinerario/itinerario-detalle/itinerario-detalle.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,62 @@ | ||
import {TestBed } from '@angular/core/testing'; | ||
import {async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { ItinerarioDetalleComponent } from './itinerario-detalle.component'; | ||
import { DebugElement } from '@angular/core'; | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { faker } from '@faker-js/faker'; | ||
|
||
describe('ProveedorDetalleComponent', () => { | ||
beforeEach(() => { | ||
describe('ItinerarioDetalleComponent', () => { | ||
let component: ItinerarioDetalleComponent; | ||
let fixture: ComponentFixture<ItinerarioDetalleComponent>; | ||
let debug: DebugElement; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [HttpClientTestingModule] | ||
}); | ||
imports:[HttpClientModule, RouterTestingModule], | ||
declarations: [ ItinerarioDetalleComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ItinerarioDetalleComponent); | ||
component = fixture.componentInstance; | ||
|
||
component.itinerario = { | ||
id : faker.datatype.number(), | ||
dia: faker.lorem.sentence(), | ||
alimentacion: faker.lorem.sentence(), | ||
alojamiento: faker.lorem.sentence() | ||
} | ||
|
||
fixture.detectChanges(); | ||
debug = fixture.debugElement; | ||
}); | ||
|
||
it('should create', () => { | ||
expect(ItinerarioDetalleComponent).toBeTruthy(); | ||
expect(component).toBeTruthy(); | ||
}); | ||
|
||
it('should have a día', () => { | ||
expect(debug.nativeElement.querySelector('#dia').textContent).toContain(component.itinerario.dia) | ||
}); | ||
|
||
it('should have a alojamiento', () => { | ||
expect(debug.nativeElement.querySelector('#alojamiento').textContent).toContain(component.itinerario.alojamiento) | ||
}); | ||
|
||
it('should have a alimentacion', () => { | ||
expect(debug.nativeElement.querySelector('#alimentacion').textContent).toContain(component.itinerario.alimentacion) | ||
}); | ||
|
||
it('should have a titulo alojamiento', () => { | ||
expect(debug.nativeElement.querySelector('#titulo-alojamiento').textContent).toContain("Alojamiento") | ||
}); | ||
|
||
it('should have a titulo alimentacion', () => { | ||
expect(debug.nativeElement.querySelector('#titulo-alimentacion').textContent).toContain("Alimentación") | ||
}); | ||
|
||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 46 additions & 6 deletions
52
src/app/recomendacion/recomendacion-detalle/recomendacion-detalle.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,56 @@ | ||
import {TestBed } from '@angular/core/testing'; | ||
import {async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { RecomendacionDetalleComponent } from './recomendacion-detalle.component'; | ||
import { DebugElement } from '@angular/core'; | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { faker } from '@faker-js/faker'; | ||
|
||
describe('ProveedorDetalleComponent', () => { | ||
beforeEach(() => { | ||
describe('RecomendacionDetalleComponent', () => { | ||
let component: RecomendacionDetalleComponent; | ||
let fixture: ComponentFixture<RecomendacionDetalleComponent>; | ||
let debug: DebugElement; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [HttpClientTestingModule] | ||
}); | ||
imports:[HttpClientModule, RouterTestingModule], | ||
declarations: [ RecomendacionDetalleComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(RecomendacionDetalleComponent); | ||
component = fixture.componentInstance; | ||
|
||
component.recomendacion = { | ||
id: faker.datatype.number(), | ||
indumentaria: faker.lorem.sentence(), | ||
equipo: faker.lorem.sentence(), | ||
} | ||
|
||
fixture.detectChanges(); | ||
debug = fixture.debugElement; | ||
}); | ||
|
||
it('should create', () => { | ||
expect(RecomendacionDetalleComponent).toBeTruthy(); | ||
expect(component).toBeTruthy(); | ||
}); | ||
|
||
it('should have a indumentaria', () => { | ||
expect(debug.nativeElement.querySelector('#indumentaria').textContent).toContain(component.recomendacion.indumentaria) | ||
}); | ||
|
||
it('should have a equipo', () => { | ||
expect(debug.nativeElement.querySelector('#equipo').textContent).toContain(component.recomendacion.equipo) | ||
}); | ||
|
||
it('should have a titulo indumentaria', () => { | ||
expect(debug.nativeElement.querySelector('#titulo-indumentaria').textContent).toContain("Indumentaria") | ||
}); | ||
|
||
it('should have a titulo equipo', () => { | ||
expect(debug.nativeElement.querySelector('#titulo-equipo').textContent).toContain("Equipo") | ||
}); | ||
|
||
}); |