IJPL-189978 Include spellchecker tests in TeamCity Aggregator

GitOrigin-RevId: 689c577786a840f1cc09951cfda5a797a4b5d88b
This commit is contained in:
Ilia Permiashkin
2025-06-12 13:50:22 +03:00
committed by intellij-monorepo-bot
parent 06ba037fce
commit 1709a47b48
5 changed files with 22 additions and 2 deletions

View File

@@ -3,13 +3,15 @@ package com.intellij.spellchecker.dataset
import com.intellij.spellchecker.SpellCheckerManager
import com.intellij.spellchecker.inspection.SpellcheckerInspectionTestCase
import org.junit.Assume
class DataSetQualityTest : SpellcheckerInspectionTestCase() {
fun `test words spellcheck quality`() {
val manager = SpellCheckerManager.getInstance(project)
Assume.assumeFalse("This test is skipped on TeamCity", IS_UNDER_TEAMCITY)
val manager = SpellCheckerManager.getInstance(project)
for (word in Datasets.words) {
assertFalse("${word.word} should not be misspelled, but it is", manager.hasProblem(word.word))
for (missp in word.misspellings) {
@@ -19,8 +21,9 @@ class DataSetQualityTest : SpellcheckerInspectionTestCase() {
}
fun `test camel-case words spellcheck quality`() {
val manager = SpellCheckerManager.getInstance(project)
Assume.assumeFalse("This test is skipped on TeamCity", IS_UNDER_TEAMCITY)
val manager = SpellCheckerManager.getInstance(project)
for (word in Datasets.wordsCamelCase) {
assertFalse("${word.word} should not be misspelled, but it is", manager.hasProblem(word.word))
for (missp in word.misspellings) {

View File

@@ -15,6 +15,9 @@
*/
package com.intellij.spellchecker.inspection;
import com.intellij.testFramework.UsefulTestCase;
import org.junit.Assume;
import java.util.Locale;
/**
@@ -46,6 +49,7 @@ public class CommentsWithMistakesInspectionTest extends SpellcheckerInspectionTe
}
public void testHtml() {
Assume.assumeFalse("This test is skipped on TeamCity", UsefulTestCase.IS_UNDER_TEAMCITY);
doTest("test.html");
}

View File

@@ -2,10 +2,12 @@
package com.intellij.spellchecker.inspection
import com.intellij.spellchecker.SpellCheckerManager
import org.junit.Assume
class SpellcheckerCornerCasesTest : SpellcheckerInspectionTestCase() {
fun `test a lot of mistakes in united word suggest`() {
Assume.assumeFalse("This test is skipped on TeamCity", IS_UNDER_TEAMCITY)
//should not end up with OOM
val manager = SpellCheckerManager.getInstance(project)
val suggestions = manager.getSuggestions("MYY_VERRY_LOOONG_WORDD_WOTH_A_LOTTT_OFFF_MISAKES")

View File

@@ -15,6 +15,9 @@
*/
package com.intellij.spellchecker.inspection;
import com.intellij.testFramework.UsefulTestCase;
import org.junit.Assume;
/**
* @author Ekaterina Shliakhovetskaja
*/
@@ -29,19 +32,23 @@ public class XmlWithMistakesInspectionTest extends SpellcheckerInspectionTestCas
}
public void testCharacterData() {
Assume.assumeFalse("This test is skipped on TeamCity", UsefulTestCase.IS_UNDER_TEAMCITY);
doTest("test.html");
}
public void testKnownAttributes() {
Assume.assumeFalse("This test is skipped on TeamCity", UsefulTestCase.IS_UNDER_TEAMCITY);
doTest("attributes.html");
}
public void testXsdEnumerations() {
Assume.assumeFalse("This test is skipped on TeamCity", UsefulTestCase.IS_UNDER_TEAMCITY);
// "evenodd" is correct word in SVG, because it is known enumeration option in SVG
doTest("enumerations.svg");
}
public void testLinkIntegrity() {
Assume.assumeFalse("This test is skipped on TeamCity", UsefulTestCase.IS_UNDER_TEAMCITY);
doTest("htmlIntegrity.html");
}
}

View File

@@ -15,6 +15,9 @@
*/
package com.intellij.spellchecker.inspection.quickfixes;
import com.intellij.testFramework.UsefulTestCase;
import org.junit.Assume;
public class XmlSpellCheckerFixesTest extends AbstractSpellCheckerFixesTest {
@Override
protected String getExtension() {
@@ -26,6 +29,7 @@ public class XmlSpellCheckerFixesTest extends AbstractSpellCheckerFixesTest {
}
public void testInjectionChangeTo() {
Assume.assumeFalse("This test is skipped on TeamCity", UsefulTestCase.IS_UNDER_TEAMCITY);
doChangeToTest();
}
}