Git Product home page Git Product logo

Comments (5)

MaxDesiatov avatar MaxDesiatov commented on July 16, 2024 3

It now works with my custom build on macOS 🎉 (on Linux it's still blocked by #713)

% wasmer .build/wasm32-unknown-wasi/debug/swift-base64-kitPackageTests.xctest      
Test Suite 'All tests' started at 2020-04-24 16:31:33.338
Test Suite 'testBundle.xctest' started at 2020-04-24 16:31:33.339
Test Suite 'DecodingTests' started at 2020-04-24 16:31:33.339
Test Case 'DecodingTests.testBase64DecodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.339
Test Case 'DecodingTests.testBase64DecodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'DecodingTests.testBase64DecodingArrayOfNulls' started at 2020-04-24 16:31:33.340
Test Case 'DecodingTests.testBase64DecodingArrayOfNulls' passed (0.0 seconds)
Test Case 'DecodingTests.testBase64DecodingWithInvalidLength' started at 2020-04-24 16:31:33.341
Test Case 'DecodingTests.testBase64DecodingWithInvalidLength' passed (0.0 seconds)
Test Case 'DecodingTests.testBase64DecodingWithPoop' started at 2020-04-24 16:31:33.341
Test Case 'DecodingTests.testBase64DecodingWithPoop' passed (0.0 seconds)
Test Case 'DecodingTests.testBase64UrlDecodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.341
Test Case 'DecodingTests.testBase64UrlDecodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'DecodingTests.testDecodeEmptyString' started at 2020-04-24 16:31:33.342
Test Case 'DecodingTests.testDecodeEmptyString' passed (0.0 seconds)
Test Suite 'DecodingTests' passed at 2020-04-24 16:31:33.342
	 Executed 6 tests, with 0 failures (0 unexpected) in 0.003 (0.003) seconds
Test Suite 'EncodingTests' started at 2020-04-24 16:31:33.343
Test Case 'EncodingTests.testBase64EncodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.343
Test Case 'EncodingTests.testBase64EncodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'EncodingTests.testBase64EncodingArrayOfNulls' started at 2020-04-24 16:31:33.344
Test Case 'EncodingTests.testBase64EncodingArrayOfNulls' passed (0.0 seconds)
Test Case 'EncodingTests.testBase64UrlEncodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.344
Test Case 'EncodingTests.testBase64UrlEncodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'EncodingTests.testEncodeEmptyData' started at 2020-04-24 16:31:33.345
Test Case 'EncodingTests.testEncodeEmptyData' passed (0.0 seconds)
Test Suite 'EncodingTests' passed at 2020-04-24 16:31:33.345
	 Executed 4 tests, with 0 failures (0 unexpected) in 0.002 (0.002) seconds
Test Suite 'IntegrationTests' started at 2020-04-24 16:31:33.345
Test Case 'IntegrationTests.testEncodeAndDecodingĨ' started at 2020-04-24 16:31:33.345
swift-base64-kit/Tests/Base64KitTests/IntegrationTests.swift:16: error: IntegrationTests.testEncodeAndDecodingĨ : XCTAssertEqual failed: ("Ĩ") is not equal to ("Ĩg=p/.") - 
Test Case 'IntegrationTests.testEncodeAndDecodingĨ' failed (0.0 seconds)
Test Suite 'IntegrationTests' failed at 2020-04-24 16:31:33.346
	 Executed 1 test, with 1 failure (0 unexpected) in 0.0 (0.0) seconds
Test Suite 'testBundle.xctest' failed at 2020-04-24 16:31:33.346
	 Executed 11 tests, with 1 failure (0 unexpected) in 0.006 (0.006) seconds
Test Suite 'All tests' failed at 2020-04-24 16:31:33.346
	 Executed 11 tests, with 1 failure (0 unexpected) in 0.006 (0.006) seconds

A test failed, which is interesting, but at least XCTest built for WASI helped in discovering that failure 😄

from swift.

MaxDesiatov avatar MaxDesiatov commented on July 16, 2024

Most likely this is blocked by #592 as XCTest has a dependency on Foundation.

from swift.

MaxDesiatov avatar MaxDesiatov commented on July 16, 2024

Quick update, I currently have a version of XCTest building for the WASI triple, it did require turning off a lot of things that aren't available in either WASI or WASIFoundation yet, namely anything related to Bundle, asynchronous testing with expectations, parallel test runs etc. But at least it builds 🙂 I can't run any tests on macOS yet, I know test runs on macOS work differently because they don't use LinuxMain, which have to be used when testing with the WASI triple. I tried to run some tests on Linux, but that's blocked by #713.

from swift.

kateinoigakukun avatar kateinoigakukun commented on July 16, 2024

@MaxDesiatov Wow, this is really great work!
After resolving some issues related to #592, can we merge our forked version of XCTest into upstream?

from swift.

MaxDesiatov avatar MaxDesiatov commented on July 16, 2024

Yes, upstreaming everything is high on my list, just wanted to get something working first 🙂

from swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.