Un-ignore tests after gradle migration #4669

This commit is contained in:
rusefillc 2022-10-15 19:24:20 -04:00
parent dd70d8b6fe
commit db71f49ec6
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,7 @@ import com.rusefi.config.generated.Fields;
import com.rusefi.tune.xml.Constant; import com.rusefi.tune.xml.Constant;
import com.rusefi.tune.xml.Msq; import com.rusefi.tune.xml.Msq;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import java.nio.file.Files; import java.nio.file.Files;
@ -19,8 +20,9 @@ import static org.junit.Assert.*;
/** /**
* from IDEA this unit test needs to be executed with "empty" working directory * from IDEA this unit test needs to be executed with "empty" working directory
*/ */
@Ignore // todo: https://github.com/rusefi/rusefi/issues/4669
public class TuneReadWriteTest { public class TuneReadWriteTest {
private static final String PATH = "ui/src/test/resources/frankenso/"; private static final String PATH = "src/test/resources/frankenso/";
private static final String TEST_INI = PATH + "mainController.ini"; private static final String TEST_INI = PATH + "mainController.ini";
private static final String TEST_BINARY_FILE = PATH + "current_configuration.rusefi_binary"; private static final String TEST_BINARY_FILE = PATH + "current_configuration.rusefi_binary";
private static final int LEGACY_TOTAL_CONFIG_SIZE = 20000; private static final int LEGACY_TOTAL_CONFIG_SIZE = 20000;

View File

@ -5,6 +5,7 @@ import com.rusefi.enums.live_data_e;
import com.rusefi.ldmp.StateDictionary; import com.rusefi.ldmp.StateDictionary;
import com.rusefi.livedata.LiveDataParserPanel; import com.rusefi.livedata.LiveDataParserPanel;
import org.antlr.v4.runtime.tree.ParseTree; import org.antlr.v4.runtime.tree.ParseTree;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import java.awt.*; import java.awt.*;
@ -16,6 +17,7 @@ import static com.rusefi.ui.LiveDataPane.CPP_SUFFIX;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@Ignore // todo: https://github.com/rusefi/rusefi/issues/4669
public class LiveDataColorTest { public class LiveDataColorTest {
@Test @Test
public void testAllFiles() throws IOException, URISyntaxException { public void testAllFiles() throws IOException, URISyntaxException {
@ -38,7 +40,7 @@ public class LiveDataColorTest {
private void testSpecificFile(String fileName) throws IOException { private void testSpecificFile(String fileName) throws IOException {
String sourceCode = getContentOrNull(getClass(), fileName); String sourceCode = getContentOrNull(getClass(), fileName);
assertNotNull("sourceCode for " + fileName, sourceCode); assertNotNull("Not found: sourceCode for " + fileName, sourceCode);
ParseTree tree = LiveDataParserPanel.getParseTree(sourceCode); ParseTree tree = LiveDataParserPanel.getParseTree(sourceCode);