Giter Site home page Giter Site logo

fleid / asa.unittest Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 341 KB

Azure Stream Analytics unit testing solution (fixture and script)

License: MIT License

PowerShell 100.00%
azure azure-stream-analytics powershell powershell-script unit-testing unittest vscode

asa.unittest's People

Contributors

fleid avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

asa.unittest's Issues

Failure with latest Microsoft.Azure.StreamAnalytics.CICD 3.0.0

The latest release seems to be breaking the test scripts
https://www.nuget.org/packages/Microsoft.Azure.StreamAnalytics.CICD/

Can we lock the package to an older version?


07-Sep-2020 08:37:54 | VERBOSE: 301 - Update each conf file
-- | --
07-Sep-2020 08:37:55 | VERBOSE: 401 - Run SA in parallel jobs
07-Sep-2020 08:37:56 | VERBOSE: 402 - Waiting for all jobs to end...
07-Sep-2020 08:38:07 | VERBOSE: 403 - Jobs done
07-Sep-2020 08:38:07 | VERBOSE: 501 - Calculating diffs
07-Sep-2020 08:38:08 | [-] ASAHelloWorld.unit-test 30.75s
07-Sep-2020 08:38:08 | ArgumentException: Invalid array passed in, ',' expected. (41): [{"EventId":"1","EventMessage":"Hello"} {"EventId":"2","EventMessage":"World"} {"EventId":"3","EventMessage":"Hello"} {"EventId":"4","EventMessage":"Friends"}]
07-Sep-2020 08:38:08 | at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\asa.unittest\1.0.9\private\Get-AutRunResult.ps1: line 88
07-Sep-2020 08:38:08 | at Get-AutRunResult<Process>, C:\Program Files\WindowsPowerShell\Modules\asa.unittest\1.0.9\private\Get-AutRunResult.ps1: line 63
07-Sep-2020 08:38:08 | at Start-AutRun<Process>, C:\Program Files\WindowsPowerShell\Modules\asa.unittest\1.0.9\public\Start-AutRun.ps1: line 128
07-Sep-2020 08:38:08 | at <ScriptBlock>, C:\Users\syscon\bamboo-agent-home\xml-data\build-dir\HUBCD-HUBWINPR54-SAUT\stream_analytic\ASAHelloWorld.Tests\ASAHelloWorld.Tests.ps1: line 14
07-Sep-2020 08:38:08 | Tests completed in 30.75s
07-Sep-2020 08:38:08 | Passed: 0 Failed: 1 Skipped: 0 Pending: 0 Inconclusive: 0

Retrieve Test Results

How can we retrieve the unit test test results (*.xml)?
There are no test reports in 3_assert folder after test execution.

Reference data sets are not supported without temporal joins

If a query include a non-temporal join to a reference data set (which is the expected usage), the test will fail with random errors (Could not find file ...myoutput.json).

This is a limitation of sa.exe, the executable that currently runs the stream analytics engine for each test.

I should either update the module to invoke the new npm package instead, or deprecate asa.unittest entirely since the new package supports unit testing via the test command.

Test runs do not support higher CICD nuget version

Hello,
For our ASA project, we are using the CICD version 3.0.0. In Start-AutRun I can specify which version should be used but New-AutProject will always download the 2.4.1 version.

It would be nice to set the version which I need to use for our project in the New-AutProject command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.