From 85bae9c821cdfe1492bb6e1848e74f9d1be7c521 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Tue, 3 Sep 2024 11:04:00 +0200 Subject: [PATCH] run isogit tests --- .circleci/config.yml | 5 +++++ apps/remixdesktop/run_git_ui_isogit_tests.sh | 18 +++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e70614c1b1..8bc100203f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -133,6 +133,11 @@ jobs: command: | cd apps/remixdesktop/ ./run_ci_test.sh + - run: + name: "Run isogit tests" + command: | + cd apps/remixdesktop/ + ./run_git_ui_isogit_tests.sh - store_test_results: path: ./apps/remixdesktop/reports/tests - store_artifacts: diff --git a/apps/remixdesktop/run_git_ui_isogit_tests.sh b/apps/remixdesktop/run_git_ui_isogit_tests.sh index 9333aa2498..d47be23523 100755 --- a/apps/remixdesktop/run_git_ui_isogit_tests.sh +++ b/apps/remixdesktop/run_git_ui_isogit_tests.sh @@ -1,6 +1,14 @@ -#!/bin/bash +#!/usr/bin/env bash +set -e +TEST_EXITCODE=0 +yarn run build:e2e && node ./splice_tests.js +TESTFILES=$(node ./splice_tests.js | grep -i 'git' | circleci tests split --split-by=timings) +for TESTFILE in $TESTFILES; do + yarn run test --useIsoGit --test ./build-e2e/remixdesktop/test/tests/app/${TESTFILE} || TEST_EXITCODE=1 +done -for testfile in build-e2e/remixdesktop/test/tests/app/git*.js -do - yarn test:isogit --test $testfile -done \ No newline at end of file +echo "$TEST_EXITCODE" +if [ "$TEST_EXITCODE" -eq 1 ] +then + exit 1 +fi