mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-26 19:29:24 +00:00
Making SwtImageTest have the ability to be disabled; updated actions to set disable tests.
This commit is contained in:
parent
e2a9a9d8de
commit
bbfad3070c
5
.github/workflows/gradle.yml
vendored
5
.github/workflows/gradle.yml
vendored
@ -5,7 +5,7 @@
|
|||||||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
name: Java CI with Gradle
|
name: Build AppleCommander
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -32,3 +32,6 @@ jobs:
|
|||||||
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
|
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
|
||||||
with:
|
with:
|
||||||
arguments: build
|
arguments: build
|
||||||
|
env:
|
||||||
|
# The SWT image tests fail in the pipeline; disable them.
|
||||||
|
AC_SKIP_SWT_TESTS: true
|
||||||
|
@ -21,11 +21,13 @@ package com.webcodepro.applecommander.ui.swt;
|
|||||||
|
|
||||||
import static org.hamcrest.CoreMatchers.is;
|
import static org.hamcrest.CoreMatchers.is;
|
||||||
import static org.junit.Assume.assumeThat;
|
import static org.junit.Assume.assumeThat;
|
||||||
|
import static org.junit.Assume.assumeTrue;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
import org.apache.commons.lang3.SystemUtils;
|
import org.apache.commons.lang3.SystemUtils;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,6 +35,11 @@ import org.junit.Test;
|
|||||||
* @author Rob
|
* @author Rob
|
||||||
*/
|
*/
|
||||||
public class SwtImageTest {
|
public class SwtImageTest {
|
||||||
|
@Before
|
||||||
|
public void beforeMethod() {
|
||||||
|
assumeTrue(System.getenv("AC_SKIP_SWT_TESTS") == null);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testPNG() throws Exception {
|
public void testPNG() throws Exception {
|
||||||
// SwtImage unit test fails on Mac, appears to be the thread deal. Disabling for now.
|
// SwtImage unit test fails on Mac, appears to be the thread deal. Disabling for now.
|
||||||
|
Loading…
Reference in New Issue
Block a user