Seddryck / NBi

NBi is a testing framework (add-on to NUnit) for Business Intelligence and Data Access. The main goal of this framework is to let users create tests with a declarative approach based on an Xml syntax. By the means of NBi, you don't need to develop C# or Java code to specify your tests! Either, you don't need Visual Studio or Eclipse to compile your test suite. Just create an Xml file and let the framework interpret it and play your tests. The framework is designed as an add-on of NUnit but with the possibility to port it easily to other testing frameworks.
http://www.nbi.io
Apache License 2.0
106 stars 37 forks source link

how can I have multiple nbits files in VS project #660

Closed manish-minni closed 2 years ago

manish-minni commented 2 years ago

I am new to NBi. I have setup a project in my VS 2019 solution following the NBi documentation.

But I wish to be able to separate test suites into multiple nbits files for maintainability.

How can I achieve that ?

Thanks for your help

manish-minni commented 2 years ago

I found a way which seems to meet my need:

  1. Create multiple Config tags in the TestSuite.nunit file
  2. Each Config tag can use configfile attribute to point to a different config file
  3. Each config file can use its nbi tag's testSuite attribute to point to a different nbits file
  4. In the nunit file, the Settings tag's activeconfig attribute can point to the name of the Config to be selected

Please let me know if this is the correct way, or there is some better way.

Thanks

Seddryck commented 2 years ago

To be honest, creating multiple nbits files has never been a concern for us. As we use genbiL to generate the nbits file, the maintainability challenge is not really in the resulting file.

The way you've implemented sounds really aligned with our vision of config files and the re-use of NUnit settings. Sounds as a smart idea to me.

manish-minni commented 2 years ago

Thanks for the confirmation & encouragement

I will have a look at genbiL

I can close this one :)