3
Vote

FluentAssertions with Continuous Integration

description

it would be nice to have FluentAssertions on a CI environment so that everyone can get the latest and greatest build with correct versioning without having to build it manually.

If you'd like, I can get that running on teamcity.codebetter.com, just let me know. I need your okay because maybe there will be some changes to the build process.

Cheers
Urs

comments

dennisdoomen wrote Aug 23, 2011 at 11:47 AM

Sounds like a great idea.

ursenzler wrote Aug 23, 2011 at 4:10 PM

I setup a trial at http://teamcity.codebetter.com/viewType.html?buildTypeId=bt458&tab=buildTypeStatusDiv

Now the first problem :-)

Please add the assemblies needed to compile the sources to the SharedBinaries. No reference should go to the GAC anymore because they are not available on CI.

Then I'll try again.

Cheers
Urs

mopdam wrote Aug 25, 2011 at 3:12 PM

Is the Microsoft.Silverlight.Testing assembly the only one that is missing?

wrote Aug 25, 2011 at 4:01 PM

Associated with changeset 69442.

ursenzler wrote Aug 25, 2011 at 5:09 PM

The silverlight assemblies are located in the SharedBinaries
Missing are the testing assembly for normal .net - the one referenced in the specs project.
Sorry, no access to code at the moment.

wrote Aug 27, 2011 at 12:45 PM

Associated with changeset 69459.

mopdam wrote Aug 27, 2011 at 12:46 PM

I have added the missing assemblies. Could you please try again?

Thanks,
Martin

wrote Aug 29, 2011 at 11:02 AM

Associated with changeset 69498.

ursenzler wrote Aug 29, 2011 at 11:46 AM

Okay, the assemblies are there now.

The next error is:

error MSB4019: The imported project "D:\BuildAgent-03\work\54ef6218f44af242\Main\FluentAssertions.Silverlight.Specs\Microsoft.Silverlight.Toolkit.Build.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.


You can have a look for yourself at http://teamcity.codebetter.com/viewType.html?tab=buildTypeStatusDiv&buildTypeId=bt458 (just login as Guest [the very very small link at the bottom of the login box])

Cheers
Urs

mopdam wrote Aug 30, 2011 at 10:06 AM

The Silverligth toolkit needs to be installed on the build server. Is that a problem?

ursenzler wrote Aug 30, 2011 at 10:36 AM

Yes and no.
It should be possible to build the solution without it. Only the silverlight tests cannot be run.
I'll check the differences to my own project and will report back.

ursenzler wrote Sep 1, 2011 at 11:55 AM

I found the trouble makers.

In the project file of the silverlight specs there are these two lines:




The production code assembly does not need these targets.

Maybe you can explain me, what these targets are good for (because only the tests need them). And at the moment it is not possible to run silverlight tests on the code better teamcity server anyway (unfortunately).

Cheers
Urs

ursenzler wrote Sep 1, 2011 at 12:07 PM

by the way: when I run the silverlight tests, I get a lot of fails due to MethodAccessException.
Is this just happing on my machine or is it a general SL problem?

dennisdoomen wrote Sep 1, 2011 at 1:10 PM

The reason for this is that the Silverlight specs rely on the Silverlight Unit Test framework that is shipped as part of the Silverlight Control Toolkit. In fact, the Silverlight.Specs is a specialized project type that is installed by that same toolkit.

The MissingMethod exception is still something I have to fix some time. I noticed this only recently and couldn't find an easy fix for that.

ursenzler wrote Sep 2, 2011 at 11:59 AM

I can run the tests even if I remove the two lines from the Specs project file. (with some tests failing because of MethodAccessExceptions).

So if these two lines are not really needed, please remove them to give CI a chance ;-)

Cheers
Urs

wrote Sep 6, 2011 at 7:58 PM

Associated with changeset 69670.

mopdam wrote Sep 6, 2011 at 8:00 PM

I have removed the 2 lines from the project file.

ursenzler wrote Sep 6, 2011 at 8:30 PM

Build Runs now on TC, will try to add unit testing step. If everything works, I'll request a dedicated project for FluentAssertions on teamcity.codebetter and add you guys as admins.

ursenzler wrote Dec 9, 2011 at 10:25 AM

I applied twice for a dedicated project for FluentAssertions now on codebetter. But not even a reply :-(
I'll keep trying.

dennisdoomen wrote Dec 9, 2011 at 5:38 PM

Those bastards ;-)

ursenzler wrote Jan 20, 2012 at 1:04 PM

CI on codebetter TC is now running: http://teamcity.codebetter.com/project.html?projectId=project173

They asked me whether you could include a banner on the project side. link to site with banner: https://docs.google.com/spreadsheet/viewform?hl=en_US&formkey=dERWT1Nmc08tQ2RzV29aWElWdjg3amc6MQ#gid=0

@dennis If you could go to the site, register yourself and mail me your username then I can give you admin rights on the project.

Cheers
Urs