0% found this document useful (0 votes)
50 views

Ejemplo Proyecto Final Software: Git Xunit

This document outlines the structure of a software project that includes unit and integration tests. It describes the creation of test projects for the application and web UI using xUnit. It also details adding dependencies and references between the test projects and source code projects. The project structure includes separate folders for the application source code, console UI, web UI, unit tests, and integration tests.

Uploaded by

JUan de dios
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Ejemplo Proyecto Final Software: Git Xunit

This document outlines the structure of a software project that includes unit and integration tests. It describes the creation of test projects for the application and web UI using xUnit. It also details adding dependencies and references between the test projects and source code projects. The project structure includes separate folders for the application source code, console UI, web UI, unit tests, and integration tests.

Uploaded by

JUan de dios
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Ejemplo Proyecto Final Sof tware

git
.net 5
xUnit

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/


BlackBoard

Sof tware
2ª par te del Proyecto de
Tests
Todos los integrantes
using System;
namespace Program
{

deben hacer por lo


class Program
{
static void Main()
{
Calculator cal = new Calculator();

menos un commit
double p = cal.Perimetro(8.5);
Console.WriteLine("P: " + p);

double a = cal.Area(8.5);

Documento.pdf
Console.WriteLine("A: " + a);

Metería:
}
}
}

Tema:
Integrantes:
Equipo:
Fecha:
Git*:

Git

src test
https://gist.github.com/jyacomp/92ddd3ef58d12cf8362c28f38d30bef0
https://d3vsoft-my.sharepoint.com/:w:/g/personal/luis_edu_d3v_mx/EXW4KWE3EIBKulxsYpBfeZIBl3nTNW3i2q5liUW6O2QHiA

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/


Integration
Tests
User Interface

Web Domain Mail

Application

Infrastructure

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/


/Proj> dotnet new xunit -o test/WebUI.IntegrationTest
The template "xUnit Test Project" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on tests/Application.UnitTest\Application.UnitTest.csproj...
Determining projects to restore...
Restore succeeded.

/Proj> dotnet add test/WebUI.IntegrationTest package Microsoft.AspNetCore.Mvc.Testing


Determining projects to restore...
Writing C:\Users\jlcar\AppData\Local\Temp\tmp193E.tmp
info : Adding PackageReference for package 'Microsoft.AspNetCore.Mvc.Testing' into project 'E:\codes\is\Proj\tests\WebUI.IntegrationTest\WebUI.IntegrationTest.csproj'.
...
info : Writing assets file to disk. Path: E:\codes\is\Proj\tests\WebUI.IntegrationTest\obj\project.assets.json
log : Restored E:\codes\is\Proj\tests\WebUI.IntegrationTest\WebUI.IntegrationTest.csproj (in 2.88 sec).

/Proj> dotnet add test/WebUI.IntegrationTest reference src/WebUI


Reference `..\..\src\WebUI\WebUI.csproj` added to the project.

https://gist.github.com/jyacomp/015b4768662c5756293529214b752053

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/


Proj

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/


Proj
src
Application
Cuadrado.cs
PrismaCuadrangular.cs

ConsoleUI
Program.cs

WebUI

Index.cshtml
Privacy.cshtml
Startup.cs

Application.UnitTest
UnitTestCuadrado.cs
UnitTestPrismaCuadrangular.cs

Application.IntegrationTest
IntegrationTestApplication.cs

WebUI.IntegrationTest
IntegrationTestPages.cs

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/


Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/
Proj
src
Application
Cuadrado.cs
PrismaCuadrangular.cs

ConsoleUI
Program.cs

WebUI

Index.cshtml
Privacy.cshtml
Startup.cs

Application.UnitTest
UnitTestCuadrado.cs
UnitTestPrismaCuadrangular.cs

Application.IntegrationTest
IntegrationTestApplication.cs

WebUI.IntegrationTest
IntegrationTestPages.cs

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/


Proj
src
Application
Cuadrado.cs
PrismaCuadrangular.cs

ConsoleUI
Program.cs

WebUI

Index.cshtml
Privacy.cshtml
Startup.cs

Application.UnitTest
UnitTestCuadrado.cs
UnitTestPrismaCuadrangular.cs

Application.IntegrationTest
IntegrationTestApplication.cs

WebUI.IntegrationTest
IntegrationTestPages.cs

Juan Luis Carrillo Garcia | j u a n _ ca r r i l l og @ my. u ni te c. e d u. mx | @ jyacomp | linkedin.com/in/jlcarrillog/

You might also like