-
Notifications
You must be signed in to change notification settings - Fork 33
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: flyingmutant/rapid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: flyingmutant/rapid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 13 commits
- 15 files changed
- 3 contributors
Commits on Aug 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for efc31a7 - Browse repository at this point
Copy the full SHA efc31a7View commit details
Commits on Nov 4, 2023
-
persist: ensure we never try to use a filename that is reserved on wi…
…ndows This only happens in test runs, since real test name always start with 'Test'
Configuration menu - View commit details
-
Copy full SHA for d56e037 - Browse repository at this point
Copy the full SHA d56e037View commit details
Commits on Apr 1, 2024
-
StateMachineActions: Support
func(rapid.TB)actionsThis allows reuse actions from normal tests that use `testing.TB`. This is helpful for tests where there may be very specific test scenarios where some logic is abstracted into a common action.
Configuration menu - View commit details
-
Copy full SHA for cee6e9b - Browse repository at this point
Copy the full SHA cee6e9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fec3f59 - Browse repository at this point
Copy the full SHA fec3f59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34cb5b2 - Browse repository at this point
Copy the full SHA 34cb5b2View commit details
Commits on May 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 654675a - Browse repository at this point
Copy the full SHA 654675aView commit details
Commits on Jun 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3aa554a - Browse repository at this point
Copy the full SHA 3aa554aView commit details
Commits on Jul 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4d1266b - Browse repository at this point
Copy the full SHA 4d1266bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee28b02 - Browse repository at this point
Copy the full SHA ee28b02View commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4b93305 - Browse repository at this point
Copy the full SHA 4b93305View commit details
Commits on Feb 16, 2025
-
Go 1.24 was released last week. Test against Go 1.24 in CI as well. (Per Go support policy, 1.21 and 1.22 are no longer supported, but I've left them around as rapid may still want to support them.)
Configuration menu - View commit details
-
Copy full SHA for ecc839f - Browse repository at this point
Copy the full SHA ecc839fView commit details
Commits on Feb 20, 2025
-
* feat: Add T.Context() *Context*: Go 1.24 adds a `Context()` method to `testing.TB` that returns a context bound to the current test's lifetime. The context becomes invalid _before_ `T.Cleanup` functions are run. *Details*: This change adds a similar `Context()` method to `rapid.T`, except this context is only valid for the duration of one iteration of a rapid check. *Implementation notes*: This changes `newT` to return a `cancel` function instead of just adding a `cancel` method to `T` to ensure that all callers of `newT` remember to call `cancel`. This also uses IIFEs (immediately-invoked function expressions) in a couple places to rely on well-timed `defer` calls for cleanup instead of manually calling `cancel`. *Future work*: The logic added in this commit will make it relatively straightforward to add a `Cleanup` method (#62). * lazy init, cleanup in checkOnce, maybeValue, example Per GitHub comment, delete the `cancel` return value from newT, instead add a single `cleanup` method. The method is called for cleanup in three places: - checkOnce: this is per property - maybeValue: this is per Custom generator function call - example: this is per Example call Context is now initialized lazily: if there isn't one, it is created. * fix: data race in t.ctx access
Configuration menu - View commit details
-
Copy full SHA for c3c5e3c - Browse repository at this point
Copy the full SHA c3c5e3cView commit details
Commits on Feb 24, 2025
-
* feat: Add T.Cleanup Adds a new T.Cleanup method to register cleanup functions. These will run after each iteration of a Check. The implementation of how cleanup functions are tracked and run is borrowed heavily from testing.T's own implementation. Namely: - [T.Cleanup puts functions in a slice](https://cs.opensource.google/go/go/+/refs/tags/go1.24.0:src/testing/testing.go;l=1214-1216) - [cleanups are run in reverse order](https://cs.opensource.google/go/go/+/refs/tags/go1.24.0:src/testing/testing.go;l=1433-1446) popping functions from the slice one by one - [panics are not allowed to interrupt cleanup](https://cs.opensource.google/go/go/+/refs/tags/go1.24.0:src/testing/testing.go;l=1420-1427) As with `testing.T`, cleanup runs after the context is canceled. Because Rapid's context is lazily initialized, it needs an additional check to avoid providing a valid context during cleanup. Resolves #62 * doc: try to be clearer
Configuration menu - View commit details
-
Copy full SHA for 7adc026 - Browse repository at this point
Copy the full SHA 7adc026View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.1.0...v1.2.0