08 01 25
Навёл порядок в тестах. Всё красиво и работает!
This commit is contained in:
parent
a2626dfdd0
commit
4753b83831
@ -1,6 +1,8 @@
|
||||
package test.it;
|
||||
|
||||
import server.ws.WsServer;
|
||||
import test.it.runner.IT_CleanAllDate;
|
||||
import test.it.runner.IT_RunAllMain;
|
||||
|
||||
public class IT_RunAllCleanStartWsMain {
|
||||
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
package test.it.addBlockUtils;
|
||||
package test.it.blockchain;
|
||||
|
||||
import blockchain.BchBlockEntry;
|
||||
import blockchain.BchCryptoVerifier;
|
||||
import blockchain.body.BodyRecord;
|
||||
import test.it.utils.JsonParsers;
|
||||
import test.it.utils.json.JsonParsers;
|
||||
import test.it.utils.TestConfig;
|
||||
import test.it.utils.TestIds;
|
||||
import test.it.utils.TestLog;
|
||||
import test.it.utils.WsSession;
|
||||
import test.it.utils.log.TestLog;
|
||||
import test.it.utils.ws.WsSession;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
@ -1,4 +1,4 @@
|
||||
package test.it.addBlockUtils;
|
||||
package test.it.blockchain;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
@ -1,4 +1,4 @@
|
||||
package test.it.addBlockUtils;
|
||||
package test.it.blockchain;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
@ -1,6 +1,10 @@
|
||||
package test.it;
|
||||
package test.it.cases;
|
||||
|
||||
import test.it.utils.*;
|
||||
import test.it.utils.TestConfig;
|
||||
import test.it.utils.json.JsonBuilders;
|
||||
import test.it.utils.json.JsonParsers;
|
||||
import test.it.utils.log.TestResult;
|
||||
import test.it.utils.ws.WsSession;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
package test.it;
|
||||
package test.it.cases;
|
||||
|
||||
import test.it.utils.*;
|
||||
import test.it.utils.TestConfig;
|
||||
import test.it.utils.json.JsonBuilders;
|
||||
import test.it.utils.json.JsonParsers;
|
||||
import test.it.utils.log.TestLog;
|
||||
import test.it.utils.log.TestResult;
|
||||
import test.it.utils.ws.WsSession;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
@ -1,16 +1,16 @@
|
||||
package test.it;
|
||||
package test.it.cases;
|
||||
|
||||
import blockchain.body.ConnectionBody;
|
||||
import blockchain.body.HeaderBody;
|
||||
import blockchain.body.ReactionBody;
|
||||
import blockchain.body.TextBody;
|
||||
import blockchain.body.UserParamBody;
|
||||
import test.it.addBlockUtils.AddBlockSender;
|
||||
import test.it.addBlockUtils.ChainState;
|
||||
import test.it.blockchain.AddBlockSender;
|
||||
import test.it.blockchain.ChainState;
|
||||
import test.it.utils.TestConfig;
|
||||
import test.it.utils.TestLog;
|
||||
import test.it.utils.TestResult;
|
||||
import test.it.utils.WsSession;
|
||||
import test.it.utils.log.TestLog;
|
||||
import test.it.utils.log.TestResult;
|
||||
import test.it.utils.ws.WsSession;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
@ -1,8 +1,13 @@
|
||||
package test.it;
|
||||
package test.it.cases;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import test.it.utils.*;
|
||||
import test.it.utils.TestConfig;
|
||||
import test.it.utils.json.JsonParsers;
|
||||
import test.it.utils.log.TestLog;
|
||||
import test.it.utils.log.TestResult;
|
||||
import test.it.utils.ws.WsSession;
|
||||
import utils.config.ShineSignatureConstants;
|
||||
import utils.crypto.Ed25519Util;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package test.it;
|
||||
package test.it.runner;
|
||||
|
||||
import test.it.utils.TestConfig;
|
||||
import test.it.utils.TestLog;
|
||||
import test.it.utils.log.TestLog;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.*;
|
||||
@ -1,6 +1,10 @@
|
||||
package test.it;
|
||||
package test.it.runner;
|
||||
|
||||
import test.it.utils.TestLog;
|
||||
import test.it.cases.IT_01_AddUser;
|
||||
import test.it.cases.IT_02_Sessions;
|
||||
import test.it.cases.IT_03_AddBlock_NoAuth;
|
||||
import test.it.cases.IT_04_UserParams_NoAuth;
|
||||
import test.it.utils.log.TestLog;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -31,7 +35,7 @@ public class IT_RunAllMain {
|
||||
TestLog.title("IT RUN RESULT (per test)");
|
||||
for (String s : summaries) System.out.println(s);
|
||||
|
||||
if (failed == 0) TestLog.ok("✅ ВСЕ IT ТЕСТЫ УСПЕШНО ЗАВЕРШЕНЫ");
|
||||
if (failed == 0) TestLog.ok("\n ВСЕ IT ТЕСТЫ УСПЕШНО ЗАВЕРШЕНЫ");
|
||||
else TestLog.boom("❌ IT ПРОГОН УПАЛ: failed=" + failed + " из " + summaries.size());
|
||||
|
||||
return failed;
|
||||
@ -1,13 +1,16 @@
|
||||
package test.it;
|
||||
package test.it.suite;
|
||||
|
||||
import org.junit.platform.suite.api.SelectClasses;
|
||||
import org.junit.platform.suite.api.Suite;
|
||||
import test.it.cases.IT_01_AddUser;
|
||||
import test.it.cases.IT_02_Sessions;
|
||||
import test.it.cases.IT_03_AddBlock_NoAuth;
|
||||
|
||||
/**
|
||||
* Сьют, который запускает IT тесты строго в заданном порядке.
|
||||
*
|
||||
* Запуск:
|
||||
* ./gradlew test --tests test.it.IT_00_Suite
|
||||
* ./gradlew test --tests test.it.suite.IT_00_Suite
|
||||
*/
|
||||
@Suite
|
||||
@SelectClasses({
|
||||
@ -1,5 +1,7 @@
|
||||
package test.it.utils;
|
||||
package test.it.utils.json;
|
||||
|
||||
import test.it.utils.TestIds;
|
||||
import test.it.utils.TestConfig;
|
||||
import utils.crypto.Ed25519Util;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
@ -1,4 +1,4 @@
|
||||
package test.it.utils;
|
||||
package test.it.utils.json;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
@ -1,4 +1,6 @@
|
||||
package test.it.utils;
|
||||
package test.it.utils.log;
|
||||
|
||||
import test.it.utils.TestConfig;
|
||||
|
||||
/**
|
||||
* TestLog — единое место для:
|
||||
@ -1,4 +1,4 @@
|
||||
package test.it.utils;
|
||||
package test.it.utils.log;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -1,7 +1,9 @@
|
||||
package test.it.utils;
|
||||
package test.it.utils.ws;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import test.it.utils.TestConfig;
|
||||
import test.it.utils.log.TestLog;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package test.it.utils;
|
||||
package test.it.utils.ws;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
Loading…
Reference in New Issue
Block a user