File tree Expand file tree Collapse file tree 3 files changed +19
-20
lines changed
Resources/branch_release-5.9/Tests/Tests Expand file tree Collapse file tree 3 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ RUN cd Resources/branch_main && swift build -c release --static-swift-stdlib
32
32
33
33
WORKDIR /staging
34
34
35
- RUN cp "$(swift build --package-path /build -c release --show-bin-path)/App" ./
35
+ RUN cp "$(swift build --package-path /build -c debug --show-bin-path)/App" ./
36
36
37
- RUN find -L "$(swift build --package-path /build -c release --show-bin-path)/" -regex '.*\. resources$' -exec cp -Ra {} ./ \;
37
+ RUN find -L "$(swift build --package-path /build -c debug --show-bin-path)/" -regex '.*\. resources$' -exec cp -Ra {} ./ \;
38
38
39
39
RUN [ -d /build/Public ] && { mv /build/Public ./Public && chmod -R a-w ./Public; } || true
40
40
RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w ./Resources; } || true
Original file line number Diff line number Diff line change @@ -10,23 +10,22 @@ final class AppTests: XCTestCase {
10
10
)
11
11
12
12
let decoder = JSONDecoder ( )
13
- print ( response. syntaxHTML)
14
-
15
- // XCTAssertEqual(
16
- // try decoder.decode([TreeNode].self, from: Data(response.syntaxJSON.utf8)),
17
- // try decoder.decode(
18
- // [TreeNode].self, from: Data(
19
- // contentsOf: Bundle.module.url(forResource: "test-1-1.json", withExtension: nil)!
20
- // )
21
- // )
22
- // )
23
- // XCTAssertEqual(
24
- // response.syntaxHTML,
25
- // try String(
26
- // contentsOf: Bundle.module.url(forResource: "test-1-1.html", withExtension: nil)!
27
- // )
28
- // .replacingOccurrences(of: "\n", with: "")
29
- // )
13
+
14
+ XCTAssertEqual (
15
+ try decoder. decode ( [ TreeNode ] . self, from: Data ( response. syntaxJSON. utf8) ) ,
16
+ try decoder. decode (
17
+ [ TreeNode ] . self, from: Data (
18
+ contentsOf: Bundle . module. url ( forResource: " test-1-1.json " , withExtension: nil ) !
19
+ )
20
+ )
21
+ )
22
+ XCTAssertEqual (
23
+ response. syntaxHTML,
24
+ try String (
25
+ contentsOf: Bundle . module. url ( forResource: " test-1-1.html " , withExtension: nil ) !
26
+ )
27
+ . replacingOccurrences ( of: " \n " , with: " " )
28
+ )
30
29
}
31
30
32
31
func testParser2( ) throws {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ func routes(_ app: Application) throws {
64
64
environment: [
65
65
" NSUnbufferedIO " : " YES " ,
66
66
] ,
67
- workingDirectory: try ! AbsolutePath . init ( validating: " \( app. directory. resourcesDirectory) \( branch) /.build/release / " )
67
+ workingDirectory: try ! AbsolutePath . init ( validating: " \( app. directory. resourcesDirectory) \( branch) /.build/debug / " )
68
68
)
69
69
70
70
try process. launch ( )
You can’t perform that action at this time.
0 commit comments