Commit 0cb44a1
Compare-DbaDbSchema - Fix test state isolation by exporting empty target DACPAC in BeforeAll
Export the empty target DB to a DACPAC in the shared BeforeAll block before any
tests can modify the target DB (via Publish-DbaDacPackage). This prevents the
DACPAC-to-DACPAC comparison tests from getting zero differences because the target
DB was already populated by the 'Returns no differences' test.
(do Compare-DbaDbSchema)
Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>1 parent 830627a commit 0cb44a1
1 file changed
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
| |||
109 | 119 | | |
110 | 120 | | |
111 | 121 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
136 | | - | |
137 | 134 | | |
138 | 135 | | |
139 | 136 | | |
| |||
0 commit comments