├── .github └── workflows │ └── jenkins-security-scan.yml ├── .gitignore ├── LICENSE.txt ├── README.markdown ├── doc ├── jenkins-unity3d-global-configuration.png └── jenkins-unity3d-project-configuration.png ├── pom.xml └── src ├── main ├── java │ └── org │ │ └── jenkinsci │ │ └── plugins │ │ └── unity3d │ │ ├── Functions2.java │ │ ├── Unity3dBuilder.java │ │ ├── Unity3dInstallation.java │ │ ├── Win32Util.java │ │ ├── io │ │ ├── DetectFileModifiedAction.java │ │ ├── Pipe.java │ │ ├── PipeFileAfterModificationAction.java │ │ └── StreamCopyThread.java │ │ └── logs │ │ ├── EditorLogParser.java │ │ ├── EditorLogParserImpl.java │ │ ├── Unity3dEditorLogAnnotator.java │ │ ├── block │ │ ├── Block.java │ │ ├── CompileBlock.java │ │ ├── LightmapBlock.java │ │ ├── MatchedBlock.java │ │ ├── PlayerStatisticsBlock.java │ │ ├── PrepareBlock.java │ │ ├── UnityBlockList.java │ │ └── UpdateBlock.java │ │ └── line │ │ ├── Line.java │ │ └── UnityLineList.java ├── resources │ ├── index.jelly │ └── org │ │ └── jenkinsci │ │ └── plugins │ │ └── unity3d │ │ ├── Messages.properties │ │ ├── Unity3dBuilder │ │ ├── config.jelly │ │ ├── global.jelly │ │ ├── help-argLine.html │ │ ├── help-name.html │ │ └── help.html │ │ └── Unity3dInstallation │ │ └── help-home.html └── webapp │ └── help-globalArgLine.html └── test ├── java └── org │ └── jenkinsci │ └── plugins │ └── unity3d │ ├── IntegrationTests.java │ ├── Unity3dBuilderTest.java │ ├── io │ ├── PipeFileAfterModificationActionTest.java │ └── PipeTest.java │ └── logs │ └── EditorLogParserImplTest.java └── resources ├── example_Editor.log └── org └── jenkinsci └── plugins └── unity3d └── IntegrationTests ├── testEditorException ├── config.xml ├── jobs │ └── test_unity3d │ │ ├── config.xml │ │ └── workspace │ │ ├── Assets │ │ ├── Editor.meta │ │ └── Editor │ │ │ ├── Builder.cs │ │ │ └── Builder.cs.meta │ │ └── ProjectSettings │ │ ├── AudioManager.asset │ │ ├── DynamicsManager.asset │ │ ├── EditorBuildSettings.asset │ │ ├── EditorSettings.asset │ │ ├── GraphicsSettings.asset │ │ ├── InputManager.asset │ │ ├── NavMeshLayers.asset │ │ ├── NetworkManager.asset │ │ ├── Physics2DSettings.asset │ │ ├── ProjectSettings.asset │ │ ├── QualitySettings.asset │ │ ├── TagManager.asset │ │ └── TimeManager.asset └── org.jenkinsci.plugins.unity3d.Unity3dBuilder.xml ├── testEditorExceptionWithCustomLogFile ├── config.xml ├── jobs │ └── test_unity3d │ │ ├── config.xml │ │ └── workspace │ │ ├── Assets │ │ ├── Editor.meta │ │ └── Editor │ │ │ ├── Builder.cs │ │ │ └── Builder.cs.meta │ │ └── ProjectSettings │ │ ├── AudioManager.asset │ │ ├── DynamicsManager.asset │ │ ├── EditorBuildSettings.asset │ │ ├── EditorSettings.asset │ │ ├── GraphicsSettings.asset │ │ ├── InputManager.asset │ │ ├── NavMeshLayers.asset │ │ ├── NetworkManager.asset │ │ ├── Physics2DSettings.asset │ │ ├── ProjectSettings.asset │ │ ├── QualitySettings.asset │ │ ├── TagManager.asset │ │ └── TimeManager.asset └── org.jenkinsci.plugins.unity3d.Unity3dBuilder.xml └── testExpectADifferentExitCode ├── config.xml ├── jobs └── test_unity3d │ ├── config.xml │ └── workspace │ ├── Assets │ ├── IntegrationTests.meta │ ├── IntegrationTests │ │ ├── IntegrationPartialFailTests.cs │ │ ├── IntegrationPartialFailTests.cs.meta │ │ ├── IntegrationPartialFailTests.unity │ │ ├── IntegrationPartialFailTests.unity.meta │ │ ├── IntegrationTotalFailTests.cs │ │ ├── IntegrationTotalFailTests.cs.meta │ │ ├── IntegrationTotalFailTests.unity │ │ └── IntegrationTotalFailTests.unity.meta │ ├── UnityTestTools.meta │ └── UnityTestTools │ │ ├── Assertions.meta │ │ ├── Assertions │ │ ├── AssertionComponent.cs │ │ ├── AssertionComponent.cs.meta │ │ ├── AssertionException.cs │ │ ├── AssertionException.cs.meta │ │ ├── Assertions.cs │ │ ├── Assertions.cs.meta │ │ ├── CheckMethod.cs │ │ ├── CheckMethod.cs.meta │ │ ├── Comparers.meta │ │ ├── Comparers │ │ │ ├── ActionBase.cs │ │ │ ├── ActionBase.cs.meta │ │ │ ├── BoolComparer.cs │ │ │ ├── BoolComparer.cs.meta │ │ │ ├── ColliderComparer.cs │ │ │ ├── ColliderComparer.cs.meta │ │ │ ├── ComparerBase.cs │ │ │ ├── ComparerBase.cs.meta │ │ │ ├── FloatComparer.cs │ │ │ ├── FloatComparer.cs.meta │ │ │ ├── GeneralComparer.cs │ │ │ ├── GeneralComparer.cs.meta │ │ │ ├── IntComparer.cs │ │ │ ├── IntComparer.cs.meta │ │ │ ├── IsRenderedByCamera.cs │ │ │ ├── IsRenderedByCamera.cs.meta │ │ │ ├── StringComparer.cs │ │ │ ├── StringComparer.cs.meta │ │ │ ├── TransformComparer.cs │ │ │ ├── TransformComparer.cs.meta │ │ │ ├── ValueDoesNotChange.cs │ │ │ ├── ValueDoesNotChange.cs.meta │ │ │ ├── Vector2Comparer.cs │ │ │ ├── Vector2Comparer.cs.meta │ │ │ ├── Vector3Comparer.cs │ │ │ ├── Vector3Comparer.cs.meta │ │ │ ├── Vector4Comparer.cs │ │ │ ├── Vector4Comparer.cs.meta │ │ │ ├── VectorComparerBase.cs │ │ │ └── VectorComparerBase.cs.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── AssertionComponentEditor.cs │ │ │ ├── AssertionComponentEditor.cs.meta │ │ │ ├── AssertionExplorerWindow.cs │ │ │ ├── AssertionExplorerWindow.cs.meta │ │ │ ├── AssertionListRenderer.cs │ │ │ ├── AssertionListRenderer.cs.meta │ │ │ ├── AssertionStripper.cs │ │ │ ├── AssertionStripper.cs.meta │ │ │ ├── DropDownControl.cs │ │ │ ├── DropDownControl.cs.meta │ │ │ ├── GroupByComparerRenderer.cs │ │ │ ├── GroupByComparerRenderer.cs.meta │ │ │ ├── GroupByExecutionMethodRenderer.cs │ │ │ ├── GroupByExecutionMethodRenderer.cs.meta │ │ │ ├── GroupByGORenderer.cs │ │ │ ├── GroupByGORenderer.cs.meta │ │ │ ├── GroupByNothingRenderer.cs │ │ │ ├── GroupByNothingRenderer.cs.meta │ │ │ ├── GroupByTestsRenderer.cs │ │ │ ├── GroupByTestsRenderer.cs.meta │ │ │ ├── PropertyPathSelector.cs │ │ │ ├── PropertyPathSelector.cs.meta │ │ │ ├── PropertyResolver.cs │ │ │ └── PropertyResolver.cs.meta │ │ ├── InvalidPathException.cs │ │ ├── InvalidPathException.cs.meta │ │ ├── MemberResolver.cs │ │ └── MemberResolver.cs.meta │ │ ├── Common.meta │ │ ├── Common │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── Icons.cs │ │ │ ├── Icons.cs.meta │ │ │ ├── ProjectSettingsBase.cs │ │ │ ├── ProjectSettingsBase.cs.meta │ │ │ ├── ResultWriter.meta │ │ │ ├── ResultWriter │ │ │ │ ├── ResultSummarizer.cs │ │ │ │ ├── ResultSummarizer.cs.meta │ │ │ │ ├── StackTraceFilter.cs │ │ │ │ ├── StackTraceFilter.cs.meta │ │ │ │ ├── XmlResultWriter.cs │ │ │ │ └── XmlResultWriter.cs.meta │ │ │ ├── Styles.cs │ │ │ ├── Styles.cs.meta │ │ │ ├── icons.meta │ │ │ └── icons │ │ │ │ ├── create-darktheme.png │ │ │ │ ├── create-darktheme.png.meta │ │ │ │ ├── create-lighttheme.png │ │ │ │ ├── create-lighttheme.png.meta │ │ │ │ ├── failed.png │ │ │ │ ├── failed.png.meta │ │ │ │ ├── ignored.png │ │ │ │ ├── ignored.png.meta │ │ │ │ ├── inconclusive.png │ │ │ │ ├── inconclusive.png.meta │ │ │ │ ├── normal.png │ │ │ │ ├── normal.png.meta │ │ │ │ ├── options-darktheme.png │ │ │ │ ├── options-darktheme.png.meta │ │ │ │ ├── options-lighttheme.png │ │ │ │ ├── options-lighttheme.png.meta │ │ │ │ ├── passed.png │ │ │ │ ├── passed.png.meta │ │ │ │ ├── play-darktheme.png │ │ │ │ ├── play-darktheme.png.meta │ │ │ │ ├── play-lighttheme.png │ │ │ │ ├── play-lighttheme.png.meta │ │ │ │ ├── play_selected-darktheme.png │ │ │ │ ├── play_selected-darktheme.png.meta │ │ │ │ ├── play_selected-lighttheme.png │ │ │ │ ├── play_selected-lighttheme.png.meta │ │ │ │ ├── rerun-darktheme.png │ │ │ │ ├── rerun-darktheme.png.meta │ │ │ │ ├── rerun-lighttheme.png │ │ │ │ ├── rerun-lighttheme.png.meta │ │ │ │ ├── stopwatch.png │ │ │ │ └── stopwatch.png.meta │ │ ├── ITestResult.cs │ │ ├── ITestResult.cs.meta │ │ ├── Settings.meta │ │ ├── Settings │ │ │ ├── IntegrationTestsRunnerSettings.asset │ │ │ ├── IntegrationTestsRunnerSettings.asset.meta │ │ │ ├── PlatformRunnerSettings.asset │ │ │ ├── PlatformRunnerSettings.asset.meta │ │ │ ├── UnitTestsRunnerSettings.asset │ │ │ └── UnitTestsRunnerSettings.asset.meta │ │ ├── TestResultState.cs │ │ └── TestResultState.cs.meta │ │ ├── IntegrationTestsFramework.meta │ │ ├── IntegrationTestsFramework │ │ ├── TestRunner.meta │ │ └── TestRunner │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ ├── Batch.cs │ │ │ ├── Batch.cs.meta │ │ │ ├── IntegrationTestsRunnerSettings.cs │ │ │ ├── IntegrationTestsRunnerSettings.cs.meta │ │ │ ├── IntegrationTestsRunnerWindow.cs │ │ │ ├── IntegrationTestsRunnerWindow.cs.meta │ │ │ ├── PlatformRunner.meta │ │ │ ├── PlatformRunner │ │ │ │ ├── NetworkResultsReceiver.cs │ │ │ │ ├── NetworkResultsReceiver.cs.meta │ │ │ │ ├── PlatformRunner.cs │ │ │ │ ├── PlatformRunner.cs.meta │ │ │ │ ├── PlatformRunnerConfiguration.cs │ │ │ │ ├── PlatformRunnerConfiguration.cs.meta │ │ │ │ ├── PlatformRunnerSettings.cs │ │ │ │ ├── PlatformRunnerSettings.cs.meta │ │ │ │ ├── PlatformRunnerSettingsWindow.cs │ │ │ │ ├── PlatformRunnerSettingsWindow.cs.meta │ │ │ │ ├── PlayerSettingConfigurator.cs │ │ │ │ └── PlayerSettingConfigurator.cs.meta │ │ │ ├── Renderer.meta │ │ │ ├── Renderer │ │ │ │ ├── IntegrationTestGroupLine.cs │ │ │ │ ├── IntegrationTestGroupLine.cs.meta │ │ │ │ ├── IntegrationTestLine.cs │ │ │ │ ├── IntegrationTestLine.cs.meta │ │ │ │ ├── IntegrationTestRendererBase.cs │ │ │ │ └── IntegrationTestRendererBase.cs.meta │ │ │ ├── TestComponentEditor.cs │ │ │ └── TestComponentEditor.cs.meta │ │ │ ├── ITestRunnerCallback.cs │ │ │ ├── ITestRunnerCallback.cs.meta │ │ │ ├── IntegrationTest.cs │ │ │ ├── IntegrationTest.cs.meta │ │ │ ├── IntegrationTestAttribute.cs │ │ │ ├── IntegrationTestAttribute.cs.meta │ │ │ ├── IntegrationTestsProvider.cs │ │ │ ├── IntegrationTestsProvider.cs.meta │ │ │ ├── NetworkResultSender.cs │ │ │ ├── NetworkResultSender.cs.meta │ │ │ ├── ResultDTO.cs │ │ │ ├── ResultDTO.cs.meta │ │ │ ├── TestComponent.cs │ │ │ ├── TestComponent.cs.meta │ │ │ ├── TestResult.cs │ │ │ ├── TestResult.cs.meta │ │ │ ├── TestResultRenderer.cs │ │ │ ├── TestResultRenderer.cs.meta │ │ │ ├── TestRunner.cs │ │ │ ├── TestRunner.cs.meta │ │ │ ├── TestRunnerCallbackList.cs │ │ │ ├── TestRunnerCallbackList.cs.meta │ │ │ ├── TestRunnerConfigurator.cs │ │ │ └── TestRunnerConfigurator.cs.meta │ │ ├── LICENSE.txt │ │ ├── LICENSE.txt.meta │ │ ├── UnitTesting.meta │ │ ├── UnitTesting │ │ ├── Editor.meta │ │ └── Editor │ │ │ ├── Batch.cs │ │ │ ├── Batch.cs.meta │ │ │ ├── NSubstitute.meta │ │ │ ├── NSubstitute │ │ │ ├── NSubstitute.dll │ │ │ └── NSubstitute.dll.meta │ │ │ ├── NUnit.meta │ │ │ ├── NUnit │ │ │ ├── Libs.meta │ │ │ ├── Libs │ │ │ │ ├── Mono.Cecil.Mdb.dll │ │ │ │ ├── Mono.Cecil.Mdb.dll.meta │ │ │ │ ├── Mono.Cecil.dll │ │ │ │ ├── Mono.Cecil.dll.meta │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.core.dll.meta │ │ │ │ ├── nunit.core.interfaces.dll │ │ │ │ ├── nunit.core.interfaces.dll.meta │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── nunit.framework.dll.meta │ │ │ ├── Renderer.meta │ │ │ └── Renderer │ │ │ │ ├── GroupLine.cs │ │ │ │ ├── GroupLine.cs.meta │ │ │ │ ├── RenderingOptions.cs │ │ │ │ ├── RenderingOptions.cs.meta │ │ │ │ ├── TestLine.cs │ │ │ │ ├── TestLine.cs.meta │ │ │ │ ├── UnitTestRendererLine.cs │ │ │ │ └── UnitTestRendererLine.cs.meta │ │ │ ├── TestRunner.meta │ │ │ ├── TestRunner │ │ │ ├── BackgroundRunner.cs │ │ │ ├── BackgroundRunner.cs.meta │ │ │ ├── GuiHelper.cs │ │ │ ├── GuiHelper.cs.meta │ │ │ ├── ITestRunnerCallback.cs │ │ │ ├── ITestRunnerCallback.cs.meta │ │ │ ├── IUnitTestEngine.cs │ │ │ ├── IUnitTestEngine.cs.meta │ │ │ ├── NUnitExtensions.cs │ │ │ ├── NUnitExtensions.cs.meta │ │ │ ├── NUnitTestEngine.cs │ │ │ ├── NUnitTestEngine.cs.meta │ │ │ ├── TestRunner.cs │ │ │ ├── TestRunner.cs.meta │ │ │ ├── TestRunnerCallbackList.cs │ │ │ ├── TestRunnerCallbackList.cs.meta │ │ │ ├── UnitTestInfo.cs │ │ │ ├── UnitTestInfo.cs.meta │ │ │ ├── UnitTestResult.cs │ │ │ ├── UnitTestResult.cs.meta │ │ │ ├── UnitTestView.cs │ │ │ └── UnitTestView.cs.meta │ │ │ ├── UnitTestsRunnerSettings.cs │ │ │ ├── UnitTestsRunnerSettings.cs.meta │ │ │ ├── UnityUnitTest.cs │ │ │ └── UnityUnitTest.cs.meta │ │ ├── changelog.txt │ │ └── changelog.txt.meta │ └── ProjectSettings │ ├── AudioManager.asset │ ├── DynamicsManager.asset │ ├── EditorBuildSettings.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── InputManager.asset │ ├── NavMeshLayers.asset │ ├── NetworkManager.asset │ ├── Physics2DSettings.asset │ ├── ProjectSettings.asset │ ├── QualitySettings.asset │ ├── TagManager.asset │ └── TimeManager.asset └── org.jenkinsci.plugins.unity3d.Unity3dBuilder.xml /.github/workflows/jenkins-security-scan.yml: -------------------------------------------------------------------------------- 1 | name: Jenkins Security Scan 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | types: [ opened, synchronize, reopened ] 9 | workflow_dispatch: 10 | 11 | permissions: 12 | security-events: write 13 | contents: read 14 | actions: read 15 | 16 | jobs: 17 | security-scan: 18 | uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2 19 | with: 20 | java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate. 21 | # java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default. 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | target 3 | *.iml 4 | work 5 | .project 6 | .classpath 7 | .settings/org.eclipse.jdt.core.prefs 8 | src/test/resources/**/workspace/Library/ 9 | 10 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2011-, Jerome Lacoste 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /doc/jenkins-unity3d-global-configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/doc/jenkins-unity3d-global-configuration.png -------------------------------------------------------------------------------- /doc/jenkins-unity3d-project-configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/doc/jenkins-unity3d-project-configuration.png -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/Functions2.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d; 2 | 3 | class Functions2 { 4 | private static final String OS_NAME = System.getProperty("os.name"); 5 | private static final boolean IS_OS_LINUX = getOSMatchesName("Linux") || getOSMatchesName("LINUX"); 6 | private static final boolean IS_OS_MAC = getOSMatchesName("Mac"); 7 | 8 | public static boolean isMac() { 9 | return IS_OS_MAC; 10 | } 11 | public static boolean isLinux() { 12 | return IS_OS_LINUX; 13 | } 14 | 15 | private static boolean getOSMatchesName(String osNamePrefix) { 16 | return isOSNameMatch(OS_NAME, osNamePrefix); 17 | } 18 | static boolean isOSNameMatch(String osName, String osNamePrefix) { 19 | if (osName == null) { 20 | return false; 21 | } 22 | return osName.startsWith(osNamePrefix); 23 | } 24 | } -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/Win32Util.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | import com.sun.jna.Library; 7 | import com.sun.jna.Native; 8 | import com.sun.jna.NativeMapped; 9 | import com.sun.jna.PointerType; 10 | import com.sun.jna.win32.W32APIFunctionMapper; 11 | import com.sun.jna.win32.W32APITypeMapper; 12 | 13 | 14 | public class Win32Util { 15 | 16 | static String getLocalAppData() { 17 | HWND hwndOwner = null; 18 | int nFolder = Shell32.CSIDL_LOCAL_APPDATA; 19 | HANDLE hToken = null; 20 | int dwFlags = Shell32.SHGFP_TYPE_CURRENT; 21 | char[] pszPath = new char[Shell32.MAX_PATH]; 22 | int hResult = Shell32.INSTANCE.SHGetFolderPath(hwndOwner, nFolder, hToken, dwFlags, pszPath); 23 | if (Shell32.S_OK == hResult) { 24 | String path = new String(pszPath); 25 | int len = path.indexOf('\0'); 26 | return path.substring(0, len); 27 | } else { 28 | throw new RuntimeException("Unable to find PATH under CSIDL_LOCAL_APPDATA [" + hResult + "]"); 29 | } 30 | 31 | } 32 | 33 | private static Map OPTIONS = new HashMap(); 34 | static { 35 | OPTIONS.put(Library.OPTION_TYPE_MAPPER, W32APITypeMapper.UNICODE); 36 | OPTIONS.put(Library.OPTION_FUNCTION_MAPPER, 37 | W32APIFunctionMapper.UNICODE); 38 | } 39 | static class HANDLE extends PointerType implements NativeMapped { 40 | } 41 | 42 | static class HWND extends HANDLE { 43 | } 44 | 45 | static interface Shell32 extends Library { 46 | public static final int MAX_PATH = 260; 47 | public static final int CSIDL_LOCAL_APPDATA = 0x001c; 48 | public static final int SHGFP_TYPE_CURRENT = 0; 49 | //public static final int SHGFP_TYPE_DEFAULT = 1; 50 | public static final int S_OK = 0; 51 | 52 | static Shell32 INSTANCE = (Shell32) Native.loadLibrary("shell32", 53 | Shell32.class, OPTIONS); 54 | 55 | /** 56 | * see http://msdn.microsoft.com/en-us/library/bb762181(VS.85).aspx 57 | * 58 | * HRESULT SHGetFolderPath( HWND hwndOwner, int nFolder, HANDLE hToken, 59 | * DWORD dwFlags, LPTSTR pszPath); 60 | */ 61 | public int SHGetFolderPath(HWND hwndOwner, int nFolder, HANDLE hToken, 62 | int dwFlags, char[] pszPath); 63 | 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/io/DetectFileModifiedAction.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.io; 2 | 3 | import java.io.File; 4 | import java.io.FileNotFoundException; 5 | import java.util.concurrent.Callable; 6 | 7 | /** 8 | * A Callable that waits until a file has been created, deleted or modified. 9 | *

