Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proc macro to generate tests on user code #1

Open
khionu opened this issue Oct 8, 2024 · 3 comments
Open

Proc macro to generate tests on user code #1

khionu opened this issue Oct 8, 2024 · 3 comments

Comments

@khionu
Copy link

khionu commented Oct 8, 2024

First off, super exciting project, my head is spinning with possibilities. Thank you for making this.

Second, I had the realization that using session types, it would be much easier to test FSMs. You could even generate the tests based on the branches with minimal annotation. This would extend the crate's static validation capabilities drastically.

@faiface
Copy link
Owner

faiface commented Oct 8, 2024

Hey! I'm so glad you find it so exciting, I do too!

And that's true and a good idea, actually. Reminds me of QuickCheck for Haskell, except there it "only" covers functional algebraic types, whereas the same techniques could be used here for entire processes...

Defining macros is an area of Rust I have very little skill at, so if somebody (perhpas you) would be interested in making that, that would be very cool.

Thanks for sharing the idea!

@khionu
Copy link
Author

khionu commented Oct 9, 2024

I'd be happy to! I'm currently planning out my time still for the next few weeks, but I'm sure I could at least do some more thorough design work by end of next week. Will keep you posted!

@faiface
Copy link
Owner

faiface commented Oct 9, 2024

@khionu Thanks, that will be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants