Coder Social home page Coder Social logo

testing's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

testing's Issues

Improve `TestCase` API

TestCase::new() and TestCase::Skip do not make a lot of sense when creating the two possible variants of a Test case. Furthermore, does it make sense to keep a builder pattern for non-skipped test cases? If the answer is yes, does it make sense to simply return Skip cases even when calling builder functions, effectively making the call a no-op? Should we panic!() to indicate that the user might be doing something unexpected or silently ignore that as we currently do?

Show progress while generating yaml

cargo run -- ... takes forever while generating testsuite.yml. (30min on my laptop)
It is helpful to show how far it has progressed.

[info] generating test cases for `gccrs-parsing`... this might take a while

โ†“

[info] generating test cases for `gccrs-parsing`
54% done.

Refactor rustc Command builder in its own function/type

This will avoid repetitions throughout multiple passes and allow us to have sensible common defaults for all existing and future passes such as the crate name to give to rustc

It would also be nice if this was simply a trait extension on Rust's std::process::Command

Run `ast-export` testsuite nightly

This was disabled due to some issues, maybe due to the runner, maybe due to how we were exporting said AST dump. We need to investigate the failure and re-enable it in the nightly run.

Readme contains typo and uses wrong gccrs compiler proper

> cargo run -- \
	--gccrs './rust1' --rustc rustc \
	--gccrs-path gccrs/ --rust_path rust/ \
	--output-dir sources/ --yaml testsuite.yml \
	--pass gccrs-parsing

The executable should be named "crab1", and the rust_path argument is wrong - should be rust-path

Add AST dump/export testsuite

Run the code and its dumped version against each other, checking for stdout and the exit code. On our testsuite is probably a good starting point

See if using rustc as a library is worth it

With #![rustc_private] you could use the RunCompiler API. Not sure if you want to do that though. I think just executing rustc with Command is good enough.

Originally posted by @flip1995 in #7 (comment)

Let's experiment and see if it makes a good difference in test generation time. Currently, generating all test suites takes around 7 minutes which is quite long but not "horrible"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.