@@ -19,11 +19,10 @@ class SCTest {
1919 librarySetupTask.runCommand()
2020 }
2121
22- /*
23-
2422 @Test
2523 fun `01 - (PLUGIN) terminal verification` () {
2624 " echo $extensionName " .runCommand { command, result ->
25+ println (result)
2726 assert (command.contains(result.normalize()))
2827 }
2928 }
@@ -32,6 +31,7 @@ class SCTest {
3231 fun `02 - (PLUGIN) gradlew signingReport` () {
3332 val temp = tempPath()
3433 signingReportTask(temp).runCommand { _, report ->
34+ println (report)
3535 assert (report.contains(" SHA1" ) && report.contains(" BUILD SUCCESSFUL" ))
3636 }
3737 }
@@ -40,6 +40,7 @@ class SCTest {
4040 fun `03 - (PLUGIN) fingerprint extraction` () {
4141 val temp = tempPath()
4242 signingReportTask(temp).runCommand { _, report ->
43+ println (report)
4344 assert (report.extractFingerprint().split(" :" ).size == 20 )
4445 }
4546 }
@@ -65,7 +66,8 @@ class SCTest {
6566 @Test
6667 fun `06 - (PLUGIN) restore string files` () {
6768 val temp = tempPath()
68- prepareTask(temp).runCommand { _, _ ->
69+ prepareTask(temp).runCommand { _, report ->
70+ println (report)
6971 assert (
7072 restoreFiles(" $temp${File .separator}$testProjectName " , defaultMainModule).isEmpty()
7173 )
@@ -81,7 +83,8 @@ class SCTest {
8183 @Test
8284 fun `07 - (PLUGIN) xml parsing` () {
8385 val temp = tempPath()
84- prepareTask(temp).runCommand { _, _ ->
86+ prepareTask(temp).runCommand { _, report ->
87+ println (report)
8588 val files = locateFiles(" $temp${File .separator}$testProjectName " , configuration)
8689 files.forEach {
8790 assert (parseXML(it.file).isNotEmpty())
@@ -93,7 +96,9 @@ class SCTest {
9396 fun `08 - (PLUGIN) obfuscate string values` () {
9497 val temp = tempPath()
9598 signingReportTask(temp).runCommand { _, report ->
99+ println (report)
96100 val key = report.extractFingerprint()
101+ println (key)
97102 assert (key.isNotEmpty())
98103 val files = locateFiles(" $temp${File .separator}$testProjectName " , configuration)
99104 files.forEach { file ->
@@ -114,7 +119,9 @@ class SCTest {
114119 fun `09 - (PLUGIN) obfuscate and reveal string values` () {
115120 val temp = tempPath()
116121 signingReportTask(temp).runCommand { _, report ->
122+ println (report)
117123 val key = report.extractFingerprint()
124+ println (key)
118125 assert (key.isNotEmpty())
119126 val files = locateFiles(" $temp${File .separator}$testProjectName " , configuration)
120127 files.forEach { file ->
@@ -149,6 +156,7 @@ class SCTest {
149156 fun `10 - (PLUGIN) obfuscate xml` () {
150157 val temp = tempPath()
151158 signingReportTask(temp).runCommand { _, report ->
159+ println (report)
152160 val files = locateFiles(" $temp${File .separator}$testProjectName " , configuration)
153161 files.forEach { file ->
154162 val entities = parseXML(file.file)
@@ -167,6 +175,7 @@ class SCTest {
167175 fun `11 - (PLUGIN) obfuscate, restore and compare xml values with originals` () {
168176 val temp = tempPath()
169177 signingReportTask(temp).runCommand { _, report ->
178+ println (report)
170179 val files = backupFiles(" $temp${File .separator}$testProjectName " , configuration)
171180 assert (files.isNotEmpty())
172181 files.forEach { file ->
@@ -211,6 +220,7 @@ class SCTest {
211220 fun `12 - (ANDROID COMPILATION) obfuscate xml and build (not real workflow)` () {
212221 val temp = tempPath()
213222 signingReportTask(temp).runCommand { _, report ->
223+ println (report)
214224 val files = locateFiles(" $temp${File .separator}$testProjectName " , configuration)
215225 files.forEach { file ->
216226 val entities = parseXML(file.file)
@@ -237,6 +247,7 @@ class SCTest {
237247 fun `13 - (PLUGIN COMPILATION) plugin with no test` () {
238248 pluginBuildTask().runCommand { _, report ->
239249 assert (report.contains(" BUILD SUCCESSFUL" ))
250+ println (report)
240251 }
241252 }
242253
@@ -250,28 +261,13 @@ class SCTest {
250261 modifyForTest(temp, testProjectName)
251262 buildTask(" $temp${File .separator}$testProjectName " ).runCommand { _, androidReport ->
252263 assert (androidReport.contains(" BUILD SUCCESSFUL" ))
264+ println (androidReport)
253265 }
254266 }
255267 }
256268
257269 @Test
258- fun `15 - (GRADLE TASK) basic task test`() {
259- pluginBuildTask().runCommand { _, report ->
260- assert(report.contains("BUILD SUCCESSFUL"))
261- }
262- val temp = tempPath()
263- prepareTask(temp).runCommand { _, _ ->
264- modifyForTest(temp, testProjectName)
265- basicGradleTask("$temp${File.separator}$testProjectName").runCommand { _, androidReport ->
266- assert(androidReport.contains("BUILD SUCCESSFUL"))
267- assert(androidReport.contains(gradleTaskNameDoctor))
268- }
269-
270- }
271- }*/
272-
273- @Test
274- fun `16 - (GRADLE TASK) basic task test` () {
270+ fun `15 - (GRADLE TASK) stringcarePreview` () {
275271 pluginBuildTask().runCommand { _, report ->
276272 assert (report.contains(" BUILD SUCCESSFUL" ))
277273 }
@@ -288,7 +284,7 @@ class SCTest {
288284 }
289285
290286 @Test
291- fun `17 - (GRADLE TASK) test obfuscate ` () {
287+ fun `16 - (GRADLE TASK) stringcareTestObfuscate ` () {
292288 pluginBuildTask().runCommand { _, report ->
293289 assert (report.contains(" BUILD SUCCESSFUL" ))
294290 }
0 commit comments