·
161 commits
to main
since this release
What's Changed
- Fixes to exit tests. by @grynspan in #615
- Allow move-only types as suites. by @grynspan in #619
- Remove stray use of old
SWT_BUILDING_WITH_CMAKE
condition. by @grynspan in #621 - Warn when passing a non-optional value to
try #require(T?)
. by @grynspan in #620 - Reduce overhead of
.expectationChecked
event handling in#expect()
. by @grynspan in #610 - Implement an overload of
confirmation()
that takes an unbounded range. by @grynspan in #598 - Fix a merge conflict on main-next. by @grynspan in #627
- Testing: use
clock_gettime
on Android by @compnerd in #629 - Disallow
@Test
on member functions ofXCTestCase
subclasses. by @grynspan in #626 - Improve test coverage of CustomTestStringConvertible.swift. by @grynspan in #628
- Testing: add some force unwraps for Android by @compnerd in #631
- Fix incorrectly-specified platform list in CMake file. by @grynspan in #633
- Fix build errors in
ExitCondition
operators on platforms without exit tests. by @grynspan in #635 - Merge main-next into main. by @grynspan in #636
- Special-case comparisons of ranges in
__checkBinaryOperation()
. by @grynspan in #640 - Don't define
swt_getWASIVersion()
on non-WASI. by @grynspan in #632 - Set the library version reported via CMake to 6.1-dev. by @grynspan in #637
- [6.0] Fix incorrectly-specified platform list in CMake file. by @grynspan in #634
- Add
isolation
argument to functions taking non-sendable async closures. by @grynspan in #624 - Generalize optional chaining detection used by
#require()
. by @grynspan in #625 - Plumb through the testing library version into a function instead of a C++ macro. by @grynspan in #648
- [CMake] Fix build with SwiftTesting_BuildMacrosAsExecutables option set by @ADKaster in #645
- Special-case
FileHandle(forWritingAtPath: "CONOUT$")
on Windows. by @grynspan in #654 - Add basic platform support for Android. by @grynspan in #653
- [android] fix 32 bit android build by @hyp in #656
- Optimizations to
Backtrace.current()
. by @grynspan in #647 - Do not include sysctl.h on Linux. by @grynspan in #660
- Add support for capturing backtraces from typed throws. by @grynspan in #642
- Optimize
failureBreakpoint()
. by @grynspan in #655 - Add an EditorConfig file by @stmontgomery in #600
- Remove
#expect(throws: Never.self)
and#require(throws: Never.self)
as distinct overloads. by @grynspan in #661 - Replace rethrows with typed throws in Graph by @stmontgomery in #662
- Work around compiler regression causing CI failure. by @grynspan in #664
- Work around swiftinterface generation bug on Windows. by @grynspan in #663
- Work around the swiftinterface generation issue for Android too by @hyp in #665
- Don't use
Synchronization.Atomic
fordeliverExpectationCheckedEvents
. by @grynspan in #666 - Exit tests shouldn't emit crash logs. by @grynspan in #670
- CMake: Install
_TestingInternals
in static library builds by @kateinoigakukun in #651 - Fix a typo in a call of install path getter function name by @kateinoigakukun in #672
- Ask Foundation to capture
NSError
/CFError
backtraces for us. by @grynspan in #673 - Expose the target triple as a separate string from the testing library version. by @grynspan in #652
- Revert "Replace rethrows with typed throws in Graph" by @artemcm in #679
- Silence a concurrency warning on Linux/Windows building an actor-isolated test. by @grynspan in #680
- [android] fix the build by @hyp in #681
- Add the current configuration to
Event.Context
. by @grynspan in #677 - Optionally symbolicate backtraces. by @grynspan in #676
- Add platform-specific branches for FreeBSD. by @grynspan in #685
- Require explicit backtrace and source location when creating and recording issues by @stmontgomery in #688
- Remove the
Confirmation.ExpectedCount
marker protocol. by @grynspan in #689 - Switch to official 600.0.0 tag for swift-syntax by @stmontgomery in #690
- Move
spawnAndWait(forExecutableAtPath:)
to a separate file. by @grynspan in #695 - Un-revert "Replace rethrows with typed throws in Graph" by @stmontgomery in #692
- Add a
Pipe
type. by @grynspan in #694 - Disable pipes code on WASI. by @grynspan in #699
- CMake: Use
CMAKE_SYSTEM_NAME STREQUAL "WASI"
instead ofWASI
by @kateinoigakukun in #700 - Support: unwrap storage for parameter to
pipe
by @compnerd in #703 - Hoist JSON Lines logic from EntryPoint.swift. by @grynspan in #701
- Add manpage links for FreeBSD headers mentioned in documentation. by @grynspan in #704
- Preserve
verbosity
argument inHumanReadableOutputRecorder.record()
. by @grynspan in #707 - Remove TemporaryGettingStarted.md. by @grynspan in #706
- Make the
ExitTest
type move-only. by @grynspan in #712 - Add a document about porting to new platforms. by @grynspan in #711
- [CMake] Explicitly link Testing to Foundation by @rintaro in #693
- Record issues generated within exit tests. by @grynspan in #697
- Avoid accidental use of
#_sourceLocation
in the library target. by @grynspan in #722 - Avoid truncating the path to the test executable on Windows. by @grynspan in #724
- Remove extraneous @escaping and @sendable attributes from CustomExecutionTrait.execute(...) SPI by @stmontgomery in #726
- Walk PE files' sections instead of using
swift_enumerateAllMetadataSections()
. by @grynspan in #728 - Fix the 32-bit Windows build by @hjyamauchi in #731
- Don't use
swift_enumerateAllMetadataSections()
on WASI. by @grynspan in #730 - Only call
getsectiondata()
once per image. by @grynspan in #734 - Distinguish when an error is part of a recorded issue in an exit test. by @grynspan in #718
- Reset default signal handlers on child processes before spawning them. by @grynspan in #732
- Set
RLIMIT_CORE=1
instead of=0
on Linux. by @grynspan in #737 - Do not emit a
time=
attribute in JUnit output for skipped tests. by @grynspan in #741 - Inherit isolation in
#expect(exitsWith:)
. by @grynspan in #736 - Fix macro expansion failure for a non-copyable suite type with a
test
method. by @grynspan in #739 - Disable reformatting of macro expansions. by @grynspan in #743
- Disable formatting for more macros. by @grynspan in #744
- Simplify the configuration option for synchronous test isolation. by @grynspan in #747
- Simplify the thunk names we generate for test functions. by @grynspan in #750
- Fix a test that fails to compile on 32-bit targets. by @grynspan in #753
- Work around a compiler crash trying to demangle an expression macro inside an attached macro expansion. by @grynspan in #754
- Stub out symbolication on platforms without dynamic linking/loading. by @grynspan in #758
- Remove unintentional label from 'isolated' parameter on a thunk emitted by @test by @stmontgomery in #759
- Combine the test discovery implementations for WASI and static Mach-O. by @grynspan in #761
- Update Porting.md to describe how to handle platforms that use static linkage. by @grynspan in #763
- Fix missing newlines in error JSON propagated from an exit test. by @grynspan in #767
- Add
.index-build
to.gitignore
by @MaxDesiatov in #768 - Split
SWT_NO_EXIT_TESTS
intoSWT_NO_EXIT_TESTS
andSWT_NO_PROCESS_SPAWNING
. by @grynspan in #769 - Add a return type for exit tests. by @grynspan in #762
- Update documentation to explain misconfigurations of
SWT_
conditions. by @grynspan in #772 - Handle signals on Windows in exit tests. by @grynspan in #766
- Avoid using
NTSTATUS
nearexit()
. by @grynspan in #776 - Ensure trailing trivia is trimmed from @suite trait expressions by @stmontgomery in #778
- Make the result of an exit test optional with
#expect
. by @grynspan in #779 - Add support for collecting
stdout
andstderr
in an exit test. by @grynspan in #773 - Make
ExitTestArtifacts.observedValues
properly sendable. by @grynspan in #781 - Fix some compiler conditional uses (
SWT_NO_*
). by @grynspan in #782 - [SWT-0005] Range-based confirmations by @grynspan in #691
- Update documentation for new
confirmation()
overload. by @grynspan in #784 - Work around a crash importing FoundationXML. by @grynspan in #786
- Ensure the identifier of a "seen" object is only removed if the object's children were recursively reflected by @stmontgomery in #787
- Attachments! by @grynspan in #770
- DNM: Revert "Attachments! (#770)" by @tshortli in #793
- Ensure the
Bool
overload of__checkBinaryOperation()
is still preferred. by @grynspan in #797 - Attachments! [Take 2] by @grynspan in #796
- WASI: Access to
EEXIST
through a stub getter function by @kateinoigakukun in #800 - Test cleanup: Remove an obsolete fixture suite and add .hidden to a few tests by @stmontgomery in #803
- Specify the module to find the ABI entry point function in (in our own tests). by @grynspan in #801
- Fix a crash when describing a confirmation failure with a range. by @grynspan in #806
- Add support for platform-specific unconditional availability. by @grynspan in #807
- Do not perform full expansion of
#expect()
whentry
orawait
is present. by @grynspan in #790 - Eagerly move attachable values to the heap. by @grynspan in #809
- Revert "Eagerly move attachable values to the heap. (#809)" by @grynspan in #810
- Provide an environment flag to disable error backtrace capturing. by @grynspan in #812
- Provide an opt-out conditional for lazy attachment encoding. by @grynspan in #811
- Refine the Foundation error backtracing guard by @briancroom in #813
- Update install to ensure the build directory is not added to the rpath by @bnbarham in #792
- Work around Windows build failure due to SwiftPM regression. by @grynspan in #816
- Fix how we check if a range expression covers one value. by @grynspan in #815
- Make
Test.Attachment
generic. by @grynspan in #814 - SourceLocation.init should enforce valid arguments by @stmontgomery in #817
- Hoist
Attachment
andAttachable
out ofTest
. by @grynspan in #821 - Update DocC symbol references for
Attachment
et al. by @grynspan in #822 - Add support for attachments to the Foundation cross-import overlay. by @grynspan in #819
- Defer the recursive propagation of suite traits until after filtering by @stmontgomery in #820
- Ensure tests representing containing types of suites are synthesized if necessary by @stmontgomery in #407
- [6.1] Remove '-dev' from package version by @grynspan in #839
- [6.1] Fix multiline comments not rendering correctly at CLI. by @grynspan in #852
- [6.1] Adopt prerelease tags of swift-syntax-601. by @grynspan in #851
- [6.1] [SWT-0006] Return the thrown error from
#expect(throws:)
and#require(throws:)
. by @grynspan in #857 - [6.1] Mark
#expect(_:throws:)
and#require(_:throws:)
as to-be-deprecated. by @grynspan in #879 - [6.1] Remove the
introduced: 6.0
argument from the to-be-deprecated attributes on#expect(performing:throws:)
and#require(performing:throws:)
. by @grynspan in #889 - [6.1] [SWT-0007] Introduce API allowing traits to customize test execution by @stmontgomery in #907
- [6.1] Declare Swift 6.1 availability for TestScoping-related APIs by @stmontgomery in #930
- [6.1] Suppress warning about
#require(nonOptional)
in some cases. by @grynspan in #949 - [6.1] Cleaning recently changed docs by @iamleeg in #958
- [6.1] Add an overview of test serialization to the XCTest migration guide by @iamleeg in #965
- [6.1] Note in documentation when
#expect(throws:)
started returning a value. by @grynspan in #990 - [6.1] Diagnose when using a non-escapable type as suite. by @grynspan in #992
- [6.1] Suppress
.unsafeFlags()
in Package.swift when tagging for release. by @grynspan in #993
New Contributors
- @ADKaster made their first contribution in #645
- @artemcm made their first contribution in #679
- @hjyamauchi made their first contribution in #731
Full Changelog: swift-6.0.3-RELEASE...swift-6.1-RELEASE