-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtests-odata-skip-models-mssql.sh
34 lines (28 loc) · 1.46 KB
/
tests-odata-skip-models-mssql.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -ex
rm -r ./tests || true
#Models
dotnet new nrsrx-models -n My.NRSRx1.Models -o ./tests/My.NRSRx1.Models --force
dotnet build ./tests/My.NRSRx1.Models
dotnet new nrsrx-models -n My.NRSRx2.Models -E Asset -o ./tests/My.NRSRx2.Models --force
dotnet build ./tests/My.NRSRx2.Models
#MsSql OData
dotnet new nrsrx-odata -n My.NRSRx1.OData -S true -L Elasticsearch -D MsSql -o ./tests/My.NRSRx1.OData --force
dotnet build ./tests/My.NRSRx1.OData
dotnet new nrsrx-odata -n My.NRSRx2.OData -S true -E Asset -L Splunk -D MsSql -o ./tests/My.NRSRx2.OData --force
dotnet build ./tests/My.NRSRx2.OData
#MsSql OData Tests
dotnet new nrsrx-odata-tests -n My.NRSRx1.OData.Tests -S true -o ./tests/My.NRSRx1.OData.Tests --force
dotnet build ./tests/My.NRSRx1.OData.Tests
dotnet test ./tests/My.NRSRx1.OData.Tests \
--filter TestCategory=Unigration \
--collect "XPlat Code Coverage" \
--logger "html;LogFileName=unit-test-results.html" \
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=json,cobertura,lcov,opencover
dotnet new nrsrx-odata-tests -n My.NRSRx2.OData.Tests -S true -E Asset -o ./tests/My.NRSRx2.OData.Tests --force
dotnet build ./tests/My.NRSRx2.OData.Tests
dotnet test ./tests/My.NRSRx2.OData.Tests \
--filter TestCategory=Unigration \
--collect "XPlat Code Coverage" \
--logger "html;LogFileName=unit-test-results.html" \
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=json,cobertura,lcov,opencover