Jonathan Grynspan

Results 85 issues of Jonathan Grynspan

This PR promotes exit tests to API, pending approval of the proposal at https://github.com/swiftlang/swift-evolution/pull/2718. View the full proposal [here](https://github.com/grynspan/swift-evolution/blob/jgrynspan/swift-testing-exit-tests/proposals/testing/NNNN-exit-tests.md). ### Checklist: - [x] Code and documentation should follow the style...

enhancement
tools integration
windows
linux
darwin
public-api
api-proposal
exit-tests
freebsd
openbsd

One of the features of swift-testing is a test traits system that allows associating metadata with a test suite or test function. One trait in particular, `.bug()`, has the potential...

public-api
api-proposal

This PR changes the initializers for `.bug()` from ones taking an undecorated and unspecified "identifier" to ones taking either a URL (as a string) or a numeric ID ("bug number.")...

bug
enhancement
tools integration
public-api

We have a bunch of functions that take separate, defaulted arguments for file ID, column, etc. We'd like to normalize these functions to always take a single `SourceLocation` instance, but...

enhancement
public-api
swift-6

This PR enables support for `@_used` and `@_section` to allow embedding test data directly into its own section in a binary. This means we don't have to look up synthesized...

enhancement
tools integration

This PR improves the test output when comparing collections and structured values (using `#expect()`) when the comparison fails. Previously, we'd just the insertions and deletions as arrays, which was potentially...

enhancement

We cannot enable C++ interop in the package because it is only available as of macOS 13 (and aligned Apple releases.) Attempting to build produces this error diagnostic: > 🛑...

bug
darwin
less-c++

When using XCTest and `swift test --filter`, if all tests are filtered out a diagnostic of the form: > warning: No matching test cases were run Is emitted by SwiftPM....

bug
swiftpm-integration

This PR refactors the implementation of `#expect()` and `#require()` a bit such that they don't incur more than minimal overhead posting `.expectationChecked` events if nobody is listening for them (which,...

bug
performance
swift-6.1

The documentation for the experimental exit tests feature currently says that on POSIX-like systems, only the low 8 bits of a process' exit code are preserved. This would be true...

bug
documentation
linux
darwin
swift-6.1