@@ -45,6 +45,7 @@ import org.junit.jupiter.api.Disabled
45
45
import org.junit.jupiter.api.Tag
46
46
import org.junit.jupiter.api.Test
47
47
import org.junit.jupiter.api.Timeout
48
+ import org.junit.jupiter.api.io.TempDir
48
49
import java.io.File
49
50
import java.nio.file.Path
50
51
import java.nio.file.Paths
@@ -136,7 +137,6 @@ abstract class DiktatSmokeTestBase {
136
137
@Test
137
138
@Tag(" DiktatRuleSetProvider" )
138
139
@Timeout(TEST_TIMEOUT_SECONDS , unit = SECONDS )
139
- @Disabled(" https://github.com/saveourtool/diktat/issues/1737" )
140
140
fun `smoke test #5` () {
141
141
val configFilePath = prepareOverriddenRulesConfig(emptyList(),
142
142
mapOf (
@@ -200,7 +200,6 @@ abstract class DiktatSmokeTestBase {
200
200
@Test
201
201
@Tag(" DiktatRuleSetProvider" )
202
202
@Timeout(TEST_TIMEOUT_SECONDS , unit = SECONDS )
203
- @Disabled(" https://github.com/saveourtool/diktat/issues/1737" )
204
203
fun `smoke test #2` () {
205
204
val configFilePath = prepareOverriddenRulesConfig(
206
205
rulesToDisable = emptyList(),
@@ -227,7 +226,6 @@ abstract class DiktatSmokeTestBase {
227
226
@Test
228
227
@Tag(" DiktatRuleSetProvider" )
229
228
@Timeout(TEST_TIMEOUT_SECONDS , unit = SECONDS )
230
- @Disabled(" https://github.com/saveourtool/diktat/issues/1737" )
231
229
fun `smoke test #1` () {
232
230
val configFilePath = prepareOverriddenRulesConfig(
233
231
rulesToDisable = emptyList(),
@@ -279,9 +277,14 @@ abstract class DiktatSmokeTestBase {
279
277
@Test
280
278
@Tag(" DiktatRuleSetProvider" )
281
279
@Timeout(TEST_TIMEOUT_SECONDS , unit = SECONDS )
282
- @Disabled(" https://github.com/saveourtool/diktat/issues/1737" )
283
280
fun `regression - should correctly handle tags with empty lines` () {
284
- fixAndCompare(prepareOverriddenRulesConfig(), " KdocFormattingMultilineTagsExpected.kt" , " KdocFormattingMultilineTagsTest.kt" )
281
+ fixAndCompare(
282
+ prepareOverriddenRulesConfig(
283
+ // listOf(Warnings.HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE, Warnings.KDOC_WITHOUT_RETURN_TAG),
284
+ ),
285
+ expected = " KdocFormattingMultilineTagsExpected.kt" ,
286
+ test = " KdocFormattingMultilineTagsTest.kt" ,
287
+ )
285
288
}
286
289
287
290
@Test
@@ -294,7 +297,6 @@ abstract class DiktatSmokeTestBase {
294
297
@Test
295
298
@Tag(" DiktatRuleSetProvider" )
296
299
@Timeout(TEST_TIMEOUT_SECONDS , unit = SECONDS )
297
- @Disabled(" https://github.com/saveourtool/diktat/issues/1737" )
298
300
fun `fix can cause long line` () {
299
301
val configFilePath = prepareOverriddenRulesConfig(
300
302
rulesToDisable = emptyList(),
@@ -338,7 +340,6 @@ abstract class DiktatSmokeTestBase {
338
340
339
341
@Test
340
342
@Tag(" DiktatRuleSetProvider" )
341
- @Disabled(" https://github.com/saveourtool/diktat/issues/1737" )
342
343
fun `smoke test with gradle script plugin` () {
343
344
fixAndCompare(prepareOverriddenRulesConfig(), " kotlin-library-expected.gradle.kts" , " kotlin-library.gradle.kts" )
344
345
assertUnfixedLintErrors { unfixedLintErrors ->
@@ -353,7 +354,6 @@ abstract class DiktatSmokeTestBase {
353
354
354
355
@Test
355
356
@Tag(" DiktatRuleSetProvider" )
356
- @Disabled(" https://github.com/saveourtool/diktat/issues/1737" )
357
357
fun `disable chapters` () {
358
358
val configFilePath = prepareOverriddenRulesConfig(
359
359
emptyList(),
@@ -394,6 +394,10 @@ abstract class DiktatSmokeTestBase {
394
394
private const val TEST_TIMEOUT_SECONDS = 30L
395
395
private val tmpFiles: MutableList <File > = mutableListOf ()
396
396
397
+ @TempDir
398
+ @JvmStatic
399
+ internal var tempDir: Path ? = null
400
+
397
401
@BeforeAll
398
402
@JvmStatic
399
403
@Suppress(" AVOID_NULL_CHECKS" )
0 commit comments