Commit 7a40003
authored
Added Testing of assembly attributes (#23)
* Added Testing of assembly attributes
* Updated build scripts to force a rebuild of all projects
- The tests use nuget pkg resolution and would otherwise use whatever package was built last.
* Added targets to PSSPROJ files to allow rebuilds to work
* Marked IDE runs as in conclusive for packaged assembly validation.
- Since tests resolve NUGET packages it isn't deterministic if the package was created via the IDE or a command line build.
- IDE builds are determined by the presence of the environment variable "BuildTime".
- This value is set by the build scripts for ALL of the builds so that all binaries produce the same version number for CI builds. (It is ignored for a release build)
* Updated GH Action to upload test results even if failed as follow up action that updates a PR comment needs the results.
* Removed IDE build detection
* It was downright confusing and, obviously now, broke the automated builds
- Now requires existence of a generated props file
* Moved creation of the generated props file to a distinct script to make it easy to generate once for IDE work.
- Directory.Build.Targets contains a check for it and will create an error if not found with a message indicating what to do to resolve the problem.
* Added support to extract the CiBuildName from the build environment
* Added additional logging to build tasks to aid with diagnostics
- These are now low priority messages so that don't normally appear in output
* Removed determination of build kind from tests as that's a build script only thing not needed in the tests now.
* Adjusted tests to use the build index from the generatedversion.props
* Sadly the buildIndex from a time stamp is non-deterministic making it impossible to create tests with an exact match.
- Tests would need to adjust to acount for "close enough"
- or, the better answer, I think, is that a new deterministic computation method is needed.
---------
Co-authored-by: smaillet <25911635+smaillet@users.noreply.github.com>1 parent ca15d2f commit 7a40003
File tree
19 files changed
+541
-386
lines changed- .github/workflows
- PsModules
- CommonBuild
- RepoBuild
- Private
- Public
- src
- Ubiquity.NET.Versioning.Build.Tasks
- build
- Ubiquity.Versioning.Build.Tasks.UT
19 files changed
+541
-386
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
1408 | 1411 | | |
1409 | 1412 | | |
1410 | 1413 | | |
1411 | | - | |
1412 | | - | |
1413 | 1414 | | |
1414 | 1415 | | |
1415 | 1416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 2 | + | |
| 3 | + | |
21 | 4 | | |
22 | | - | |
23 | 5 | | |
24 | | - | |
25 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
26 | 11 | | |
27 | | - | |
| 12 | + | |
28 | 13 | | |
29 | 14 | | |
30 | 15 | | |
| |||
| 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 | | |
0 commit comments