Performing NHibernate Unit Tests

I have the latest NHibernate trunk, and I keep my assemblies up to date for use in my project, and all is well. However, NHibernate has errors that I would like to fix, or at least provide test tests for inclusion in the source code. My problem is that I cannot run NHibernate unit tests, and I do not know where to start. I have posted dozens of questions about whiteboards regarding my problem, and I have not yet received an answer. Does anyone here know how I can make this stuff work?

+4
source share
1 answer
  • After you have created the project through the NAnt build scripts, open the NHibernate.Everything.sln solution in the folder. / src
  • Find the NHibernate.Test Project
  • If you use SqlExpress go and create a database called nhibernate that your user has access to ... if you use SQLServer, open App.config and edit the connection string to use it instead, and then start creating the database.
  • If you are using ReSharper: right-click on the NHibernate.Test project and select Run Unit Tests and ...
  • If you are not using ReSharper, open Props for the NHibernate.Test project, go to the "Debugging" panel and in the "Run an external program" field, go to. \ Tools \ nunit and select nunit.exe. In the Command Line Arguments field, type NHibernate.Test.dll. Press Ctrl + F5 and ...
  • Enjoy the green lights :)
+6
source

Source: https://habr.com/ru/post/1339714/


All Articles