Running tests as part of the build

1 view
Skip to first unread message

trul...@gmail.com

unread,
Sep 14, 2011, 4:04:15 PM9/14/11
to OpenWrap Development Mailing List
What's the syntax to configure a project as tests, and to have it run
on build?

Thanks!

Sebastien Lambla

unread,
Sep 15, 2011, 7:20:22 AM9/15/11
to openwra...@googlegroups.com
This relies on two things, a test runner that has a testdriven.net-compatible dll shipping with the package, and your tests ought to be compiled in /tests. You can then use test-wrap to execute the tests.

It's not quite tested at this stage, the codebase is a bit evil and it's not integrated with anything else yet, but *eventually* tests will end up running whenever openwrap attempts installation of a package.

trul...@gmail.com

unread,
Sep 15, 2011, 2:43:46 PM9/15/11
to OpenWrap Development Mailing List
How would you recommend i "compile my tests into /tests"?

just set the output path in the csproj? or do you mean with a "build"
directive in the wrapdesc?

Sebastien Lambla

unread,
Sep 15, 2011, 7:05:48 PM9/15/11
to openwra...@googlegroups.com
You change the export of an msbuild by setting <OpenWrap-ExportName>tests-net35</OpenWrap-ExportName> in the msbuild file.
Reply all
Reply to author
Forward
0 new messages