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
<Target Name="Coverage" > | |
<Exec Command=".\tools\OpenCover\OpenCover.Console.exe -register:user -target:.\tools\nunit\bin\nunit-console.exe "-targetdir:MyTestProjectDir\bin\$(Configuration)" "-targetargs:MyTestAssembly.Test.dll" -output:OpenCoverReport.xml "-filter:+[MyProjectNamespace*]* -[MyProjectNamespace.Test*]*"" /> | |
<Exec Command=".\tools\reportgenerator\ReportGenerator.exe -reports:OpenCoverReport.xml -targetdir:.\coverage-report -reporttypes:XML;HTML" /> | |
</Target> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt"> | |
<xsl:output method="html" indent="yes"/> | |
<xsl:template match="/"> | |
<xsl:variable name="cov0style" select="'background:#E79090;text-align:right;'"/> | |
<xsl:variable name="cov20style" select="'background:#D79797;text-align:right;'"/> | |
<xsl:variable name="cov40style" select="'background:#D7A0A0;text-align:right;'"/> | |
<xsl:variable name="cov60style" select="'background:#C7A7A7;text-align:right;'"/> | |
<xsl:variable name="cov80style" select="'background:#C0B0B0;text-align:right;'"/> | |
<xsl:variable name="cov100style" select="'background:#D7D7D7;text-align:right;'"/> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt"> | |
<xsl:output method="html" indent="no"/> | |
<xsl:template match="/"> | |
<xsl:variable name="cov0style" select="'background:#FF4040;text-align:right;'"/> | |
<xsl:variable name="cov20style" select="'background:#F06060;text-align:right;'"/> | |
<xsl:variable name="cov40style" select="'background:#E78080;text-align:right;'"/> | |
<xsl:variable name="cov60style" select="'background:#E0A0A0;text-align:right;'"/> |
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
<buildPlugins> | |
<buildReportBuildPlugin> | |
<xslFileNames> | |
<xslFile>xsl\OpenCoverReport.Assembly.xsl</xslFile> | |
</xslFileNames> | |
</buildReportBuildPlugin> | |
<buildLogBuildPlugin /> | |
<xslReportBuildPlugin description="OpenCover Report" actionName="OpenCoverBuildReport" xslFileName="xsl\OpenCoverReport.Class.xsl"></xslReportBuildPlugin> | |
</buildPlugins> |
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
<publishers> | |
<merge> | |
<files> | |
<file>coverage-report\Summary.xml</file> | |
</files> | |
</merge> | |
<xmllogger /> | |
</publishers> |
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
<Target Name="Deploy"> | |
<MSBuild Projects="$(SolutionFile)" | |
Properties="Configuration=$(Configuration);DeployOnBuild=true;DeployTarget=Package" | |
ContinueOnError="false" /> | |
<Exec Command=""$(ProjectPath)\obj\$(Configuration)\Package\$(ProjectName).deploy.cmd" /y /m:$(DeployServer) -enableRule:DoNotDeleteRule" | |
ContinueOnError="false" /> | |
</Target> |
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
<Target Name="Test" DependsOnTargets="Build"> | |
<!-- First we deploy the application --> | |
<MSBuild Targets="Deploy" Projects="WebCalc\WebCalc.csproj" ContinueOnError="false" /> | |
<!-- Now we test the web application --> | |
<Exec Command="WebCalc.FunctionalTest\Deliverables\Assemblies\WebCalc.FunctionalTest.exe /site:http://localhost/WebCalc_deploy /xml=FunctionalTestReport.xml"/> | |
</Target> |
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
namespace Bank | |
{ | |
using System; | |
public class Account | |
{ | |
public void Deposit(decimal amount) | |
{ | |
this.Balance += amount; | |
} |
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
namespace Bank.UnitTest | |
{ | |
using System; | |
using NUnit.Framework; | |
[TestFixture] // El atributo TestFixture identifica a esta clase como una clase de pruebas | |
public class AccountTest | |
{ | |
[Test] // El atributo Test identifica a este método como una prueba unitaria | |
public void TransferFunds() |
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
void translacion_master(int* image_data_ptr, int height, int width, int proc_count, int deltaX) { | |
/* El proceso maestro no es un 'worker' */ | |
int worker_count = proc_count - 1; | |
/* Se calcula el numero de renglones por 'worker' */ | |
int rows_slice = height / worker_count; | |
/* Se calcular el remanente para el ultimo proceso */ | |
int remainder = height % worker_count; | |
/* Se aloja memoria para la imagen 'trasladada' */ | |
int* new_image_data_ptr; | |
/* Inicializar datos */ |
OlderNewer