10 | * The task checks for changes in either the last modified timestamp (precise up to the second) or the file size to detect a change. 11 | *

12 | * The task cannot currently be stopped, and its time between checks is hardcoded (50 msec). 13 | * 14 | * @author Jerome Lacoste 15 | */ 16 | public class DetectFileModifiedAction implements Callable { 17 | private String path; 18 | private long origLastModified; 19 | private long origSize; 20 | private boolean origExists; 21 | private final int timeoutBetweenChecks; 22 | 23 | public DetectFileModifiedAction(String path) { 24 | this.path = path; 25 | File orig = new File(path); 26 | origExists = orig.exists(); 27 | origLastModified = origExists ? orig.lastModified() : 0; 28 | origSize = origExists ? orig.length() : -1; 29 | timeoutBetweenChecks = 50; 30 | } 31 | 32 | public File call() throws FileNotFoundException { 33 | while (true) { 34 | File file = new File(path); 35 | if (hasChanged(file)) { 36 | return file; 37 | } 38 | synchronized (this) { 39 | try { 40 | wait(timeoutBetweenChecks); 41 | } catch (InterruptedException e) { 42 | return null; 43 | } 44 | } 45 | } 46 | } 47 | 48 | private boolean hasChanged(File file) { 49 | if (!origExists) return file.exists(); 50 | else return file.length() != origSize || file.lastModified() > origLastModified; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/io/Pipe.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.io; 2 | 3 | import hudson.Launcher; 4 | import hudson.remoting.FastPipedInputStream; 5 | import hudson.remoting.FastPipedOutputStream; 6 | import hudson.remoting.RemoteOutputStream; 7 | 8 | import java.io.InputStream; 9 | import java.io.IOException; 10 | import java.io.PipedInputStream; 11 | import java.io.PipedOutputStream; 12 | import java.io.OutputStream; 13 | 14 | /** 15 | * A Pipe that works for distributed and non distributed scenarios. 16 | * Jenkins's Pipe doesn't work for non distributed scenarios. 17 | * 18 | * Note: that java.io.Piped*Stream are not thread friendly and cause issues like JENKINS-23958. 19 | * See comments in the issue for details. 20 | * 21 | * @author Jerome Lacoste 22 | */ 23 | public class Pipe { 24 | private InputStream in; 25 | private OutputStream os; 26 | 27 | public Pipe(InputStream is, OutputStream os) { 28 | this.in = is; 29 | this.os = os; 30 | } 31 | 32 | public InputStream getIn() { 33 | return in; 34 | } 35 | 36 | public OutputStream getOut() { 37 | return os; 38 | } 39 | 40 | /* 41 | // This breaks our PipeTest 42 | public static hudson.remoting.Pipe createRemoteToLocal3(Launcher launcher) throws IOException { 43 | return hudson.remoting.Pipe.createRemoteToLocal(); 44 | } 45 | */ 46 | 47 | public static Pipe createRemoteToLocal(Launcher launcher) throws IOException { 48 | FastPipedInputStream is = new FastPipedInputStream(); 49 | FastPipedOutputStream pos = new FastPipedOutputStream(is); 50 | 51 | boolean isLocal = launcher instanceof Launcher.LocalLauncher; 52 | OutputStream os = isLocal ? pos : new RemoteOutputStream(pos); 53 | return new Pipe(is, os); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/EditorLogParser.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs; 2 | 3 | 4 | public interface EditorLogParser { 5 | void log(String line); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/Block.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | import java.util.regex.Matcher; 4 | import java.util.regex.Pattern; 5 | 6 | 7 | /** 8 | * A matchable block of text 9 | */ 10 | public class Block { 11 | protected String beginning; 12 | protected String end; 13 | protected String name; 14 | protected MatchType beginMatchType = MatchType.Inclusive; 15 | protected MatchType endMatchType = MatchType.Inclusive; 16 | 17 | protected Pattern beginPattern; 18 | protected Pattern endPattern; 19 | protected Matcher beginMatcher; 20 | protected Matcher endMatcher; 21 | 22 | 23 | public void init() 24 | { 25 | beginPattern = Pattern.compile(beginning); 26 | endPattern = Pattern.compile(end); 27 | beginMatcher = beginPattern.matcher(""); 28 | endMatcher = endPattern.matcher(""); 29 | } 30 | 31 | public enum MatchType { 32 | None, 33 | Inclusive, 34 | Exclusive 35 | } 36 | 37 | 38 | protected MatchedBlock newMatchBlock(Matcher matcher, String message) 39 | { 40 | String blockName = name; 41 | if (matcher.groupCount() > 0) { 42 | blockName = name + ": " + matcher.group(1); 43 | } 44 | return new MatchedBlock(this, blockName, beginMatchType); 45 | } 46 | 47 | public MatchedBlock matchesBeginning(String message) { 48 | beginMatcher.reset(message); 49 | if (beginMatcher.matches()) { 50 | return newMatchBlock(beginMatcher, message); 51 | } else { 52 | return null; 53 | } 54 | } 55 | 56 | public MatchType matchesEnd(String message) { 57 | endMatcher.reset(message); 58 | if (endMatcher.matches()) 59 | return endMatchType; 60 | else 61 | return MatchType.None; 62 | } 63 | 64 | public String getName() { 65 | return name; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/CompileBlock.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | /** 4 | * Created by IntelliJ IDEA. 5 | * User: clement.dagneau 6 | * Date: 15/12/2011 7 | * Time: 16:31 8 | * To change this template use File | Settings | File Templates. 9 | */ 10 | public class CompileBlock extends Block { 11 | public CompileBlock() { 12 | beginning = "-----Compiler Commandline Arguments:"; 13 | end = "-----EndCompilerOutput---------------"; 14 | 15 | name = "Compile"; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/LightmapBlock.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | /** 4 | * Created by IntelliJ IDEA. 5 | * User: markb 6 | * Date: 20/12/2011 7 | * Time: 16:32 8 | */ 9 | public class LightmapBlock extends Block { 10 | public LightmapBlock() { 11 | name = "Lightmap"; 12 | beginning = "---- Lightmapping Start for (.*) ----"; 13 | end = "---- Lightmapping End for (.*) ----"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/MatchedBlock.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | /** 4 | * store a matched block + some state 5 | */ 6 | public class MatchedBlock { 7 | 8 | public final Block block; 9 | public final String name; 10 | public final Block.MatchType matchType; 11 | 12 | public MatchedBlock(Block block, String name, Block.MatchType matchType) 13 | { 14 | this.block = block; 15 | this.name = name; 16 | this.matchType = matchType; 17 | } 18 | 19 | public String getName() 20 | { 21 | return name; 22 | } 23 | 24 | public Block.MatchType matchesEnd(String message) 25 | { 26 | return block.matchesEnd(message); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/PlayerStatisticsBlock.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | /** 4 | * Created by IntelliJ IDEA. 5 | * User: clement.dagneau 6 | * Date: 14/12/2011 7 | * Time: 14:34 8 | * To change this template use File | Settings | File Templates. 9 | */ 10 | public class PlayerStatisticsBlock extends Block { 11 | public PlayerStatisticsBlock() { 12 | beginning = "\\*\\*\\*Player size statistics\\*\\*\\*"; 13 | end = "Unloading.*"; 14 | endMatchType = MatchType.Exclusive; 15 | 16 | name = "Player statistics"; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/PrepareBlock.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | /** 4 | * Created by IntelliJ IDEA. 5 | * User: markb 6 | * Date: 20/12/2011 7 | * Time: 16:19 8 | */ 9 | public class PrepareBlock extends Block { 10 | 11 | public PrepareBlock() { 12 | name = "Prepare Build"; 13 | beginning = "---- PrepareBuild Start ----"; 14 | end = "---- PrepareBuild End ----"; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/UnityBlockList.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | /** 7 | * Created by IntelliJ IDEA. 8 | * User: clement.dagneau 9 | * Date: 16/12/2011 10 | * Time: 09:52 11 | */ 12 | public class UnityBlockList { 13 | static public List editorLogBlocks = Arrays.asList( 14 | new PlayerStatisticsBlock(), 15 | new CompileBlock(), 16 | new PrepareBlock(), 17 | new LightmapBlock(), 18 | new UpdateBlock() 19 | ); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/block/UpdateBlock.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.block; 2 | 3 | 4 | public class UpdateBlock extends Block { 5 | public UpdateBlock() { 6 | beginning = "Updating (.+) - GUID: .*"; 7 | end = "\\s*done: hash - .+"; 8 | 9 | name = "Update"; 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/line/Line.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.line; 2 | 3 | /** 4 | * Created by IntelliJ IDEA. 5 | * User: clement.dagneau 6 | * Date: 15/12/2011 7 | * Time: 16:48 8 | * To change this template use File | Settings | File Templates. 9 | */ 10 | public class Line { 11 | public enum Type { 12 | Normal, 13 | Warning, 14 | Failure, 15 | Error 16 | } 17 | 18 | protected String regex; 19 | protected Type type; 20 | 21 | public Line(String regex, Type type) { 22 | this.regex = regex; 23 | this.type = type; 24 | } 25 | 26 | public boolean matches(String message) { 27 | return message.matches(regex); 28 | } 29 | 30 | public Type getType() { 31 | return type; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/unity3d/logs/line/UnityLineList.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs.line; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | /** 7 | * Created by IntelliJ IDEA. 8 | * User: clement.dagneau 9 | * Date: 15/12/2011 10 | * Time: 16:51 11 | */ 12 | public class UnityLineList { 13 | public static List lines = Arrays.asList( 14 | 15 | // Warnings 16 | new Line("Script attached to.*?is missing or no valid script is attached.", Line.Type.Warning), 17 | new Line(".*?warning CS\\d+.*?", Line.Type.Warning), 18 | new Line("There are inconsistent line endings in the.*?", Line.Type.Warning), 19 | new Line("This might lead to incorrect line numbers in stacktraces and compiler errors.*?", Line.Type.Warning), 20 | new Line("WARNING.*", Line.Type.Warning), 21 | 22 | // Errors 23 | new Line(".*?error CS\\d+.*?", Line.Type.Error), 24 | new Line("Compilation failed:.*", Line.Type.Error), 25 | new Line("Scripts have compiler errors\\..*", Line.Type.Error)); 26 | } -------------------------------------------------------------------------------- /src/main/resources/index.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 |

7 | This plugin can run Unity 3d Editor builds. 8 |
9 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/unity3d/Messages.properties: -------------------------------------------------------------------------------- 1 | Unity3d.ExecUnexpectedlyFailed=Unity3d plugin execution unexpectedly failed 2 | Unity3d.UnityExecFailed=Unity3d command line execution failed with status {0} 3 | Unity3d.InvalidUnityHomeConfiguration=The configured Unity3d installation directory ({0}) is not recognized as a Unity3d home directory. Remember that the plugin adds per-platform suffixes and is searching for the executable at {1}. 4 | Unity3d.UnityHomeNotFullyExpanded=Your unity home is parametrized and will be resolved at runtime. Remember that the plugin adds per-platform suffixes and is searching for the executable at {0} 5 | Unity3d.NoUnity3dInstallation=No Unity3d Installation on this node 6 | Unity3d.BuildMarkedAsUnstableBecauseOfStatus=Unity3d command line execution returned non zero status {0}. Build marked as unstable per configuration. 7 | Unity3d.InvalidParamUnstableReturnCodes={0} couldn't be parsed as a comma separated list of integers -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/unity3d/Unity3dBuilder/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/unity3d/Unity3dBuilder/global.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/unity3d/Unity3dBuilder/help-argLine.html: -------------------------------------------------------------------------------- 1 |
2 | The full command line that comes after the executable. Typically something like: 3 |

4 | -quit -batchmode -executeMethod YourEditorScript.YourBuildMethod [-nographics] or
5 | -quit -batchmode -buildWindowsPlayer path/to/your/build.exe or
6 | -quit -batchmode -buildOSXPlayer path/to/your/build.app
7 | 8 |

If this value isn't set, the globalArgLine is used. 9 | 10 |

11 | Note: we make little to no attempt to detect conflicting arguments or arguments not suitable to the platform neither at configuration nor at runtime. 12 |

If the specified command line contains no -projectPath argument, the plugin automatically adds one with the proper parameter (the workspace of the project on the target machine). 13 | This is to make sure unity builds the proper project. Otherwise unity would reuse the last opened project. You can override it, but this hasn't been thoroughly tested. 14 |

If your build agent have multiple executors (which you should probably do), it is highly recommended to make use of a -logFile argument to avoid letting Unityed write to the standard editor.log concurrently. A recommended practise is to use something like -logFile "$WORKSPACE/unity3d_editor.log". 15 |

16 | See the official Editor command line arguments documentation. 17 |

18 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/unity3d/Unity3dBuilder/help-name.html: -------------------------------------------------------------------------------- 1 |
2 | The unity3d installation. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/unity3d/Unity3dBuilder/help.html: -------------------------------------------------------------------------------- 1 |

For projects that use Unity3d as the build system.
2 | This causes Jenkins to invoke the Unity3d Editor with the given command line arguments.
3 | A non-zero exit code from Unity3d makes Jenkins mark the build as a failure. 4 |

-------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/unity3d/Unity3dInstallation/help-home.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | The platform independent Unity3d installation path. This path will be suffixed by "Editor/Unity.exe" on Windows and 4 | "Contents/MacOS/Unity" on Mac by the plugin. 5 |

6 |

7 | This field is optional on the jenkins master if you do not intend to build with unity3d on the master. 8 | Do not forget to configure the location of the installations on your nodes as needed. 9 |

10 | 11 |

You may use environment variables in the path and define those variables wherever you feel like (master, node, job). The final installation path will be resolved at job execution time.

12 |
13 | -------------------------------------------------------------------------------- /src/main/webapp/help-globalArgLine.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | The Unity3d globalArgLine. Allows you to define a per default global configuration for all your unity3d builds. 4 |

5 |

6 | Combined with a plugin like EnvInject, allows you to configure most of your projects in one place. 7 |

8 |

9 | For example: use: 10 |

11 |

12 | -logFile "$WORKSPACE/unity3d_editor.log" -quit -batchmode -executeMethod $UNITY_EXECUTEMETHOD $UNITY_EXTRA_ARGUMENTS 13 |

14 |

15 | and define per project the UNITY_EXECUTEMETHOD and optional UNITY_EXTRA_ARGUMENTS variables. 16 |

17 | 18 |

19 | Is overriden by the per project argLine value. 20 |

-------------------------------------------------------------------------------- /src/test/java/org/jenkinsci/plugins/unity3d/logs/EditorLogParserImplTest.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.unity3d.logs; 2 | 3 | import org.jenkinsci.plugins.unity3d.logs.block.MatchedBlock; 4 | import org.jenkinsci.plugins.unity3d.logs.line.Line; 5 | import org.junit.Test; 6 | 7 | import java.io.BufferedReader; 8 | import java.io.InputStream; 9 | import java.io.InputStreamReader; 10 | 11 | /** 12 | * Created by IntelliJ IDEA. 13 | * User: lacostej 14 | * Date: 1/11/12 15 | * Time: 8:11 AM 16 | * To change this template use File | Settings | File Templates. 17 | */ 18 | public class EditorLogParserImplTest { 19 | private EditorLogParserImpl parser = new EditorLogParserImpl(); 20 | private EditorLogParserImpl.LogListener listener; 21 | 22 | @Test 23 | public void testLog() throws Exception { 24 | listener = new EditorLogParserImpl.LogListener() { 25 | public void activityStarted(MatchedBlock block) { 26 | System.out.println("BLOCK START: " + block.getName()); 27 | } 28 | 29 | public void activityFinished(MatchedBlock block) { 30 | System.out.println("BLOCK END: " + block.getName()); 31 | } 32 | 33 | public void logMessage(String line, Line.Type type) { 34 | if (type != Line.Type.Normal) 35 | System.out.println("=== " + type + " => " + line); 36 | } 37 | }; 38 | parser.setListener(listener); 39 | InputStream is = findResource("/example_Editor.log"); 40 | BufferedReader reader = new BufferedReader(new InputStreamReader(is)); 41 | String line; 42 | while ((line = reader.readLine()) != null) { 43 | parser.log(line); 44 | } 45 | is.close(); 46 | } 47 | 48 | private InputStream findResource(String resourceName) { 49 | return this.getClass().getResourceAsStream(resourceName); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.555 5 | 1 6 | NORMAL 7 | true 8 | 9 | 10 | ${ITEM_ROOTDIR}/workspace 11 | ${ITEM_ROOTDIR}/builds 12 | 13 | 14 | 15 | 16 | 17 | 5 18 | 0 19 | 20 | 21 | 22 | All 23 | false 24 | false 25 | 26 | 27 | 28 | All 29 | 0 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | 8 | true 9 | false 10 | false 11 | false 12 | 13 | false 14 | 15 | 16 | Unity Stable 17 | -quit -batchmode -executeMethod Builder.TestEditorException 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82f96b587360d480ea8774dc59702dbd 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/Assets/Editor/Builder.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | class Builder 5 | { 6 | [MenuItem ("Custom/CI/TestEditorException")] 7 | static void TestEditorException () 8 | { 9 | throw new System.Exception("Simulated Exception"); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/Assets/Editor/Builder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f369c0b7439964564be022dbce54a6c4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | m_SpeedOfSound: 347 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_DSPBufferSize: 0 12 | m_DisableAudio: 0 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepVelocity: .150000006 10 | m_SleepAngularVelocity: .140000001 11 | m_MaxAngularVelocity: 7 12 | m_MinPenetrationForPenalty: .00999999978 13 | m_SolverIterationCount: 6 14 | m_RaycastsHitTriggers: 1 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 0 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | m_AlwaysIncludedShaders: 7 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshLayers: 5 | m_ObjectHideFlags: 0 6 | Built-in Layer 0: 7 | name: Default 8 | cost: 1 9 | editType: 2 10 | Built-in Layer 1: 11 | name: Not Walkable 12 | cost: 1 13 | editType: 0 14 | Built-in Layer 2: 15 | name: Jump 16 | cost: 2 17 | editType: 2 18 | User Layer 0: 19 | name: 20 | cost: 1 21 | editType: 3 22 | User Layer 1: 23 | name: 24 | cost: 1 25 | editType: 3 26 | User Layer 2: 27 | name: 28 | cost: 1 29 | editType: 3 30 | User Layer 3: 31 | name: 32 | cost: 1 33 | editType: 3 34 | User Layer 4: 35 | name: 36 | cost: 1 37 | editType: 3 38 | User Layer 5: 39 | name: 40 | cost: 1 41 | editType: 3 42 | User Layer 6: 43 | name: 44 | cost: 1 45 | editType: 3 46 | User Layer 7: 47 | name: 48 | cost: 1 49 | editType: 3 50 | User Layer 8: 51 | name: 52 | cost: 1 53 | editType: 3 54 | User Layer 9: 55 | name: 56 | cost: 1 57 | editType: 3 58 | User Layer 10: 59 | name: 60 | cost: 1 61 | editType: 3 62 | User Layer 11: 63 | name: 64 | cost: 1 65 | editType: 3 66 | User Layer 12: 67 | name: 68 | cost: 1 69 | editType: 3 70 | User Layer 13: 71 | name: 72 | cost: 1 73 | editType: 3 74 | User Layer 14: 75 | name: 76 | cost: 1 77 | editType: 3 78 | User Layer 15: 79 | name: 80 | cost: 1 81 | editType: 3 82 | User Layer 16: 83 | name: 84 | cost: 1 85 | editType: 3 86 | User Layer 17: 87 | name: 88 | cost: 1 89 | editType: 3 90 | User Layer 18: 91 | name: 92 | cost: 1 93 | editType: 3 94 | User Layer 19: 95 | name: 96 | cost: 1 97 | editType: 3 98 | User Layer 20: 99 | name: 100 | cost: 1 101 | editType: 3 102 | User Layer 21: 103 | name: 104 | cost: 1 105 | editType: 3 106 | User Layer 22: 107 | name: 108 | cost: 1 109 | editType: 3 110 | User Layer 23: 111 | name: 112 | cost: 1 113 | editType: 3 114 | User Layer 24: 115 | name: 116 | cost: 1 117 | editType: 3 118 | User Layer 25: 119 | name: 120 | cost: 1 121 | editType: 3 122 | User Layer 26: 123 | name: 124 | cost: 1 125 | editType: 3 126 | User Layer 27: 127 | name: 128 | cost: 1 129 | editType: 3 130 | User Layer 28: 131 | name: 132 | cost: 1 133 | editType: 3 134 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_RaycastsHitTriggers: 1 11 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 12 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | tags: 6 | - 7 | Builtin Layer 0: Default 8 | Builtin Layer 1: TransparentFX 9 | Builtin Layer 2: Ignore Raycast 10 | Builtin Layer 3: 11 | Builtin Layer 4: Water 12 | Builtin Layer 5: 13 | Builtin Layer 6: 14 | Builtin Layer 7: 15 | User Layer 8: 16 | User Layer 9: 17 | User Layer 10: 18 | User Layer 11: 19 | User Layer 12: 20 | User Layer 13: 21 | User Layer 14: 22 | User Layer 15: 23 | User Layer 16: 24 | User Layer 17: 25 | User Layer 18: 26 | User Layer 19: 27 | User Layer 20: 28 | User Layer 21: 29 | User Layer 22: 30 | User Layer 23: 31 | User Layer 24: 32 | User Layer 25: 33 | User Layer 26: 34 | User Layer 27: 35 | User Layer 28: 36 | User Layer 29: 37 | User Layer 30: 38 | User Layer 31: 39 | m_SortingLayers: 40 | - name: Default 41 | userID: 0 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/jobs/test_unity3d/workspace/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorException/org.jenkinsci.plugins.unity3d.Unity3dBuilder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Unity Stable 6 | /Applications/Unity/Hub/Editor/2022.3.24f1/Unity.app 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.555 5 | 1 6 | NORMAL 7 | true 8 | 9 | 10 | ${ITEM_ROOTDIR}/workspace 11 | ${ITEM_ROOTDIR}/builds 12 | 13 | 14 | 15 | 16 | 17 | 5 18 | 0 19 | 20 | 21 | 22 | All 23 | false 24 | false 25 | 26 | 27 | 28 | All 29 | 0 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | 8 | true 9 | false 10 | false 11 | false 12 | 13 | false 14 | 15 | 16 | Unity Stable 17 | -quit -logFile $WORKSPACE/unity3d_editor.log -batchmode -executeMethod Builder.TestEditorException 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82f96b587360d480ea8774dc59702dbd 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/Assets/Editor/Builder.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | class Builder 5 | { 6 | [MenuItem ("Custom/CI/TestEditorException")] 7 | static void TestEditorException () 8 | { 9 | throw new System.Exception("Simulated Exception"); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/Assets/Editor/Builder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f369c0b7439964564be022dbce54a6c4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | m_SpeedOfSound: 347 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_DSPBufferSize: 0 12 | m_DisableAudio: 0 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepVelocity: .150000006 10 | m_SleepAngularVelocity: .140000001 11 | m_MaxAngularVelocity: 7 12 | m_MinPenetrationForPenalty: .00999999978 13 | m_SolverIterationCount: 6 14 | m_RaycastsHitTriggers: 1 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 0 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | m_AlwaysIncludedShaders: 7 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshLayers: 5 | m_ObjectHideFlags: 0 6 | Built-in Layer 0: 7 | name: Default 8 | cost: 1 9 | editType: 2 10 | Built-in Layer 1: 11 | name: Not Walkable 12 | cost: 1 13 | editType: 0 14 | Built-in Layer 2: 15 | name: Jump 16 | cost: 2 17 | editType: 2 18 | User Layer 0: 19 | name: 20 | cost: 1 21 | editType: 3 22 | User Layer 1: 23 | name: 24 | cost: 1 25 | editType: 3 26 | User Layer 2: 27 | name: 28 | cost: 1 29 | editType: 3 30 | User Layer 3: 31 | name: 32 | cost: 1 33 | editType: 3 34 | User Layer 4: 35 | name: 36 | cost: 1 37 | editType: 3 38 | User Layer 5: 39 | name: 40 | cost: 1 41 | editType: 3 42 | User Layer 6: 43 | name: 44 | cost: 1 45 | editType: 3 46 | User Layer 7: 47 | name: 48 | cost: 1 49 | editType: 3 50 | User Layer 8: 51 | name: 52 | cost: 1 53 | editType: 3 54 | User Layer 9: 55 | name: 56 | cost: 1 57 | editType: 3 58 | User Layer 10: 59 | name: 60 | cost: 1 61 | editType: 3 62 | User Layer 11: 63 | name: 64 | cost: 1 65 | editType: 3 66 | User Layer 12: 67 | name: 68 | cost: 1 69 | editType: 3 70 | User Layer 13: 71 | name: 72 | cost: 1 73 | editType: 3 74 | User Layer 14: 75 | name: 76 | cost: 1 77 | editType: 3 78 | User Layer 15: 79 | name: 80 | cost: 1 81 | editType: 3 82 | User Layer 16: 83 | name: 84 | cost: 1 85 | editType: 3 86 | User Layer 17: 87 | name: 88 | cost: 1 89 | editType: 3 90 | User Layer 18: 91 | name: 92 | cost: 1 93 | editType: 3 94 | User Layer 19: 95 | name: 96 | cost: 1 97 | editType: 3 98 | User Layer 20: 99 | name: 100 | cost: 1 101 | editType: 3 102 | User Layer 21: 103 | name: 104 | cost: 1 105 | editType: 3 106 | User Layer 22: 107 | name: 108 | cost: 1 109 | editType: 3 110 | User Layer 23: 111 | name: 112 | cost: 1 113 | editType: 3 114 | User Layer 24: 115 | name: 116 | cost: 1 117 | editType: 3 118 | User Layer 25: 119 | name: 120 | cost: 1 121 | editType: 3 122 | User Layer 26: 123 | name: 124 | cost: 1 125 | editType: 3 126 | User Layer 27: 127 | name: 128 | cost: 1 129 | editType: 3 130 | User Layer 28: 131 | name: 132 | cost: 1 133 | editType: 3 134 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_RaycastsHitTriggers: 1 11 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 12 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | tags: 6 | - 7 | Builtin Layer 0: Default 8 | Builtin Layer 1: TransparentFX 9 | Builtin Layer 2: Ignore Raycast 10 | Builtin Layer 3: 11 | Builtin Layer 4: Water 12 | Builtin Layer 5: 13 | Builtin Layer 6: 14 | Builtin Layer 7: 15 | User Layer 8: 16 | User Layer 9: 17 | User Layer 10: 18 | User Layer 11: 19 | User Layer 12: 20 | User Layer 13: 21 | User Layer 14: 22 | User Layer 15: 23 | User Layer 16: 24 | User Layer 17: 25 | User Layer 18: 26 | User Layer 19: 27 | User Layer 20: 28 | User Layer 21: 29 | User Layer 22: 30 | User Layer 23: 31 | User Layer 24: 32 | User Layer 25: 33 | User Layer 26: 34 | User Layer 27: 35 | User Layer 28: 36 | User Layer 29: 37 | User Layer 30: 38 | User Layer 31: 39 | m_SortingLayers: 40 | - name: Default 41 | userID: 0 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/jobs/test_unity3d/workspace/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testEditorExceptionWithCustomLogFile/org.jenkinsci.plugins.unity3d.Unity3dBuilder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Unity Stable 6 | /Applications/Unity/Hub/Editor/2022.3.24f1/Unity.app 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.555 5 | 1 6 | NORMAL 7 | true 8 | 9 | 10 | ${ITEM_ROOTDIR}/workspace 11 | ${ITEM_ROOTDIR}/builds 12 | 13 | 14 | 15 | 16 | 17 | 5 18 | 0 19 | 20 | 21 | 22 | All 23 | false 24 | false 25 | 26 | 27 | 28 | All 29 | 0 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | 8 | true 9 | false 10 | false 11 | false 12 | 13 | false 14 | 15 | 16 | Unity Stable 17 | -quit -batchmode -executeMethod UnityTest.Batch.RunUnitTests -resultFilePath=$WORKSPACE/results.xml 18 | 1,2,3 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/IntegrationTests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d7be4b81d5fc9e46a8bb4113ddaf0b0 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/IntegrationTests/IntegrationPartialFailTests.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityTest; 4 | 5 | [IntegrationTest.DynamicTest("IntegrationPartialFailTests")] 6 | [IntegrationTest.SucceedWithAssertions] 7 | public class IntegrationPartialFailTests_Pass : MonoBehaviour 8 | { 9 | public void Awake() 10 | { 11 | IntegrationTest.Pass(); 12 | } 13 | } 14 | 15 | [IntegrationTest.DynamicTest("IntegrationPartialFailTests")] 16 | [IntegrationTest.SucceedWithAssertions] 17 | public class IntegrationPartialFailTests_Fail : MonoBehaviour 18 | { 19 | public void Awake() 20 | { 21 | IntegrationTest.Fail(); 22 | } 23 | } -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/IntegrationTests/IntegrationPartialFailTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1cc5d82d0f60394f8418bfae8117203 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/IntegrationTests/IntegrationPartialFailTests.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 082fd46e4967b5047933de699d7ca2a2 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/IntegrationTests/IntegrationTotalFailTests.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityTest; 4 | 5 | [IntegrationTest.DynamicTest("IntegrationTotalFailTests")] 6 | [IntegrationTest.SucceedWithAssertions] 7 | public class IntegrationTotalFailTests_Fail : MonoBehaviour 8 | { 9 | public void Awake() 10 | { 11 | IntegrationTest.Fail(); 12 | } 13 | } -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/IntegrationTests/IntegrationTotalFailTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f67202b59803aa4f9e7e7e9009744f6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/IntegrationTests/IntegrationTotalFailTests.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 033fad64e922c0c43a65494093e3b5dc 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b10d3a10b9d88c14699620129c35ba74 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b27b28700d3365146808b6e082748201 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/AssertionComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8bafa54482a87ac4cbd7ff1bfd1ac93a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/AssertionException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest 4 | { 5 | public class AssertionException : Exception 6 | { 7 | private AssertionComponent assertion; 8 | 9 | public AssertionException (AssertionComponent assertion) : base(assertion.Action.GetFailureMessage ()) 10 | { 11 | this.assertion = assertion; 12 | } 13 | 14 | public override string StackTrace 15 | { 16 | get 17 | { 18 | return "Created in " + assertion.GetCreationLocation (); 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/AssertionException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef3769ab00d50bc4fbb05a9a91c741d9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Assertions.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Object = UnityEngine.Object; 3 | 4 | namespace UnityTest 5 | { 6 | public static class Assertions 7 | { 8 | public static void CheckAssertions () 9 | { 10 | var assertions = Object.FindObjectsOfType (typeof (AssertionComponent)) as AssertionComponent[]; 11 | CheckAssertions (assertions); 12 | } 13 | 14 | public static void CheckAssertions (AssertionComponent assertion) 15 | { 16 | CheckAssertions (new[] {assertion}); 17 | } 18 | 19 | public static void CheckAssertions (GameObject gameObject) 20 | { 21 | CheckAssertions (gameObject.GetComponents ()); 22 | } 23 | 24 | public static void CheckAssertions (AssertionComponent[] assertions) 25 | { 26 | if (!Debug.isDebugBuild) 27 | return; 28 | foreach (var assertion in assertions) 29 | { 30 | assertion.checksPerformed++; 31 | var result = assertion.Action.Compare (); 32 | if (!result) 33 | { 34 | assertion.hasFailed = true; 35 | assertion.Action.Fail (assertion); 36 | } 37 | } 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Assertions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85280dad1e618c143bd3fb07a197b469 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/CheckMethod.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | [System.Flags] 4 | public enum CheckMethod 5 | { 6 | AfterPeriodOfTime = 1 << 0, 7 | Start = 1 << 1, 8 | Update = 1 << 2, 9 | FixedUpdate = 1 << 3, 10 | LateUpdate = 1 << 4, 11 | OnDestroy = 1 << 5, 12 | OnEnable = 1 << 6, 13 | OnDisable = 1 << 7, 14 | OnControllerColliderHit = 1 << 8, 15 | OnParticleCollision = 1 << 9, 16 | OnJointBreak = 1 << 10, 17 | OnBecameInvisible = 1 << 11, 18 | OnBecameVisible = 1 << 12, 19 | OnTriggerEnter = 1 << 13, 20 | OnTriggerExit = 1 << 14, 21 | OnTriggerStay = 1 << 15, 22 | OnCollisionEnter = 1 << 16, 23 | OnCollisionExit = 1 << 17, 24 | OnCollisionStay = 1 << 18, 25 | OnTriggerEnter2D = 1 << 19, 26 | OnTriggerExit2D = 1 << 20, 27 | OnTriggerStay2D = 1 << 21, 28 | OnCollisionEnter2D = 1 << 22, 29 | OnCollisionExit2D = 1 << 23, 30 | OnCollisionStay2D = 1 << 24, 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/CheckMethod.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbb75d1643c5a55439f8861a827f411b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb9e10c25f478c84f826ea85b03ec179 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/ActionBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4995756bd539804e8143ff1e730f806 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/BoolComparer.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public class BoolComparer : ComparerBaseGeneric 4 | { 5 | protected override bool Compare (bool a, bool b) 6 | { 7 | return a == b; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/BoolComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2586c8e41f35d2f4fadde53020bf4207 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/ColliderComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | public class ColliderComparer : ComparerBaseGeneric 7 | { 8 | public enum CompareType 9 | { 10 | Intersects, 11 | DoesNotIntersect 12 | }; 13 | 14 | public CompareType compareType; 15 | 16 | protected override bool Compare(Bounds a, Bounds b) 17 | { 18 | switch (compareType) 19 | { 20 | case CompareType.Intersects: 21 | return a.Intersects(b); 22 | case CompareType.DoesNotIntersect: 23 | return !a.Intersects(b); 24 | } 25 | throw new Exception(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/ColliderComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4eff45b2ac4067b469d7994298341db6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/ComparerBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c86508f389d643b40b6e1d7dcc1d4df2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/FloatComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest 4 | { 5 | public class FloatComparer : ComparerBaseGeneric 6 | { 7 | public enum CompareTypes 8 | { 9 | Equal, 10 | NotEqual, 11 | Greater, 12 | Less 13 | } 14 | 15 | public CompareTypes compareTypes; 16 | public double floatingPointError = 0.0001f; 17 | 18 | protected override bool Compare (float a, float b) 19 | { 20 | switch (compareTypes) 21 | { 22 | case CompareTypes.Equal: 23 | return Math.Abs (a - b) < floatingPointError; 24 | case CompareTypes.NotEqual: 25 | return Math.Abs (a - b) > floatingPointError; 26 | case CompareTypes.Greater: 27 | return a > b; 28 | case CompareTypes.Less: 29 | return a < b; 30 | } 31 | throw new Exception(); 32 | } 33 | public override int GetDepthOfSearch() 34 | { 35 | return 3; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/FloatComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4928c6c2b973874c8d4e6c9a69bb5b4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/GeneralComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest 4 | { 5 | public class GeneralComparer : ComparerBase 6 | { 7 | public enum CompareType { AEqualsB, ANotEqualsB } 8 | 9 | public CompareType compareType; 10 | 11 | protected override bool Compare (object a, object b) 12 | { 13 | if(compareType == CompareType.AEqualsB) 14 | return a.Equals (b); 15 | if (compareType == CompareType.ANotEqualsB) 16 | return !a.Equals(b); 17 | throw new Exception(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/GeneralComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 902961c69f102f4409c29b9e54258701 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/IntComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest 4 | { 5 | public class IntComparer : ComparerBaseGeneric 6 | { 7 | public enum CompareType 8 | { 9 | Equal, 10 | NotEqual, 11 | Greater, 12 | GreaterOrEqual, 13 | Less, 14 | LessOrEqual 15 | }; 16 | 17 | public CompareType compareType; 18 | 19 | protected override bool Compare (int a, int b) 20 | { 21 | switch (compareType) 22 | { 23 | case CompareType.Equal: 24 | return a == b; 25 | case CompareType.NotEqual: 26 | return a != b; 27 | case CompareType.Greater: 28 | return a > b; 29 | case CompareType.GreaterOrEqual: 30 | return a >= b; 31 | case CompareType.Less: 32 | return a < b; 33 | case CompareType.LessOrEqual: 34 | return a <= b; 35 | } 36 | throw new Exception (); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/IntComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da4a3a521c5c1494aae123742ca5c8f5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/IsRenderedByCamera.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | public class IsRenderedByCamera : ComparerBaseGeneric 7 | { 8 | public enum CompareType 9 | { 10 | IsVisible, 11 | IsNotVisible, 12 | }; 13 | 14 | public CompareType compareType; 15 | 16 | protected override bool Compare(Renderer renderer, Camera camera) 17 | { 18 | var planes = GeometryUtility.CalculateFrustumPlanes(camera); 19 | var isVisible = GeometryUtility.TestPlanesAABB(planes, renderer.bounds); 20 | switch (compareType) 21 | { 22 | case CompareType.IsVisible: 23 | return isVisible; 24 | case CompareType.IsNotVisible: 25 | return !isVisible; 26 | } 27 | throw new Exception(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/IsRenderedByCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d45a1674f5e2e04485eafef922fac41 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/StringComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest 4 | { 5 | public class StringComparer : ComparerBaseGeneric 6 | { 7 | public enum CompareType 8 | { 9 | Equal, 10 | NotEqual, 11 | Shorter, 12 | Longer 13 | } 14 | 15 | public CompareType compareType; 16 | public StringComparison comparisonType = StringComparison.Ordinal; 17 | public bool ignoreCase = false; 18 | 19 | protected override bool Compare (string a, string b) 20 | { 21 | if (ignoreCase) 22 | { 23 | a = a.ToLower (); 24 | b = b.ToLower (); 25 | } 26 | switch (compareType) 27 | { 28 | case CompareType.Equal: 29 | return String.Compare(a, b, comparisonType) == 0; 30 | case CompareType.NotEqual: 31 | return String.Compare(a, b, comparisonType) != 0; 32 | case CompareType.Longer: 33 | return String.Compare(a, b, comparisonType) > 0; 34 | case CompareType.Shorter: 35 | return String.Compare(a, b, comparisonType) < 0; 36 | } 37 | throw new Exception (); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/StringComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58783f051e477fd4e93b42ec7a43bb64 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/TransformComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | public class TransformComparer : ComparerBaseGeneric 7 | { 8 | public enum CompareType{ Equals, NotEquals } 9 | 10 | public CompareType compareType; 11 | 12 | protected override bool Compare (Transform a, Transform b) 13 | { 14 | if (compareType == CompareType.Equals) 15 | { 16 | return a.position == b.position; 17 | } 18 | if (compareType == CompareType.NotEquals) 19 | { 20 | return a.position != b.position; 21 | } 22 | throw new Exception(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/TransformComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 927f2d7e4f63632448b2a63d480e601a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/ValueDoesNotChange.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public class ValueDoesNotChange : ActionBase 4 | { 5 | private object val = null; 6 | 7 | protected override bool Compare (object a) 8 | { 9 | if (val == null) 10 | val = a; 11 | if (!val.Equals (a)) 12 | return false; 13 | return true; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/ValueDoesNotChange.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d6d16a58a17940419a1dcbff3c60ca5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/Vector2Comparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | public class Vector2Comparer : VectorComparerBase 7 | { 8 | public enum CompareType 9 | { 10 | MagnitudeEquals, 11 | MagnitudeNotEquals 12 | } 13 | 14 | public CompareType compareType; 15 | public float floatingPointError = 0.0001f; 16 | 17 | protected override bool Compare(Vector2 a, Vector2 b) 18 | { 19 | switch (compareType) 20 | { 21 | case CompareType.MagnitudeEquals: 22 | return AreVectorMagnitudeEqual(a.magnitude, 23 | b.magnitude, floatingPointError); 24 | case CompareType.MagnitudeNotEquals: 25 | return !AreVectorMagnitudeEqual(a.magnitude, 26 | b.magnitude, floatingPointError); 27 | } 28 | throw new Exception(); 29 | } 30 | public override int GetDepthOfSearch() 31 | { 32 | return 3; 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/Vector2Comparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a713db190443e814f8254a5a59014ec4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/Vector3Comparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | public class Vector3Comparer : VectorComparerBase 7 | { 8 | public enum CompareType 9 | { 10 | MagnitudeEquals, 11 | MagnitudeNotEquals 12 | } 13 | 14 | public CompareType compareType; 15 | public double floatingPointError = 0.0001f; 16 | 17 | protected override bool Compare (Vector3 a, Vector3 b) 18 | { 19 | switch (compareType) 20 | { 21 | case CompareType.MagnitudeEquals: 22 | return AreVectorMagnitudeEqual (a.magnitude, 23 | b.magnitude, floatingPointError); 24 | case CompareType.MagnitudeNotEquals: 25 | return !AreVectorMagnitudeEqual (a.magnitude, 26 | b.magnitude, floatingPointError); 27 | } 28 | throw new Exception (); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/Vector3Comparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6febd2d5046657040b3da98b7010ee29 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/Vector4Comparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | public class Vector4Comparer : VectorComparerBase 7 | { 8 | public enum CompareType 9 | { 10 | MagnitudeEquals, 11 | MagnitudeNotEquals 12 | } 13 | 14 | public CompareType compareType; 15 | public double floatingPointError; 16 | 17 | protected override bool Compare (Vector4 a, Vector4 b) 18 | { 19 | switch (compareType) 20 | { 21 | case CompareType.MagnitudeEquals: 22 | return AreVectorMagnitudeEqual (a.magnitude, 23 | b.magnitude, 24 | floatingPointError); 25 | case CompareType.MagnitudeNotEquals: 26 | return !AreVectorMagnitudeEqual (a.magnitude, 27 | b.magnitude, 28 | floatingPointError); 29 | } 30 | throw new Exception(); 31 | } 32 | public override int GetDepthOfSearch() 33 | { 34 | return 3; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/Vector4Comparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 383a85a79f164d04b8a56b0ff4e04cb7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/VectorComparerBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest 4 | { 5 | public abstract class VectorComparerBase : ComparerBaseGeneric 6 | { 7 | protected bool AreVectorMagnitudeEqual (float a, float b, double floatingPointError) 8 | { 9 | if (Math.Abs (a) < floatingPointError && Math.Abs (b) < floatingPointError) 10 | return true; 11 | if (Math.Abs (a - b) < floatingPointError) 12 | return true; 13 | return false; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Comparers/VectorComparerBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b35a237804d5eb42bd8c4e67568ae24 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a28bb39b4fb20514990895d9cb4eaea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/AssertionComponentEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd1cabf2c45d0a8489635607a6048621 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/AssertionExplorerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a1e855053e7e2f46ace1dc93f2036f2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/AssertionListRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d83c02fb0f220344da42a8213ed36cb5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/AssertionStripper.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor.Callbacks; 2 | using UnityEngine; 3 | using UnityTest; 4 | 5 | public class AssertionStripper 6 | { 7 | [PostProcessScene] 8 | public static void OnPostprocessScene () 9 | { 10 | if (Debug.isDebugBuild) return; 11 | RemoveAssertionsFromGameObjects (); 12 | } 13 | 14 | private static void RemoveAssertionsFromGameObjects () 15 | { 16 | var allAssertions = Resources.FindObjectsOfTypeAll (typeof (AssertionComponent)) as AssertionComponent[]; 17 | foreach (var assertion in allAssertions) 18 | { 19 | Object.DestroyImmediate (assertion); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/AssertionStripper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95c9cd9570a6fba4198b6e4f15e11e5e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/DropDownControl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UnityTest 6 | { 7 | [Serializable] 8 | internal class DropDownControl 9 | { 10 | private GUILayoutOption[] buttonLayoutOptions = new [] { GUILayout.ExpandWidth (true) }; 11 | public Func convertForButtonLabel = s => s.ToString (); 12 | public Func convertForGUIContent = s => s.ToString (); 13 | public Func ignoreConvertForGUIContent = t => t.Length <= 40; 14 | public Action printContextMenu = null; 15 | public string tooltip = ""; 16 | 17 | private object selectedValue; 18 | 19 | 20 | public void Draw (T selected, T[] options, Action onValueSelected) 21 | { 22 | Draw (null, 23 | selected, 24 | options, 25 | onValueSelected); 26 | } 27 | 28 | public void Draw(string label, T selected, T[] options, Action onValueSelected) 29 | { 30 | Draw (label, selected, ()=>options, onValueSelected); 31 | } 32 | 33 | public void Draw(string label, T selected, Func loadOptions, Action onValueSelected) 34 | { 35 | if (!string.IsNullOrEmpty (label)) 36 | EditorGUILayout.BeginHorizontal (); 37 | var guiContent = new GUIContent (label); 38 | var labelSize = EditorStyles.label.CalcSize(guiContent); 39 | 40 | if (!string.IsNullOrEmpty(label)) 41 | GUILayout.Label (label, EditorStyles.label, GUILayout.Width (labelSize.x)); 42 | 43 | if (GUILayout.Button(new GUIContent(convertForButtonLabel(selected), tooltip), 44 | EditorStyles.popup, buttonLayoutOptions)) 45 | { 46 | if (Event.current.button == 0) 47 | { 48 | PrintMenu(loadOptions()); 49 | } 50 | else if (printContextMenu!=null && Event.current.button == 1) 51 | printContextMenu (selected); 52 | } 53 | 54 | if (selectedValue != null) 55 | { 56 | onValueSelected ((T) selectedValue); 57 | selectedValue = null; 58 | } 59 | if (!string.IsNullOrEmpty (label)) 60 | EditorGUILayout.EndHorizontal (); 61 | } 62 | 63 | public void PrintMenu (T[] options) 64 | { 65 | var menu = new GenericMenu (); 66 | foreach (var s in options) 67 | { 68 | var localS = s; 69 | menu.AddItem(new GUIContent((ignoreConvertForGUIContent(options) ? localS.ToString() : convertForGUIContent(localS))), 70 | false, 71 | () => { selectedValue = localS;} 72 | ); 73 | } 74 | menu.ShowAsContext (); 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/DropDownControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83ec3ed09f8f2f34ea7483e055f6d76d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByComparerRenderer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace UnityTest 6 | { 7 | public class GroupByComparerRenderer : AssertionListRenderer 8 | { 9 | protected override IEnumerable> GroupResult (IEnumerable assertionComponents) 10 | { 11 | return assertionComponents.GroupBy (c => c.Action.GetType ()); 12 | } 13 | 14 | protected override string GetStringKey (Type key) 15 | { 16 | return key.Name; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByComparerRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efab536803bd0154a8a7dc78e8767ad9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByExecutionMethodRenderer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace UnityTest 6 | { 7 | public class GroupByExecutionMethodRenderer : AssertionListRenderer 8 | { 9 | protected override IEnumerable> GroupResult (IEnumerable assertionComponents) 10 | { 11 | var enumVals = Enum.GetValues (typeof (CheckMethod)).Cast (); 12 | var pairs = new List (); 13 | 14 | foreach (var checkMethod in enumVals) 15 | { 16 | var components = assertionComponents.Where (c => (c.checkMethods & checkMethod) == checkMethod); 17 | var componentPairs = components.Select ((a) => new CheckFunctionAssertionPair () {checkMethod = checkMethod, assertionComponent = a}); 18 | pairs.AddRange (componentPairs); 19 | } 20 | return pairs.GroupBy (pair => pair.checkMethod, 21 | pair => pair.assertionComponent); 22 | } 23 | 24 | private class CheckFunctionAssertionPair 25 | { 26 | public AssertionComponent assertionComponent; 27 | public CheckMethod checkMethod; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByExecutionMethodRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97340abf816b1424fa835a4f26bbdc78 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByGORenderer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | namespace UnityTest 7 | { 8 | public class GroupByGORenderer : AssertionListRenderer 9 | { 10 | protected override IEnumerable> GroupResult (IEnumerable assertionComponents) 11 | { 12 | return assertionComponents.GroupBy (c => c.gameObject); 13 | } 14 | 15 | protected override bool PrintFoldout (bool isFolded, GameObject key) 16 | { 17 | isFolded = base.PrintFoldout (isFolded, 18 | key); 19 | 20 | EditorGUILayout.ObjectField (key, 21 | typeof (GameObject), 22 | true, 23 | GUILayout.ExpandWidth (false)); 24 | 25 | return isFolded; 26 | } 27 | 28 | protected override string GetFoldoutDisplayName (GameObject key) 29 | { 30 | return key.name; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByGORenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb824de9146b42343a985aaf63beffd1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByNothingRenderer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace UnityTest 5 | { 6 | public class GroupByNothingRenderer : AssertionListRenderer 7 | { 8 | protected override IEnumerable> GroupResult (IEnumerable assertionComponents) 9 | { 10 | return assertionComponents.GroupBy (c => ""); 11 | } 12 | 13 | protected override string GetStringKey (string key) 14 | { 15 | return ""; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByNothingRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 33bf96aa461ea1d478bb757c52f51c95 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByTestsRenderer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using UnityEngine; 4 | 5 | namespace UnityTest 6 | { 7 | public class GroupByTestsRenderer : AssertionListRenderer 8 | { 9 | protected override IEnumerable> GroupResult (IEnumerable assertionComponents) 10 | { 11 | return assertionComponents.GroupBy (c => 12 | { 13 | var temp = c.transform; 14 | while (temp != null) 15 | { 16 | if (temp.GetComponent (typeof (TestComponent)) != null) return c.gameObject; 17 | temp = temp.parent.transform; 18 | } 19 | return null; 20 | }); 21 | } 22 | 23 | protected override string GetFoldoutDisplayName (GameObject key) 24 | { 25 | return key.name; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/GroupByTestsRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e577f31e55208b4d8a1774b958e6ed5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/PropertyPathSelector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6619da1897737044080bdb8bc60eff87 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/Editor/PropertyResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbbd193a27920d9478c2a766a7291d72 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/InvalidPathException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest 4 | { 5 | public class InvalidPathException : Exception 6 | { 7 | public InvalidPathException (string path) 8 | : base ("Invalid path part " + path) 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/InvalidPathException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b85786dfd1aef544bf8bb873d6a4ebb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Assertions/MemberResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80df8ef907961e34dbcc7c89b22729b9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2caba6436df568499c84c1c607ce766 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4ab061d0035ee545a936bdf8f3f8620 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/Icons.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8571844b0c115b84cbe8b3f67e8dec04 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/ProjectSettingsBase.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Linq; 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | namespace UnityTest 7 | { 8 | public abstract class ProjectSettingsBase : ScriptableObject 9 | { 10 | private static string settingsPath = Path.Combine ("UnityTestTools", "Common"); 11 | private static string settingsFolder = "Settings"; 12 | 13 | public void Save () 14 | { 15 | EditorUtility.SetDirty (this); 16 | } 17 | 18 | public static T Load () where T : ProjectSettingsBase, new () 19 | { 20 | var pathsInProject = Directory.GetDirectories ("Assets", "*", SearchOption.AllDirectories) 21 | .Where (s => s.Contains (settingsPath)); 22 | 23 | if (pathsInProject.Count () == 0) Debug.LogError ("Can't find settings path: " + settingsPath); 24 | 25 | string pathInProject = Path.Combine (pathsInProject.First (), settingsFolder); 26 | var assetPath = Path.Combine (pathInProject, typeof (T).Name) + ".asset"; 27 | var settings = AssetDatabase.LoadAssetAtPath (assetPath, typeof (T)) as T; 28 | 29 | if (settings != null) return settings; 30 | 31 | settings = CreateInstance (); 32 | Directory.CreateDirectory(pathInProject); 33 | AssetDatabase.CreateAsset (settings, assetPath); 34 | return settings; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/ProjectSettingsBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ac961be07107124a88dcb81927143d4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/ResultWriter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ffbf5a07740aa5479651bd415f52ebb 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/ResultWriter/ResultSummarizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce89106be5bd4204388d58510e4e55da 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/ResultWriter/StackTraceFilter.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Based on nUnit 2.6.2 (http://www.nunit.org/) 3 | // **************************************************************** 4 | 5 | namespace UnityTest 6 | { 7 | using System; 8 | using System.IO; 9 | 10 | /// 11 | /// Summary description for StackTraceFilter. 12 | /// 13 | public class StackTraceFilter 14 | { 15 | public static string Filter(string stack) 16 | { 17 | if(stack == null) return null; 18 | StringWriter sw = new StringWriter(); 19 | StringReader sr = new StringReader(stack); 20 | 21 | try 22 | { 23 | string line; 24 | while ((line = sr.ReadLine()) != null) 25 | { 26 | if (!FilterLine(line)) 27 | sw.WriteLine(line.Trim()); 28 | } 29 | } 30 | catch (Exception) 31 | { 32 | return stack; 33 | } 34 | return sw.ToString(); 35 | } 36 | 37 | static bool FilterLine(string line) 38 | { 39 | string[] patterns = new string[] 40 | { 41 | "NUnit.Core.TestCase", 42 | "NUnit.Core.ExpectedExceptionTestCase", 43 | "NUnit.Core.TemplateTestCase", 44 | "NUnit.Core.TestResult", 45 | "NUnit.Core.TestSuite", 46 | "NUnit.Framework.Assertion", 47 | "NUnit.Framework.Assert", 48 | "System.Reflection.MonoMethod" 49 | }; 50 | 51 | for (int i = 0; i < patterns.Length; i++) 52 | { 53 | if (line.IndexOf(patterns[i]) > 0) 54 | return true; 55 | } 56 | 57 | return false; 58 | } 59 | 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/ResultWriter/StackTraceFilter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe6b4d68575d4ba44b1d5c5c3f0e96d3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/ResultWriter/XmlResultWriter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9bba41ace7686d4ab0c400d1e7f55b7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/Styles.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | public static class Styles 7 | { 8 | public static GUIStyle buttonLeft; 9 | public static GUIStyle buttonMid; 10 | public static GUIStyle buttonRight; 11 | public static GUIStyle info; 12 | public static GUIStyle testList; 13 | 14 | public static GUIStyle selectedLabel; 15 | public static GUIStyle label; 16 | public static GUIStyle selectedFoldout; 17 | public static GUIStyle foldout; 18 | 19 | private static Color selectedColor = new Color (0.3f, 0.5f, 0.85f); 20 | 21 | static Styles () 22 | { 23 | buttonLeft = GUI.skin.FindStyle (GUI.skin.button.name + "left"); 24 | buttonMid = GUI.skin.FindStyle (GUI.skin.button.name + "mid"); 25 | buttonRight = GUI.skin.FindStyle (GUI.skin.button.name + "right"); 26 | 27 | info = new GUIStyle (EditorStyles.wordWrappedLabel); 28 | info.wordWrap = false; 29 | info.stretchHeight = true; 30 | info.margin.right = 15; 31 | 32 | testList = new GUIStyle ("CN Box"); 33 | testList.margin.top = 3; 34 | testList.padding.left = 3; 35 | 36 | label = new GUIStyle (EditorStyles.label); 37 | selectedLabel = new GUIStyle (EditorStyles.label); 38 | selectedLabel.active.textColor = selectedLabel.normal.textColor = selectedLabel.onActive.textColor = selectedColor; 39 | 40 | foldout = new GUIStyle (EditorStyles.foldout); 41 | selectedFoldout = new GUIStyle (EditorStyles.foldout); 42 | selectedFoldout.onFocused.textColor = selectedFoldout.focused.textColor = 43 | selectedFoldout.onActive.textColor = selectedFoldout.active.textColor = 44 | selectedFoldout.onNormal.textColor = selectedFoldout.normal.textColor = selectedColor; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/Styles.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8b92379e11501742b1badcbb08da812 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8bb6eae11352f44da0d6d8a8959b69e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/create-darktheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/create-darktheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/create-darktheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4193b17f22b72546a632f2735b22421 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/create-lighttheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/create-lighttheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/create-lighttheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39f371f2ad7a53a4693cc4d50c5f24ca 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/failed.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/failed.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41488feb372865440b7c01773f04c0cf 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/ignored.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/ignored.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/ignored.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0076bfa6073f17546b3535ac1b456b0b 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/inconclusive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/inconclusive.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/inconclusive.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e28761099904678488cdddf7b6be2ceb 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/normal.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/normal.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9f3c491f4c2f9f43ac33a27c16913dd 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/options-darktheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/options-darktheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/options-darktheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbd9485c1fc611b44a4ac1abfdcffbf5 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/options-lighttheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/options-lighttheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/options-lighttheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e6ebb403e0c3974fbe7cbd6f89ea6a6 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/passed.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/passed.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31f7928179ee46d4690d274579efb037 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play-darktheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play-darktheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play-darktheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea69579f34a673a46a1a33ca2f473917 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play-lighttheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play-lighttheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play-lighttheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e1238656fa8ab7469f7c2c3c3863e8d 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play_selected-darktheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play_selected-darktheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play_selected-darktheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0047013a792e5043b411565030f0939 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play_selected-lighttheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play_selected-lighttheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/play_selected-lighttheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa83cb00bb03c834889658b2c3e03259 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/rerun-darktheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/rerun-darktheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/rerun-darktheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c78dbba64437b0844a5325b44179612b 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/rerun-lighttheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/rerun-lighttheme.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/rerun-lighttheme.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31b9d2dd12f869348b9fbb0049cbb106 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/stopwatch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/stopwatch.png -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Editor/icons/stopwatch.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f73f95ae19d51af47ad56044f2779aa1 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: 1 29 | mipBias: -1 30 | wrapMode: 1 31 | nPOTScale: 0 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 1 42 | textureType: 2 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/ITestResult.cs: -------------------------------------------------------------------------------- 1 | using UnityTest; 2 | 3 | public interface ITestResult 4 | { 5 | TestResultState ResultState { get; } 6 | string Message { get; } 7 | bool Executed { get; } 8 | string Name { get; } 9 | string FullName { get; } 10 | string Id { get; } 11 | bool IsSuccess { get; } 12 | double Duration { get; } 13 | string StackTrace { get; } 14 | } 15 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/ITestResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1e4e2c4d00b3f2469494fc0f67cdeae 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Settings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7c55e5bf6f44b04a9495ee7165f341d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Settings/IntegrationTestsRunnerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: 5d01dc4c8f278da489d7d54c83f19cb9, type: 3} 12 | m_Name: IntegrationTestsRunnerSettings 13 | m_EditorClassIdentifier: 14 | showOptions: 0 15 | filterString: 16 | showAdvancedFilter: 0 17 | showSucceededTest: 1 18 | showFailedTest: 1 19 | showNotRunnedTest: 1 20 | showIgnoredTest: 1 21 | addNewGameObjectUnderSelectedTest: 0 22 | blockUIWhenRunning: 1 23 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Settings/IntegrationTestsRunnerSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eef63e07cb764ba4287ffbf9494d21c5 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Settings/PlatformRunnerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: 964f5f0db2c95bb41aa3dc3beba1f06b, type: 3} 12 | m_Name: PlatformRunnerSettings 13 | m_EditorClassIdentifier: 14 | resultsPath: 15 | sendResultsOverNetwork: 1 16 | port: 0 17 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Settings/PlatformRunnerSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e37e8e26669989418748f98aed9be78 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Settings/UnitTestsRunnerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: 4a24a0b0a24461a4ab99853f8b145e5c, type: 3} 12 | m_Name: UnitTestsRunnerSettings 13 | m_EditorClassIdentifier: 14 | optionsFoldout: 0 15 | filtersFoldout: 0 16 | runOnRecompilation: 0 17 | horizontalSplit: 1 18 | autoSaveSceneBeforeRun: 0 19 | runTestOnANewScene: 0 20 | categoriesMask: 0 21 | testFilter: 22 | showFailed: 1 23 | showIgnored: 1 24 | showNotRun: 1 25 | showSucceeded: 1 26 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/Settings/UnitTestsRunnerSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fbf0d2257f76b34fad2cd853237dd4e 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/TestResultState.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public enum TestResultState 4 | { 5 | Inconclusive = 0, 6 | 7 | /// 8 | /// The test was not runnable. 9 | /// 10 | NotRunnable = 1, 11 | 12 | /// 13 | /// The test has been skipped. 14 | /// 15 | Skipped = 2, 16 | 17 | /// 18 | /// The test has been ignored. 19 | /// 20 | Ignored = 3, 21 | 22 | /// 23 | /// The test succeeded 24 | /// 25 | Success = 4, 26 | 27 | /// 28 | /// The test failed 29 | /// 30 | Failure = 5, 31 | 32 | /// 33 | /// The test encountered an unexpected exception 34 | /// 35 | Error = 6, 36 | 37 | /// 38 | /// The test was cancelled by the user 39 | /// 40 | Cancelled = 7 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/Common/TestResultState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da3ca54ee4cce064989d27165f3081fb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 241054a0fe63fbb4bb51609fce9b3112 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da93545c3ab1aa043bcfb22281b1f66c 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: caee08596a5965747b8edfde19e2f873 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Batch.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29d4fb050362c5b43aea52342045543a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/IntegrationTestsRunnerSettings.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public class IntegrationTestsRunnerSettings : ProjectSettingsBase 4 | { 5 | public bool showOptions; 6 | public string filterString; 7 | public bool showAdvancedFilter; 8 | public bool showSucceededTest = true; 9 | public bool showFailedTest = true; 10 | public bool showNotRunnedTest = true; 11 | public bool showIgnoredTest = true; 12 | public bool addNewGameObjectUnderSelectedTest; 13 | public bool blockUIWhenRunning = true; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/IntegrationTestsRunnerSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d01dc4c8f278da489d7d54c83f19cb9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/IntegrationTestsRunnerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c898357efb599944818326bb43ba879 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c44e9167d633ee94bb6e078238178308 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/NetworkResultsReceiver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ade4197221f35dc44adb7649f99af2e7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3581fa3f207a8a4c9988b9f59a510d3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunnerConfiguration.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Net; 6 | using System.Net.Sockets; 7 | using UnityEditor; 8 | using UnityEngine; 9 | 10 | [Serializable] 11 | public class PlatformRunnerConfiguration 12 | { 13 | public string[] scenes = new string[0]; 14 | public BuildTarget buildTarget; 15 | public string projectName = EditorApplication.currentScene; 16 | 17 | public string resultsDir = null; 18 | public bool sendResultsOverNetwork; 19 | public List ipList; 20 | public int port; 21 | 22 | public PlatformRunnerConfiguration ( BuildTarget buildTarget ) 23 | { 24 | this.buildTarget = buildTarget; 25 | projectName = EditorApplication.currentScene; 26 | } 27 | 28 | public PlatformRunnerConfiguration () 29 | : this(BuildTarget.StandaloneWindows) 30 | { 31 | } 32 | 33 | public string GetTempPath ( ) 34 | { 35 | if (string.IsNullOrEmpty (projectName)) 36 | projectName = Path.GetTempFileName (); 37 | 38 | var path = Path.Combine ("Temp", projectName); 39 | switch (buildTarget) 40 | { 41 | case BuildTarget.StandaloneWindows: 42 | case BuildTarget.StandaloneWindows64: 43 | return path + ".exe"; 44 | case BuildTarget.StandaloneOSXIntel: 45 | return path + ".app"; 46 | case BuildTarget.Android: 47 | return path + ".apk"; 48 | default: 49 | if (buildTarget.ToString() == "BlackBerry" || buildTarget.ToString() == "BB10") 50 | return path + ".bar"; 51 | return path; 52 | } 53 | } 54 | 55 | public string[] GetConnectionIPs () 56 | { 57 | return ipList.Select (ip => ip + ":" + port).ToArray (); 58 | } 59 | 60 | public static int TryToGetFreePort() 61 | { 62 | var port = -1; 63 | try 64 | { 65 | var l = new TcpListener(IPAddress.Any, 0); 66 | l.Start(); 67 | port = ((IPEndPoint)l.Server.LocalEndPoint).Port; 68 | l.Stop(); 69 | } 70 | catch (SocketException e) 71 | { 72 | Debug.LogException(e); 73 | } 74 | return port; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunnerConfiguration.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b98fe8c3761da2d4b8cfd8bd6df7050f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunnerSettings.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public class PlatformRunnerSettings : ProjectSettingsBase 4 | { 5 | public string resultsPath; 6 | public bool sendResultsOverNetwork = true; 7 | public int port = 0; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunnerSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 964f5f0db2c95bb41aa3dc3beba1f06b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunnerSettingsWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3819282b0887bc742911b89745080acb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlayerSettingConfigurator.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using UnityEditor; 4 | 5 | namespace UnityTest 6 | { 7 | class PlayerSettingConfigurator 8 | { 9 | private string resourcesPath { 10 | get { return temp ? tempPath : projectResourcesPath; } 11 | } 12 | 13 | private string projectResourcesPath = Path.Combine("Assets", "Resources"); 14 | private string tempPath = "Temp"; 15 | private bool temp; 16 | 17 | private ResolutionDialogSetting displayResolutionDialog; 18 | private bool runInBackground; 19 | private bool fullScreen; 20 | private bool resizableWindow; 21 | private List tempFileList = new List (); 22 | 23 | public PlayerSettingConfigurator (bool saveInTempFolder) 24 | { 25 | temp = saveInTempFolder; 26 | } 27 | 28 | public void ChangeSettingsForIntegrationTests () 29 | { 30 | displayResolutionDialog = PlayerSettings.displayResolutionDialog; 31 | PlayerSettings.displayResolutionDialog = ResolutionDialogSetting.Disabled; 32 | 33 | runInBackground = PlayerSettings.runInBackground; 34 | PlayerSettings.runInBackground = true; 35 | 36 | fullScreen = PlayerSettings.defaultIsFullScreen; 37 | PlayerSettings.defaultIsFullScreen = false; 38 | 39 | resizableWindow = PlayerSettings.resizableWindow; 40 | PlayerSettings.resizableWindow = true; 41 | } 42 | 43 | public void RevertSettingsChanges () 44 | { 45 | PlayerSettings.defaultIsFullScreen = fullScreen; 46 | PlayerSettings.runInBackground = runInBackground; 47 | PlayerSettings.displayResolutionDialog = displayResolutionDialog; 48 | PlayerSettings.resizableWindow = resizableWindow; 49 | } 50 | 51 | public void AddConfigurationFile (string fileName, string content) 52 | { 53 | var resourcesPathExists = Directory.Exists (resourcesPath); 54 | if (!resourcesPathExists) AssetDatabase.CreateFolder ("Assets", "Resources"); 55 | 56 | var filePath = Path.Combine (resourcesPath, fileName); 57 | File.WriteAllText (filePath, content); 58 | 59 | tempFileList.Add (filePath); 60 | } 61 | 62 | public void RemoveAllConfigurationFiles ( ) 63 | { 64 | foreach (var filePath in tempFileList) 65 | AssetDatabase.DeleteAsset (filePath); 66 | if (Directory.Exists(resourcesPath) 67 | && Directory.GetFiles (resourcesPath).Length == 0) 68 | AssetDatabase.DeleteAsset (resourcesPath); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlayerSettingConfigurator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7adbe43058d54047b6109b2e66894fd 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Renderer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5944b82e46f1682439d20b4c3a4f029c 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Renderer/IntegrationTestGroupLine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6dc74195aa98ef4da8901199cda4a63 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Renderer/IntegrationTestLine.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UnityTest 6 | { 7 | class IntegrationTestLine : IntegrationTestRendererBase 8 | { 9 | public static List Results; 10 | protected TestResult result; 11 | 12 | public IntegrationTestLine (GameObject gameObject, TestResult testResult) : base (gameObject) 13 | { 14 | this.result = testResult; 15 | } 16 | 17 | protected internal override void DrawLine ( Rect rect, GUIContent label, bool isSelected, RenderingOptions options ) 18 | { 19 | EditorGUILayout.BeginHorizontal (); 20 | rect.x += 10; 21 | 22 | EditorGUI.LabelField (rect, label, isSelected ? Styles.selectedLabel : Styles.label); 23 | 24 | if (result.IsTimeout) 25 | { 26 | var timeoutRect = new Rect(rect); 27 | timeoutRect.x = timeoutRect.x + timeoutRect.width; 28 | timeoutRect.width = 24; 29 | EditorGUI.LabelField (timeoutRect, guiTimeoutIcon); 30 | GUILayout.FlexibleSpace (); 31 | } 32 | EditorGUILayout.EndHorizontal (); 33 | } 34 | 35 | protected internal override TestResult.ResultType GetResult () 36 | { 37 | if(!result.Executed && test.ignored) return TestResult.ResultType.Ignored; 38 | return result.resultType; 39 | } 40 | 41 | protected internal override bool IsVisible (RenderingOptions options) 42 | { 43 | if (!string.IsNullOrEmpty (options.nameFilter) && !gameObject.name.ToLower ().Contains (options.nameFilter.ToLower ())) return false; 44 | if (!options.showSucceeded && result.IsSuccess) return false; 45 | if (!options.showFailed && result.IsFailure) return false; 46 | if (!options.showNotRunned && !result.Executed) return false; 47 | if (!options.showIgnored && test.ignored) return false; 48 | return true; 49 | } 50 | 51 | public override bool SetCurrentTest (TestComponent tc) 52 | { 53 | IsRunning = test == tc; 54 | return IsRunning; 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Renderer/IntegrationTestLine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 212be02e4a7da194688b08ab0c946fbd 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Renderer/IntegrationTestRendererBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 604645a3b57179a4d873906b625ef8ec 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/TestComponentEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 160889f21f4d5944b9f6fcaf9c33f684 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/ITestRunnerCallback.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace UnityTest.IntegrationTestRunner 4 | { 5 | public interface ITestRunnerCallback 6 | { 7 | void RunStarted (string platform, List testsToRun); 8 | void RunFinished (List testResults); 9 | void TestStarted (TestResult test); 10 | void TestFinished (TestResult test); 11 | void TestRunInterrupted (List testsNotRun); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/ITestRunnerCallback.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35af7d395e501a348ae1a0aa3c91dee4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/IntegrationTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb367bbc76e489443a4ebc8b0a8642f4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/IntegrationTestAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | [AttributeUsage (AttributeTargets.Class, AllowMultiple = false)] 5 | public class IntegrationTestAttribute : Attribute 6 | { 7 | private string path; 8 | 9 | public IntegrationTestAttribute (string path) 10 | { 11 | if (path.EndsWith (".unity")) 12 | path = path.Substring (0, path.Length - ".unity".Length); 13 | this.path = path; 14 | } 15 | 16 | public bool IncludeOnScene ( string scenePath ) 17 | { 18 | if (scenePath == path) return true; 19 | var fileName = Path.GetFileNameWithoutExtension (scenePath); 20 | return fileName == path; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/IntegrationTestAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1a5c61a06ed66e41a6ee1b5f88b5afd 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/IntegrationTestsProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21d32637b19ee51489062a66ad922193 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/NetworkResultSender.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80b91644bbbc487479429368d4e8d596 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/ResultDTO.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37c772b6d1ba4274aa96c83710cb27e8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/TestComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1dba0b27b0864740a8720e920aa88c0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/TestResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68740a702763aaa4594e8319a05ae0d3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/TestResultRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ae9d3b4b57cae343b7ff360f9deb628 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/TestRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c3afc1c624179749bcdecf7b0224902 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/TestRunnerCallbackList.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UnityTest.IntegrationTestRunner 5 | { 6 | public class TestRunnerCallbackList : ITestRunnerCallback 7 | { 8 | private List callbackList = new List (); 9 | 10 | public void Add (ITestRunnerCallback callback) 11 | { 12 | callbackList.Add (callback); 13 | } 14 | 15 | public void Remove (ITestRunnerCallback callback) 16 | { 17 | callbackList.Remove (callback); 18 | } 19 | 20 | public void RunStarted (string platform, List testsToRun) 21 | { 22 | foreach (var unitTestRunnerCallback in callbackList) 23 | { 24 | unitTestRunnerCallback.RunStarted(platform, testsToRun); 25 | } 26 | } 27 | 28 | public void RunFinished (List testResults) 29 | { 30 | foreach (var unitTestRunnerCallback in callbackList) 31 | { 32 | unitTestRunnerCallback.RunFinished(testResults); 33 | } 34 | } 35 | 36 | public void TestStarted (TestResult test) 37 | { 38 | foreach (var unitTestRunnerCallback in callbackList) 39 | { 40 | unitTestRunnerCallback.TestStarted(test); 41 | } 42 | } 43 | 44 | public void TestFinished (TestResult test) 45 | { 46 | foreach (var unitTestRunnerCallback in callbackList) 47 | { 48 | unitTestRunnerCallback.TestFinished(test); 49 | } 50 | } 51 | 52 | public void TestRunInterrupted (List testsNotRun) 53 | { 54 | foreach (var unitTestRunnerCallback in callbackList) 55 | { 56 | unitTestRunnerCallback.TestRunInterrupted(testsNotRun); 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/TestRunnerCallbackList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7729da83f7c08d244b5788c870a93780 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/TestRunnerConfigurator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05aae864572254e478ed2f0489cdd335 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/LICENSE.txt -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/LICENSE.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d5b4501bf773f349ad95ec34491dc61 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a87f1db904f1e948a2385ab9961e3aa 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59b47eb3fc62eb44cb73a329a1e6b6cb 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/Batch.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5401885870ebec84f8e9c6ee18d79695 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NSubstitute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92b38897656771f409e9235955975754 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NSubstitute/NSubstitute.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NSubstitute/NSubstitute.dll -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NSubstitute/NSubstitute.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c5e1afc6e0d68849ae6639aff58cfc7 3 | MonoAssemblyImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | userData: 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a92d914a774b29f42906161a387d79f7 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e22ba039de7077c4aa95758ef723b803 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/Mono.Cecil.Mdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/Mono.Cecil.Mdb.dll -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/Mono.Cecil.Mdb.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96c89cba541e8fa41acc13fcc8382878 3 | MonoAssemblyImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | userData: 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/Mono.Cecil.dll -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/Mono.Cecil.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8f4181eb51beb043a92433b1c807529 3 | MonoAssemblyImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | userData: 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.core.dll -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.core.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8950b8b4aa418a458a503526c8a2f65 3 | MonoAssemblyImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | userData: 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.core.interfaces.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef8ce5f8e3e580349ac63ac38e87ee2f 3 | MonoAssemblyImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | userData: 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/unity3d-plugin/efb2682cea00763874998816ba41962e66f569a0/src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.framework.dll -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Libs/nunit.framework.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f54558e884607254ca91abc9038ac749 3 | MonoAssemblyImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | userData: 8 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f94e120956782c5498f559719ff38f2a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/GroupLine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fcef1ec40255f14d827da8b0d742334 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/RenderingOptions.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public class RenderingOptions 4 | { 5 | public string nameFilter; 6 | public bool showSucceeded; 7 | public bool showFailed; 8 | public bool showIgnored; 9 | public bool showNotRunned; 10 | public string[] categories; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/RenderingOptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c0aec4b4a6d1b047a98e8cc213e1a36 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/TestLine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfe0c7d95a79d374e9121633c719241e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/UnitTestRendererLine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fddb568bfa3ed03438d5c482ea8c6aea 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 615921b0760fc0c4eaf10b7c88add37b 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/BackgroundRunner.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Net; 4 | using System.Net.Sockets; 5 | using System.Text; 6 | using UnityEditor; 7 | using UnityEngine; 8 | 9 | namespace UnityTest 10 | { 11 | [InitializeOnLoad] 12 | public partial class UnitTestView 13 | { 14 | static UnitTestView () 15 | { 16 | if (Instance != null && Instance.settings.runOnRecompilation) 17 | EnableBackgroundRunner (true); 18 | } 19 | 20 | #region Background runner 21 | 22 | private static float nextCheck; 23 | private static string uttRecompile = "UTT-recompile"; 24 | 25 | public static void EnableBackgroundRunner ( bool enable ) 26 | { 27 | EditorApplication.update -= BackgroudRunner; 28 | 29 | if (enable) 30 | { 31 | EditorApplication.update += BackgroudRunner; 32 | nextCheck = 0; 33 | } 34 | } 35 | 36 | private static void BackgroudRunner () 37 | { 38 | if (EditorApplication.isPlayingOrWillChangePlaymode) return; 39 | if (!Instance.settings.runOnRecompilation) EnableBackgroundRunner (false); 40 | if (EditorApplication.isCompiling) 41 | { 42 | EditorPrefs.SetString (uttRecompile, Application.dataPath); 43 | EditorApplication.update -= BackgroudRunner; 44 | return; 45 | } 46 | 47 | var t = Time.realtimeSinceStartup; 48 | if (t < nextCheck) return; 49 | nextCheck = t + 0.5f; 50 | 51 | if (EditorPrefs.HasKey (uttRecompile)) 52 | { 53 | var recompile = EditorPrefs.GetString (uttRecompile); 54 | if (recompile == Application.dataPath) 55 | { 56 | Instance.RunTests (); 57 | Instance.Repaint (); 58 | } 59 | EditorPrefs.DeleteKey (uttRecompile); 60 | nextCheck = 0; 61 | } 62 | } 63 | #endregion 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/BackgroundRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0ef055bc08798f448b1adba9948e351 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/GuiHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0b95014154ef554485afc9c0316556d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/ITestRunnerCallback.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityTest.UnitTestRunner 4 | { 5 | public interface ITestRunnerCallback 6 | { 7 | void TestStarted (string fullName); 8 | void TestFinished (ITestResult fullName); 9 | void RunStarted (string suiteName, int testCount); 10 | void RunFinished (); 11 | void RunFinishedException (Exception exception); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/ITestRunnerCallback.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45a983e950f22034ba987c6db2a8b216 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/IUnitTestEngine.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public interface IUnitTestEngine 4 | { 5 | UnitTestRendererLine GetTests (out UnitTestResult[] results, out string[] categories); 6 | void RunTests ( TestFilter filter, UnitTestRunner.ITestRunnerCallback testRunnerEventListener ); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/IUnitTestEngine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96615b7fd2cb32b4dbea04d84cc3f7fb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/NUnitExtensions.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Core; 2 | 3 | namespace UnityTest 4 | { 5 | public static class NUnitExtensions 6 | { 7 | public static UnitTestResult UnitTestResult ( this NUnit.Core.TestResult result ) 8 | { 9 | return new UnitTestResult() 10 | { 11 | Executed = result.Executed, 12 | ResultState = (TestResultState)result.ResultState, 13 | Message = result.Message, 14 | StackTrace = result.StackTrace, 15 | Duration = result.Time, 16 | Test = new UnitTestInfo (result.Test.TestName.TestID.ToString ()), 17 | }; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/NUnitExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7df86c5f85b0f7d4096d6bc23e9a4e01 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/NUnitTestEngine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f313d48559bf30145b88ef7f173685c9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/TestRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbf567afda42eec43a7dbb052d318076 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/TestRunnerCallbackList.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UnityTest.UnitTestRunner 5 | { 6 | public class TestRunnerCallbackList : ITestRunnerCallback 7 | { 8 | private List callbackList = new List (); 9 | 10 | public void TestStarted (string fullName) 11 | { 12 | foreach (var unitTestRunnerCallback in callbackList) 13 | { 14 | unitTestRunnerCallback.TestStarted (fullName); 15 | } 16 | } 17 | 18 | public void TestFinished (ITestResult fullName) 19 | { 20 | foreach (var unitTestRunnerCallback in callbackList) 21 | { 22 | unitTestRunnerCallback.TestFinished (fullName); 23 | } 24 | } 25 | 26 | public void RunStarted (string suiteName, int testCount) 27 | { 28 | foreach (var unitTestRunnerCallback in callbackList) 29 | { 30 | unitTestRunnerCallback.RunStarted (suiteName, 31 | testCount); 32 | } 33 | } 34 | 35 | public void RunFinished () 36 | { 37 | foreach (var unitTestRunnerCallback in callbackList) 38 | { 39 | unitTestRunnerCallback.RunFinished (); 40 | } 41 | } 42 | 43 | public void RunFinishedException (Exception exception) 44 | { 45 | foreach (var unitTestRunnerCallback in callbackList) 46 | { 47 | unitTestRunnerCallback.RunFinishedException (exception); 48 | } 49 | } 50 | 51 | public void Add (ITestRunnerCallback callback) 52 | { 53 | callbackList.Add (callback); 54 | } 55 | 56 | public void Remove (ITestRunnerCallback callback) 57 | { 58 | callbackList.Remove (callback); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/TestRunnerCallbackList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7a6cf1b9d1273d4187ba9d5bc91fc30 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/UnitTestInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39d532431356ff74cb5a51afef8cc308 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/UnitTestResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityTest 5 | { 6 | [Serializable] 7 | public class UnitTestResult : ITestResult 8 | { 9 | public bool Executed { get; set; } 10 | public string Name { get { return Test.MethodName; } } 11 | public string FullName { get { return Test.FullName; } } 12 | public TestResultState ResultState { get; set; } 13 | public UnitTestInfo Test { get; set; } 14 | public string Id { get { return Test.Id; } } 15 | public double Duration { get; set; } 16 | public string Message { get; set; } 17 | public string StackTrace { get; set; } 18 | 19 | public bool Outdated { get; set; } 20 | 21 | public void Update (ITestResult source, bool outdated) 22 | { 23 | this.ResultState = source.ResultState; 24 | this.Duration = source.Duration; 25 | this.Message = source.Message; 26 | this.StackTrace = source.StackTrace; 27 | this.Executed = source.Executed; 28 | this.Outdated = outdated; 29 | } 30 | 31 | #region Helper methods 32 | 33 | public bool IsFailure 34 | { 35 | get { return ResultState == TestResultState.Failure; } 36 | } 37 | 38 | public bool IsError 39 | { 40 | get { return ResultState == TestResultState.Error; } 41 | } 42 | 43 | public bool IsSuccess 44 | { 45 | get { return ResultState == TestResultState.Success; } 46 | } 47 | 48 | public bool IsInconclusive 49 | { 50 | get { return ResultState == TestResultState.Inconclusive; } 51 | } 52 | 53 | public bool IsIgnored 54 | { 55 | get { return ResultState == TestResultState.Ignored; } 56 | } 57 | 58 | #endregion 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/UnitTestResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 925cf9f45ea32814da65f61c1ebd7e6f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/UnitTestView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba152083ecc3cdb4a82881c6a9ae73c1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/UnitTestsRunnerSettings.cs: -------------------------------------------------------------------------------- 1 | namespace UnityTest 2 | { 3 | public class UnitTestsRunnerSettings : ProjectSettingsBase 4 | { 5 | public bool optionsFoldout; 6 | public bool filtersFoldout; 7 | public bool runOnRecompilation; 8 | public bool horizontalSplit = true; 9 | public bool autoSaveSceneBeforeRun; 10 | public bool runTestOnANewScene; 11 | 12 | public int categoriesMask; 13 | public string testFilter = ""; 14 | public bool showFailed = true; 15 | public bool showIgnored = true; 16 | public bool showNotRun = true; 17 | public bool showSucceeded = true; 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/UnitTestsRunnerSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a24a0b0a24461a4ab99853f8b145e5c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/UnityUnitTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | [TestFixture] 6 | public abstract class UnityUnitTest 7 | { 8 | public GameObject CreateGameObject () 9 | { 10 | return CreateGameObject (""); 11 | } 12 | 13 | public GameObject CreateGameObject ( string name ) 14 | { 15 | var go = string.IsNullOrEmpty (name) ? new GameObject () : new GameObject (name); 16 | Undo.RegisterCreatedObjectUndo (go,""); 17 | return go; 18 | } 19 | 20 | public GameObject CreatePrimitive ( PrimitiveType type ) 21 | { 22 | var p = GameObject.CreatePrimitive (type); 23 | Undo.RegisterCreatedObjectUndo (p, ""); 24 | return p; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/UnityUnitTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ec01611d948e574c99a1bd24650a4a9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/changelog.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29b770d9107643740b69cb98b00430aa 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | m_SpeedOfSound: 347 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_DSPBufferSize: 0 12 | m_DisableAudio: 0 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepVelocity: .150000006 10 | m_SleepAngularVelocity: .140000001 11 | m_MaxAngularVelocity: 7 12 | m_MinPenetrationForPenalty: .00999999978 13 | m_SolverIterationCount: 6 14 | m_RaycastsHitTriggers: 1 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/IntegrationTests/IntegrationPartialFailTests.unity 10 | - enabled: 1 11 | path: Assets/IntegrationTests/IntegrationTotalFailTests.unity 12 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_AlwaysIncludedShaders: 8 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 9 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 10 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 11 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshLayers: 5 | m_ObjectHideFlags: 0 6 | Built-in Layer 0: 7 | name: Default 8 | cost: 1 9 | editType: 2 10 | Built-in Layer 1: 11 | name: Not Walkable 12 | cost: 1 13 | editType: 0 14 | Built-in Layer 2: 15 | name: Jump 16 | cost: 2 17 | editType: 2 18 | User Layer 0: 19 | name: 20 | cost: 1 21 | editType: 3 22 | User Layer 1: 23 | name: 24 | cost: 1 25 | editType: 3 26 | User Layer 2: 27 | name: 28 | cost: 1 29 | editType: 3 30 | User Layer 3: 31 | name: 32 | cost: 1 33 | editType: 3 34 | User Layer 4: 35 | name: 36 | cost: 1 37 | editType: 3 38 | User Layer 5: 39 | name: 40 | cost: 1 41 | editType: 3 42 | User Layer 6: 43 | name: 44 | cost: 1 45 | editType: 3 46 | User Layer 7: 47 | name: 48 | cost: 1 49 | editType: 3 50 | User Layer 8: 51 | name: 52 | cost: 1 53 | editType: 3 54 | User Layer 9: 55 | name: 56 | cost: 1 57 | editType: 3 58 | User Layer 10: 59 | name: 60 | cost: 1 61 | editType: 3 62 | User Layer 11: 63 | name: 64 | cost: 1 65 | editType: 3 66 | User Layer 12: 67 | name: 68 | cost: 1 69 | editType: 3 70 | User Layer 13: 71 | name: 72 | cost: 1 73 | editType: 3 74 | User Layer 14: 75 | name: 76 | cost: 1 77 | editType: 3 78 | User Layer 15: 79 | name: 80 | cost: 1 81 | editType: 3 82 | User Layer 16: 83 | name: 84 | cost: 1 85 | editType: 3 86 | User Layer 17: 87 | name: 88 | cost: 1 89 | editType: 3 90 | User Layer 18: 91 | name: 92 | cost: 1 93 | editType: 3 94 | User Layer 19: 95 | name: 96 | cost: 1 97 | editType: 3 98 | User Layer 20: 99 | name: 100 | cost: 1 101 | editType: 3 102 | User Layer 21: 103 | name: 104 | cost: 1 105 | editType: 3 106 | User Layer 22: 107 | name: 108 | cost: 1 109 | editType: 3 110 | User Layer 23: 111 | name: 112 | cost: 1 113 | editType: 3 114 | User Layer 24: 115 | name: 116 | cost: 1 117 | editType: 3 118 | User Layer 25: 119 | name: 120 | cost: 1 121 | editType: 3 122 | User Layer 26: 123 | name: 124 | cost: 1 125 | editType: 3 126 | User Layer 27: 127 | name: 128 | cost: 1 129 | editType: 3 130 | User Layer 28: 131 | name: 132 | cost: 1 133 | editType: 3 134 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_VelocityThreshold: 1 11 | m_MaxLinearCorrection: .200000003 12 | m_MaxAngularCorrection: 8 13 | m_MaxTranslationSpeed: 100 14 | m_MaxRotationSpeed: 360 15 | m_BaumgarteScale: .200000003 16 | m_BaumgarteTimeOfImpactScale: .75 17 | m_TimeToSleep: .5 18 | m_LinearSleepTolerance: .00999999978 19 | m_AngularSleepTolerance: 2 20 | m_RaycastsHitTriggers: 1 21 | m_DeleteStopsCallbacks: 1 22 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 23 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | tags: 6 | - 7 | Builtin Layer 0: Default 8 | Builtin Layer 1: TransparentFX 9 | Builtin Layer 2: Ignore Raycast 10 | Builtin Layer 3: 11 | Builtin Layer 4: Water 12 | Builtin Layer 5: UI 13 | Builtin Layer 6: 14 | Builtin Layer 7: 15 | User Layer 8: 16 | User Layer 9: 17 | User Layer 10: 18 | User Layer 11: 19 | User Layer 12: 20 | User Layer 13: 21 | User Layer 14: 22 | User Layer 15: 23 | User Layer 16: 24 | User Layer 17: 25 | User Layer 18: 26 | User Layer 19: 27 | User Layer 20: 28 | User Layer 21: 29 | User Layer 22: 30 | User Layer 23: 31 | User Layer 24: 32 | User Layer 25: 33 | User Layer 26: 34 | User Layer 27: 35 | User Layer 28: 36 | User Layer 29: 37 | User Layer 30: 38 | User Layer 31: 39 | m_SortingLayers: 40 | - name: Default 41 | userID: 0 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/org.jenkinsci.plugins.unity3d.Unity3dBuilder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Unity Stable 6 | /Applications/Unity/Hub/Editor/2022.3.24f1/Unity.app 7 | 8 | 9 | 10 | --------------------------------------------------------------------------------