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

Support of native functions when evaluating an expression #468

Closed Seddryck closed 5 years ago

Seddryck commented 5 years ago

It should be really useful to have support for native functions when we're dealing with an expression in a predicate. The first value will be the column identifier then we'll have the classic list of native functions separeted by the pipe |. To differentiate this to the NCalc usage we'll use the optional (when not present NCalc will be supposed) scriptxml element.

<all-rows>
  <alias column-index="0">myDate</alias> <!-- optional -->
  <expression name="MyModifiedDate">
    <script language="native">
      myDate | utc-to-local(Brussels) | dateTime-to-date
    </script>
  </expression>
  <predicate name="IntegerDepId">
    <more-than or-equal="true">2019-01-01</more-than>
  </predicate>
</all-rows>
Seddryck commented 5 years ago

Beta available at https://ci.appveyor.com/project/Seddryck/nbi/builds/23824520/artifacts in 1.20.0-beta.166