approvals / ApprovalTests.Net

ApprovalTest verification library for .Net
Other
570 stars 110 forks source link

Add a CI Build #9

Closed SimonCropp closed 10 years ago

SimonCropp commented 11 years ago

Would be nice to set up this project on a build server somewhere. Let me know if you need any help

JakeGinnivan commented 11 years ago

Am happy to host :)

jamesrcounts commented 10 years ago

Tried and failed on myget.org's CI service. I think it is because MyGet tried to build in Release mode, similar to #43.

MyGet Wonka - Version 1.8.0.39450 (C) MyGet 2012 - www.myget.org Making NuGet for all of the world to enjoy! (@jglozano)

...

Start time: 5:27 PM Initializing the runtime and loading plugins. Verifying test files. Initializing the test runner. Running the tests. [failed] Test ApprovalTests.Xunit/NonNUnitReporterTest/TestXunitReporterIsWorking Exception System.Exception: System.Exception : Approvals is not set up to use your test framework. It currently supports [NUnit, MsTest, MbUnit, xUnit.net, xUnit.extensions, Machine.Specifications (MSpec)] To add one use ApprovalTests.StackTraceParsers.StackTraceParser.AddParser() method to add implementation of ApprovalTests.StackTraceParsers.IStackTraceParser with support for your testing framework. To learn how to implement one see http://blog.approvaltests.com/2012/01/creating-namers.html at ApprovalTests.StackTraceParsers.StackTraceParser.Parse(StackTrace stackTrace) in d:\temp\tmp5C9\ApprovalTests\StackTraceParsers\StackTraceParser.cs:line 44 at ApprovalTests.Namers.UnitTestFrameworkNamer..ctor() in d:\temp\tmp5C9\ApprovalTests\Namers\UnitTestFrameworkNamer.cs:line 18 at ApprovalTests.Approvals.<.cctor>bc() in d:\temp\tmp5C9\ApprovalTests\Approvals.cs:line 24 at ApprovalTests.Approvals.Verify(IApprovalWriter writer) in d:\temp\tmp5C9\ApprovalTests\Approvals.cs:line 97 [failed] Test ApprovalTests.Xunit/NonNUnitReporterTest/TestXunitIsWorking Exception Xunit.Sdk.TrueException: Assert.True() Failure at ApprovalTests.Xunit.Reporters.NonNUnitReporterTest.TestXunitIsWorking() in d:\temp\tmp5C9\ApprovalTests.Xunit\Reporters\NonNUnitReporterTest.cs:line 22 [failed] Test ApprovalTests.Xunit/XunitStackTraceNamerTest/TestApprovalNamerFailureMessage Exception System.Exception: System.Exception : Approvals is not set up to use your test framework. It currently supports [NUnit, MsTest, MbUnit, xUnit.net, xUnit.extensions, Machine.Specifications (MSpec)] To add one use ApprovalTests.StackTraceParsers.StackTraceParser.AddParser() method to add implementation of ApprovalTests.StackTraceParsers.IStackTraceParser with support for your testing framework. To learn how to implement one see http://blog.approvaltests.com/2012/01/creating-namers.html at ApprovalTests.StackTraceParsers.StackTraceParser.Parse(StackTrace stackTrace) in d:\temp\tmp5C9\ApprovalTests\StackTraceParsers\StackTraceParser.cs:line 44 at ApprovalTests.Namers.UnitTestFrameworkNamer..ctor() in d:\temp\tmp5C9\ApprovalTests\Namers\UnitTestFrameworkNamer.cs:line 18 at ApprovalTests.Approvals.<.cctor>bc() in d:\temp\tmp5C9\ApprovalTests\Approvals.cs:line 24 at ApprovalTests.Approvals.Verify(IApprovalWriter writer) in d:\temp\tmp5C9\ApprovalTests\Approvals.cs:line 97 [failed] Test ApprovalTests.Xunit/XunitStackTraceNamerTest/TestMightyMoose Exception System.ArgumentNullException: System.ArgumentNullException : Value cannot be null. Parameter name: fileName at System.IO.FileInfo..ctor(String fileName) at ApprovalUtilities.Utilities.PathUtilities.GetDirectoryForStackFrame(StackFrame stackFrame) in d:\temp\tmp5C9\ApprovalUtilities\Utilities\PathUtilities.cs:line 25 at ApprovalTests.Xunit.Namer.XunitStackTraceNamerTest.TestMightyMoose() in d:\temp\tmp5C9\ApprovalTests.Xunit\Namer\XunitStackTraceNamerTest.cs:line 22 Disposing the test runner. Stop time: 5:27 PM (Total execution time: 5.903 seconds) 13 run, 9 passed, 4 failed, 0 inconclusive, 0 skipped 2013-11-19 17:27:45 [Error] Error during build: Test run for D:\temp\tmp5C9\ApprovalTests.Xunit\bin\Release\ApprovalTests.Xunit.dll failed. 2013-11-19 17:27:45 [Information] Cleaning up... 2013-11-19 17:27:48 [Error] BUILD FAILED

jamesrcounts commented 10 years ago

I turned off optimization in the XUnit project and still got the same failure. So, we still have other problems.

xUnit is always the odd duck out...

jamesrcounts commented 10 years ago

After adding a front loaded reporter for MyGet, we make more progress, but ApprovalUtilities failed to build because it normally get the RLDC component from the GAC

[error] Assembly ApprovalUtilities.Tests Warning: Test Run deployment issue: The assembly or module 'Microsoft.ReportViewer.ProcessingObjectModel' directly or indirectly referenced by the test container 'd:\temp\tmp63f7\approvalutilities.tests\bin\debug\approvalutilities.tests.dll' was not found. Warning: Test Run deployment issue: The assembly or module 'Microsoft.ReportViewer.DataVisualization' directly or indirectly referenced by the test container 'd:\temp\tmp63f7\approvalutilities.tests\bin\debug\approvalutilities.tests.dll' was not found. Disposing the test runner.

jamesrcounts commented 10 years ago

Please vote for this http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/5078420-release-microsoft-report-viewer-2010-redistributab

jamesrcounts commented 10 years ago

All right I figured out the principles for getting this to work on myget. I have it working on a branch in my fork but that branch is out of date and not ready to merge.

steenhulthin commented 10 years ago

yay! In case it fails appveyor may be an alternative.

jamesrcounts commented 10 years ago

Done:

https://www.myget.org/gallery/approvaltests