2

i am trying to get start with the Sharp Architecture by building the test application mentioned here, i have followed through the steps given in the tutorial but hit a road block where the database schema generation is described. According to the tutorial running the test

IceCreamYouScreamCorp.Tests.SharpArchTemplate.Data.NHibernateMaps.CanGenerateDatabaseSchema

will generate the schema in the Database folder, i couldn't find this test in the generate application by Templify. Please anybody who knows the solution guide me how to run this test so to generate the database schema...

John x
  • 4,031
  • 8
  • 42
  • 67

2 Answers2

2

may be i have not pharsed the question well enough, i have figured out the solution

  1. download the NUnit framework

  2. runt the test by using the NUnit

it will create the desired database schema for the sample application

John x
  • 4,031
  • 8
  • 42
  • 67
  • I have the same problem. How do you run the test? What files? – Anders Mar 09 '12 at 18:03
  • after downloading the nunit browse the web solution dir for the Test.dll(don't exactly remem the name) load it in the NUnit and hit run – John x Mar 10 '12 at 13:46
  • 1
    I know this post is a little old, but I ran into the same issue which was caused by selecting "2.0.0.3" from the Templify dropdown rather than 2.0.0.0. Selecting that copied in some extra files, one of them being the unit tests to setup the database. – boolean Apr 24 '12 at 03:44
0

If you tryed to use the version 2.0.0.3, you will have this problem. Try to select the "2.0.0.0" option on Templify. To run the test, open NUnit GUI, and go to the following folder and open the .dll file:

[Your_Templifyed_Folder]\Solutions\[Your_Solution_Name].Tests\bin\Debug\[Your_Solution_Name].Tests.dll

Now you can see the right tests list in the NUnit interface.

McGarnagle
  • 101,349
  • 31
  • 229
  • 260