mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 19:57:31 +00:00
Use environment variable to skip AppleScript tests on CI.
This commit is contained in:
1 parent
0c25d3dfee
commit
c2ab6fe17a
2 files changed
+11
-9
No files matched your search
@@ -10,6 +10,12 @@
|
||||
],
|
||||
"defaultOptions" : {
|
||||
"codeCoverage" : false,
|
||||
"environmentVariableEntries" : [
|
||||
{
|
||||
"key" : "SKIP_SCRIPTING_TESTS",
|
||||
"value" : "YES"
|
||||
}
|
||||
],
|
||||
"targetForVariableExpansion" : {
|
||||
"containerPath" : "container:NetNewsWire.xcodeproj",
|
||||
"identifier" : "849C645F1ED37A5D003D8FC0",
|
||||
@@ -32,14 +38,6 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"skippedTests" : [
|
||||
"ScriptingTests\/feedExists()",
|
||||
"ScriptingTests\/genericScript()",
|
||||
"ScriptingTests\/getURLScript()",
|
||||
"ScriptingTests\/nameAndURLOfEveryFeedScript()",
|
||||
"ScriptingTests\/nameOfAuthorsScript()",
|
||||
"ScriptingTests\/nameOfEveryFolderScript()"
|
||||
],
|
||||
"target" : {
|
||||
"containerPath" : "container:NetNewsWire.xcodeproj",
|
||||
"identifier" : "849C64701ED37A5D003D8FC0",
|
||||
|
||||
@@ -6,9 +6,13 @@
|
||||
// Copyright © 2018 Olof Hellman. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Testing
|
||||
|
||||
@MainActor struct ScriptingTests {
|
||||
/// Set by NetNewsWire-CI.xctestplan. Test plan skippedTests entries don’t skip these Swift Testing tests.
|
||||
private let skipScriptingTestsEnvironmentKey = "SKIP_SCRIPTING_TESTS"
|
||||
|
||||
@MainActor @Suite(.disabled(if: ProcessInfo.processInfo.environment[skipScriptingTestsEnvironmentKey] != nil, "AppleScript tests can’t run on CI")) struct ScriptingTests {
|
||||
|
||||
// An example of how a script can be run as part of a test.
|
||||
// The script returns {test_result:true, script_result:"Geoducks!"}.
|
||||
|
||||
Reference in new issue
Block a user