Commit dec2e39
Convert Test projects to SDK style projects. (#517)
Converts all test projects to [Short-Form Projects][0] (previously
"SDK-style" projects).
Some call-outs:
* Consolidates all test projects under `/tests`. Previously test
projects were spread across `/tests`, `/src`, and `/tools`.
* Putting test projects inside the source directory doesn't work
great by default with short-form projedts because of the
wildcard `<Compile Include="**\*" />`, meaning you have to
add `<Compile Exclude="..."/>`s for all the test files.
* Consistency is its own reward!
* Removes the testing shared projects like `Dynamic-Tests.shproj`.
We no longer use PCL's so the tests are now added directly to the
single test project.
* Added a `NuGet.Config` specifying that NuGet packages should get
[restored to `/packages`][1]. This is the way things have always
worked, but switching to `@(PackageReference)` now restores them
to the machine global package cache by default.
Our testing infrastructure expects `nunit-console` and `csc` to be
downloaded from NuGet and placed in a known location.
The global package cache causes problems because it is in
different places on different OS's and there's no easy way for
MSBuild to know where it is.
* NuGet packages restored from `@(PackageReference)` instead of
`packages.config` are stored differently so scripts and code were
updated to find the packages, i.e.:
* `packages.config`: `packages/NUnit.ConsoleRunner.3.9.0`
* `@(PackageReference)`: `packages/nunit.consolerunner/3.9.0`
[0]: https://docs.microsoft.com/en-us/dotnet/core/tools/csproj#additions
[1]: https://stackoverflow.com/a/19259947/834441 parent 439bd83 commit dec2e39
File tree
735 files changed
+538
-1917
lines changed- build-tools
- automation
- scripts
- src
- Java.Interop.Dynamic
- Tests
- Java.Interop.Export
- Tests
- Java.Interop.Tools.JavaCallableWrappers
- Test
- Java.Interop
- Tests
- Cadenza.Collections
- Xamarin.Android.Tools.ApiXmlAdjuster
- Tests
- Xamarin.Android.Tools.Bytecode
- Tests
- tests
- Java.Interop-PerformanceTests
- Java.Interop
- java/com/xamarin/interop/performance
- Java.Interop-Tests
- Cadenza.Collections
- Cadenza
- Java.Interop
- java/com/xamarin/interop
- Java.Interop.Dynamic-Tests
- Java.Interop
- Java.Interop.Export-Tests
- Java.Interop
- java/com/xamarin/interop/export
- Java.Interop.Tools.JavaCallableWrappers-Tests
- Android.App
- Android.Content
- Java.Interop.Tools.JavaCallableWrappers
- PerformanceTests
- TestJVM
- Xamarin.Android.Tools.ApiXmlAdjuster-Tests
- Xamarin.Android.Tools.Bytecode-Tests
- Resources
- java
- com/xamarin
- java/util
- kotlin
- META-INF
- generator-Tests
- Integration-Tests
- SupportFiles
- Tests-Core
- expected.cp
- expected.ji
- expected
- Unit-Tests
- CodeGeneratorExpectedResults
- Common
- JavaInterop1
- XAJavaInterop1
- XamarinAndroid
- EnumGeneratorExpectedResults
- expected.ji
- AccessModifiers
- Adapters
- Android.Graphics.Color
- Arrays
- CSharpKeywords
- Constructors
- GenericArguments
- InterfaceMethodsConflict
- NestedTypes
- NonStaticFields
- NormalMethods
- NormalProperties
- ParameterXPath
- StaticFields
- StaticMethods
- StaticProperties
- Streams
- TestInterface
- java.lang.Enum
- java.lang.Object
- java.util.List
- expected
- AccessModifiers
- Adapters
- SupportFiles
- Android.Graphics.Color
- Arrays
- CSharpKeywords
- Constructors
- EnumerationFixup
- GenericArguments
- InterfaceMethodsConflict
- NestedTypes
- NonStaticFields
- NormalMethods
- NormalProperties
- ParameterXPath
- StaticFields
- StaticMethods
- StaticProperties
- Streams
- SupportFiles
- TestInterface
- java.lang.Enum
- java.lang.Object
- java.util.List
- logcat-parse-Tests
- Resources
- tools
- generator/Tests
- logcat-parse/Tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
735 files changed
+538
-1917
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 28 | | |
39 | 29 | | |
40 | 30 | | |
| |||
59 | 49 | | |
60 | 50 | | |
61 | 51 | | |
62 | | - | |
| 52 | + | |
63 | 53 | | |
64 | | - | |
| 54 | + | |
65 | 55 | | |
66 | | - | |
| 56 | + | |
67 | 57 | | |
68 | | - | |
| 58 | + | |
69 | 59 | | |
70 | 60 | | |
71 | 61 | | |
| |||
85 | 75 | | |
86 | 76 | | |
87 | 77 | | |
88 | | - | |
| 78 | + | |
89 | 79 | | |
90 | 80 | | |
91 | 81 | | |
| |||
99 | 89 | | |
100 | 90 | | |
101 | 91 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 92 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 93 | | |
116 | | - | |
117 | 94 | | |
118 | 95 | | |
119 | 96 | | |
| |||
157 | 134 | | |
158 | 135 | | |
159 | 136 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 137 | | |
165 | 138 | | |
166 | 139 | | |
| |||
279 | 252 | | |
280 | 253 | | |
281 | 254 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 255 | | |
287 | 256 | | |
288 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
| 200 | + | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments