-
Notifications
You must be signed in to change notification settings - Fork 74
Support testing #32
Comments
It'd be great if the JSON API could be extended to support passing custom flags to the compiler and to the produced binary. That would let us create interactive examples showcasing custom compilation, testing, benchmarking, command line argument parsing, macro expansion ( |
I have written the changes that should be sufficient to enable testing and benchmarking (and I will PR as soon as I manage to test them). I think this would be pretty convenient as it would make the playpen a place to reproduce behaviours mentioned in Rust PR/issues by simply pasting the code in the playpen. I can see that passing arbitrary command line arguments might be interesting, but I'm afraid of the input validation. |
See rust-lang#107 and rust-lang#32 for some other discussion of this concept. This approach doesn’t deal with every situation, as it detects a program as either for execution or for testing, but it deals with the most common situation more elegantly than any other approach.
See rust-lang#107 and rust-lang#32 for some other discussion of this concept. This approach doesn’t deal with every situation, as it detects a program as either for execution or for testing, but it deals with the most common situation more elegantly than any other approach.
AFAICT @chris-morgan's PR doesn't deal with benchmarks. Would be really nice if the playpen supported that, allowing people to share microbenches. |
I believe this was done awhile back |
A rustbyexample testing example is below. It would be cool if you could click Run or Test in the playpen when there is a test to be run.
The text was updated successfully, but these errors were encountered: