Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

housekeeping: add Int tests and benchmark projects #1242

Merged
merged 40 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f95ef64
add benchmark project
dpvreony Nov 20, 2022
875fde6
add int tests to ci
dpvreony Nov 20, 2022
ea43fa8
report int test coverage
dpvreony Nov 20, 2022
9977475
Merge branch 'main' into intandbenchmarks
dpvreony Nov 20, 2022
66bec2c
prep to move to mockstartup app for int tests
dpvreony Nov 21, 2022
40ebab9
Update Directory.build.props
dpvreony Nov 28, 2022
81d1cf8
prep for web test harness
dpvreony Dec 4, 2022
3660d39
Update Whipstaff.Runtime.csproj
dpvreony Dec 29, 2022
d2eaa66
Merge branch 'main' into intandbenchmarks
dpvreony Dec 30, 2022
7170781
Merge branch 'main' into intandbenchmarks
dpvreony Jan 30, 2023
b7afde3
fix int test build failures
dpvreony Jan 30, 2023
485b9ea
Merge branch 'main' into intandbenchmarks
dpvreony May 4, 2023
db16adf
Merge branch 'main' into intandbenchmarks
dpvreony Aug 6, 2023
95473ac
Merge branch 'main' into intandbenchmarks
dpvreony Aug 15, 2023
e46bc37
logic for swahbuckle nonce
dpvreony Aug 16, 2023
468f2b6
hook up logging properly
dpvreony Aug 16, 2023
ee92124
allowed inheriting route binding
dpvreony Aug 17, 2023
4b5516c
*BREAKING* dropped MVC support on existing controllers
dpvreony Aug 17, 2023
415caff
Merge branch 'main' into intandbenchmarks
dpvreony Aug 18, 2023
36db634
tidied up app startup
dpvreony Aug 25, 2023
55a1859
rename index page
dpvreony Aug 25, 2023
a621422
tweak mvc sample startup
dpvreony Aug 25, 2023
bbff0ed
fix issue with home controller
dpvreony Aug 25, 2023
eb31c8b
refactor crud routes
dpvreony Aug 25, 2023
1d6fe95
ns cleanup
dpvreony Aug 26, 2023
ad93525
clear up constraint ordering on controllers
dpvreony Aug 29, 2023
efebb89
ANE cleanup and dbcontext factory
dpvreony Aug 29, 2023
a86e606
remark 3rd party app insights check for now
dpvreony Aug 29, 2023
03b32b1
Delete SecuredWebsiteTests.cs
dpvreony Aug 29, 2023
5d44307
remove defunct tests
dpvreony Aug 29, 2023
6a9f93d
Merge branch 'main' into intandbenchmarks
dpvreony Aug 29, 2023
9176c0b
tweaks to controller init
dpvreony Aug 29, 2023
7469273
Delete ApplicationModelConventionHelpers.cs
dpvreony Aug 29, 2023
c591fbd
clean up audit.net init
dpvreony Aug 29, 2023
0a60e9c
swagger init cleanup
dpvreony Aug 29, 2023
b51c1bb
add tests for web app host
dpvreony Aug 29, 2023
4e0a983
increase startup tests
dpvreony Aug 29, 2023
8d0846a
fix mvc startup and int tests on policies
dpvreony Aug 29, 2023
ef595fa
correct testing folder name
dpvreony Aug 29, 2023
6c59df4
fix project ref for test project
dpvreony Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
solutionpath: src/Whipstaff.sln
unittestprojectpath: src/Whipstaff.UnitTests/Whipstaff.UnitTests.csproj
inttestprojectpath: src/Whipstaff.IntegrationTests/Whipstaff.IntegrationTests.csproj
benchmarkprojectpath: src/Whipstaff.IntegrationTests/Whipstaff.Benchmarks.csproj
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -152,11 +154,18 @@ jobs:
echo "::notice::$coverageMessage"
echo $coverageMessage >> $GITHUB_STEP_SUMMARY

#- name: Train Intellicode Model
# uses: microsoft/vs-intellicode@v1
# if: github.ref == 'refs/heads/main'
# with:
# directory: src
# integration tests run after sonarscanner and unit test reporting so if the integration tests fail the report still uploads so we can see defects detected by sonarscanner and any unit test coverage issues.
- name: Run Integration Tests
run: |
dotnet test ${{ env.inttestprojectpath }} --configuration Release --no-build /bl:artifacts\\binlog\\inttest.binlog --nologo --logger GitHubActions --blame-hang-timeout 60000 --results-directory artifacts\inttestcoverage --collect:"XPlat Code Coverage" /p:CollectCoverage=true /p:DeterministicSourcePaths=false -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover

- name: Report Integration Test Coverage
run: |
$opencoverxmlpath = Get-ChildItem 'artifacts/inttestcoverage/**/*.xml' | Select-Object -First 1
$intTestCoverage = (Select-Xml -Path $opencoverxmlpath -XPath 'CoverageSession/Summary/@branchCoverage').Node.Value
$coverageMessage = "Integration Test Coverage: $intTestCoverage"
echo "::notice::$coverageMessage"
echo $coverageMessage >> $GITHUB_STEP_SUMMARY

- name: List licenses
run: |
Expand Down
Loading
Loading