-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI Tests #52
UI Tests #52
Changes from all commits
afa8b28
65e0e8f
4e41db4
7e671a7
2980e52
d993e49
80a37d0
426d856
c396e4f
1e0985a
bcec986
65c3b79
40874f3
a83711d
8e5b5a3
621bc67
cef4cd9
7f6c1ae
75baf1d
b37ce4a
fe29ae6
ea02215
5e42d4f
9931b76
1336eae
a7101bf
16381bb
42e6220
c1aeeb7
d858a36
9c612ea
c792e55
60c5f1e
75de1ac
e5252fc
ba160cf
946b9bf
4108dbb
be5dc8e
29c87a3
f1542fa
a0d3e21
ee649c8
b476559
eaf3861
b694ef8
96e7c9e
33d17f2
0a983d2
b908be3
402fdbf
88f6d64
99e87c1
f5db474
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "AltTester.AltTesterUnitySDK.Editor", | ||
"rootNamespace": "", | ||
"references": [ | ||
"GUID:0acc523941302664db1f4e527237feb3", | ||
"GUID:478b585cfbb242f4c977b9aec772e042", | ||
"GUID:478a2357cc57436488a56e564b08d223", | ||
"GUID:451516970bc990e418454aa78b72586e", | ||
"GUID:9e24947de15b9834991c9d8411ea37cf", | ||
"GUID:69448af7b92c7f342b298e06a37122aa" | ||
], | ||
"includePlatforms": [ | ||
"Editor" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": true, | ||
"precompiledReferences": [ | ||
"nunit.framework.dll", | ||
"NLog.dll", | ||
"Newtonsoft.Json.dll" | ||
], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [ | ||
{ | ||
"name": "com.unity.addressables", | ||
"expression": "1", | ||
"define": "ADDRESSABLES" | ||
} | ||
], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using NUnit.Framework; | ||
using AltTester.AltTesterUnitySDK.Driver; | ||
|
||
public class #SCRIPTNAME# | ||
{ //Important! If your test file is inside a folder that contains an .asmdef file, please make sure that the assembly definition references NUnit. | ||
public AltDriver altDriver; | ||
//Before any test it connects with the socket | ||
[OneTimeSetUp] | ||
public void SetUp() | ||
{ | ||
altDriver =new AltDriver(); | ||
} | ||
|
||
//At the end of the test closes the connection with the socket | ||
[OneTimeTearDown] | ||
public void TearDown() | ||
{ | ||
altDriver.Stop(); | ||
} | ||
|
||
[Test] | ||
public void Test() | ||
{ | ||
//Here you can write the test | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
Copyright(C) 2023 Altom Consulting | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @andresilveirah @bohdan-go-wombat are we okay with adding GNU-licensed software to our repo? |
||
*/ | ||
|
||
using System; | ||
using AltTester.AltTesterUnitySDK.Driver.Logging; | ||
using NLog; | ||
using NLog.Layouts; | ||
|
||
namespace AltTester.AltTesterUnitySDK.Editor.Logging | ||
{ | ||
public class EditorLogManager | ||
{ | ||
public static LogFactory Instance { get { return instance.Value; } } | ||
private static readonly Lazy<LogFactory> instance = new Lazy<LogFactory>(buildLogFactory); | ||
|
||
private static LogFactory buildLogFactory() | ||
{ | ||
var config = new NLog.Config.LoggingConfiguration(); | ||
var unitylog = new UnityTarget("AltEditorUnityTarget") | ||
{ | ||
Layout = Layout.FromString("${longdate}|Editor|${level:uppercase=true}|${message}"), | ||
}; | ||
config.AddRule(LogLevel.Debug, LogLevel.Fatal, unitylog); | ||
|
||
LogFactory logFactory = new LogFactory | ||
{ | ||
Configuration = config, | ||
AutoShutdown = true | ||
}; | ||
|
||
return logFactory; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For sake of simplicity of code review purposes collapse everything within
Assets/AltTester/
and/or mark the filse as**Viewed**
.