-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Helix proof of concept for unit tests #224
Merged
Merged
Changes from 93 commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
6300d42
added functests project, added tests to open WinformsControlsTest tabs
zsd4yr 80679a9
sdk magic .tests
zsd4yr d78d7e5
change to set environment variable before process start
zsd4yr 7965f0c
nit
zsd4yr d8c0f44
yeah pair programming!
zsd4yr 6feb911
please work tho
zsd4yr 491809a
Set yaml debug to true to help troubleshoot
AdamYoblick 5d54a79
why
zsd4yr cbdea61
shot in the dark but sure
zsd4yr ae4f6d6
even better, this time with feeling!
zsd4yr 782b668
docs
zsd4yr 8713166
changed func test config to debug and add 5 minute timeout to build s…
AdamYoblick 2a08804
renaming folder structure to match csproj name
zsd4yr 88f2af9
left this change behind
zsd4yr 92bcf59
debugging in yaml
AdamYoblick 4676862
testing
AdamYoblick 4e60f0a
print out all env vars for debugging
AdamYoblick 285cec4
adding helix steps
AdamYoblick 4b78c5a
readd func tests proj to sln
zsd4yr 5105634
Merge branch 'master' into dev/zadanz/functional_xunit
AdamYoblick 304a181
Comment out func tests that are failing for now
AdamYoblick 85302d7
change to agentPool that has agent running in interactive mode to sup…
AdamYoblick 6ac7fb7
re-enable unit tests on the machine and disable helix for now
AdamYoblick 7d93112
initial try of unit tests through helix
AdamYoblick aec20f5
Merge branch 'master' into dev/advolker/helix
AdamYoblick 0b63f18
specify a dotnet cli version to use on helix machines
AdamYoblick 999a276
specify a dotnet cli version to use on helix machines
AdamYoblick 576178d
Merge branch 'dev/advolker/helix' of https://github.com/dotnet/winfor…
AdamYoblick 5ccec95
Added helix sdk to global.json
AdamYoblick d76c67e
move sdk version back because of unrelated breaks
AdamYoblick ccb81de
specify the dotnetcli version again
AdamYoblick bba1040
Revving dotnet sdk, fixing build errors
AdamYoblick e1de8c7
make helix sdk = arcade sdk
AdamYoblick 5f0e35c
saving for real this time
AdamYoblick 86a55df
revert sdk code fixes
AdamYoblick a4ad3c7
use new and improved helix template
AdamYoblick 3e90fcf
fixing yaml syntax error
AdamYoblick d534d8f
use proper public sdk version
AdamYoblick 548dd25
specify xunit target framework to netcoreapp3.0
AdamYoblick 028a605
merged from master
AdamYoblick 1837a4c
fixed typo
AdamYoblick 7ac7875
manually consume new arcade helix template because the arcade build i…
AdamYoblick 0aa3dc5
use win8 helix pools because win10 pools aren't ready for us yet
AdamYoblick 2f62ee5
hopefully a fix for the different build versions
zsd4yr b33b41b
Revert "hopefully a fix for the different build versions"
zsd4yr 63f1cc0
Merge branch 'master' into dev/advolker/helix
AdamYoblick a15d338
Merge branch 'master' into dev/advolker/helix
AdamYoblick 769b922
merged from master
AdamYoblick 5df3114
really merged from master
AdamYoblick fdb412e
fixed arcade sdk version
AdamYoblick 08ef95a
fix xunit runtime framework version
AdamYoblick 81e7b7b
merge from master, resolve conflicts
zsd4yr 617ff2e
xunit versions
zsd4yr f77b2fe
broke sln
zsd4yr 058f73c
headers required
zsd4yr f164c96
helix token only for internal
zsd4yr 37808b3
require Creator
zsd4yr b210d44
remove doubel source, this explains the need for headers earlier, als…
zsd4yr 7b54cfd
need helixRepo
zsd4yr 51df9f5
displayName
zsd4yr e1cf65b
parameters
zsd4yr 6afb86a
parameterization
zsd4yr 566bea6
back to 10?
zsd4yr c10e9fe
try to wildcard all the tests
zsd4yr 6264dfe
fix folder structure of System.Windows.Forms.Design to match other bi…
zsd4yr de315ff
Enable XUnitReporter
zsd4yr fd5eebe
let me make sure about this
zsd4yr a07c03e
/
zsd4yr ba4c5f1
whack not slack
zsd4yr f97d3f1
src
zsd4yr a28440c
Merge branch 'master' into dev/advolker/helix
zsd4yr 9cdcfab
try this
zsd4yr 7ce198d
Merge branch 'dev/advolker/helix' of https://github.com/dotnet/winfor…
zsd4yr 9049663
include moq and stafact in all of these
zsd4yr bcaacdb
SYSTEM_ACCESSTOKEN
zsd4yr dac6d40
make changes to send-to-helix matching arcade#2171
zsd4yr 43ead2d
get rid of func folder dup; add integration tests helix call
zsd4yr b0e73c0
remove set of environment variable DOTNET_PATH from TestHelpers
zsd4yr 1462fdd
include WinformsControlsTest in project references for IntegrationTes…
zsd4yr 5374f4f
try setting xUnitVersion
zsd4yr 2141f2f
add XUnitAssertVersion, XUnitRunnerVisualStudioVersion, and make all …
zsd4yr f2f6a18
add more xunit depenencies
zsd4yr 0132f19
merge master
zsd4yr 545a08d
update tools from Arcade
zsd4yr 9936e7b
add back DOTNET_ROOT
zsd4yr cbed7e8
rename _HelixAgentPool variable, add WinformsControlsTest to project …
zsd4yr f8b6032
run integration tests on helix and change slashed for paths
zsd4yr c5599d0
relative path for design was wrong?
zsd4yr b79237a
do not run integration tests on helix yet
zsd4yr ee9de87
additional yml
zsd4yr 53c2de3
fix name errors
zsd4yr d5a444e
rename, add naming
zsd4yr d716c3c
Merge branch 'master' into dev/advolker/helix
zsd4yr a47fff8
merge from master
zsd4yr ab79587
helix type
zsd4yr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
parameters: | ||
# All parameters are required for our purposes; see send-to-helix.yml for details | ||
RepoName: '' | ||
HelixTargetQueues: '' | ||
HelixAccessToken: '' | ||
XUnitProjects: '' | ||
DisplayNamePrefix: '' | ||
|
||
steps: | ||
- template: /eng/common/templates/steps/send-to-helix.yml | ||
parameters: | ||
HelixSource: ${{ parameters.RepoName }} | ||
HelixType: 'tests/default' | ||
zsd4yr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
HelixBuild: $(Build.BuildNumber) | ||
HelixTargetQueues: ${{ parameters.HelixTargetQueues }} | ||
HelixAccessToken: ${{ parameters.HelixAccessToken }} # only defined for internal CI | ||
Creator: ${{ parameters.RepoName }} # required for public / external (when there is no access token) | ||
XUnitProjects: ${{ parameters.XUnitProjects }} | ||
XUnitPublishTargetFramework: netcoreapp3.0 # Whatever tfm will work for our test projects for `dotnet publish` | ||
XUnitRuntimeTargetFramework: netcoreapp2.0 # Whatever tfm to pick from the xunit package, it must exist in that package or the helix job will fail | ||
XUnitRunnerVersion: '2.4.1' # Should match XUnitRunnerConsoleVersion in eng/Versions.props | ||
IncludeDotNetCli: true | ||
DotNetCliPackageType: 'sdk' | ||
DotNetCliVersion: '3.0.100-preview-010184' # MUST be official release: https://dotnet.microsoft.com/download/dotnet-core/3.0 ; does not need to match sdk we build against | ||
EnableXUnitReporter: true | ||
WaitForWorkItemCompletion: true | ||
DisplayNamePrefix: ${{ parameters.DisplayNamePrefix }} | ||
condition: succeeded() | ||
continueOnError: false | ||
Tanya-Solyanik marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/System.Windows.Forms.Design/tests/System.Windows.Forms.Design.Tests.csproj
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With java applications we usually had a separate file to keep the version numbers that we are depending on in one place. Is it a best practice in dotnet apps as well? Can we move the dependencies version number into one place. I know it’s complitaced because of the different usage and file formats and all, just it would be nice to have dotner version, dotnet path, helix version, dotnet arcade version, xunit version, etc all in one place possibly grouped by what is using them, build, test, unit test, etc. Do es it makes sense?
I have no idea how hard it would be to do it? Would it worth it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately, the yml files are the very first files run on the CI so build-time variables are not available yet, and for local builds these yml files are not run at all. I do not think there is a great place for them all.