I have a custom USql application that extends a class IApplier.
[SqlUserDefinedApplier]
public class CsvApplier : IApplier
{
public CsvApplier()
{
}
public override IEnumerable<IRow> Apply(IRow input, IUpdatableRow output)
{
}
}
This application is then used from a usql script as
@log =
SELECT t.ultimateID,
t.siteID,
.
.
.
t.eTime,
t.hours
FROM @logWithCount
CROSS APPLY
new BSWBigData.USQLApplier.CsvApplier() AS t(ultimateID string, siteID string, .... , eTime string, hours double, count long?);
I was able to write unit tests / ATP for the divided parts of the application.
How can I write tests for C # method code Applyand user logic depending on I / O? How can I automate testing of usql scripts with specific inputs and outputs so that data accounting is not required?
source
share