gobanos / cargo-aoc

452 stars 48 forks source link

Suggestion: Run all benchmarks #28

Closed ThomasdenH closed 4 years ago

ThomasdenH commented 5 years ago

Maybe add a flag to run all days and parts, for example for CI?

Something like cargo aoc --all and cargo aoc bench --all.

AlisCode commented 5 years ago

Hi Thomas,

Running cargo run at the root of the project instead of cargo aoc runs all the implemented days & parts if you have set your main.rs up as shown in the docs. This is what one should use in a CI environment IMO.

You're right though, we should add a note about it in the docs.

Benching is something different, sadly I have never used Criterion myself so I can't be of any help here. I think that it requires a bit of setup code-wise. Maybe @gobanos knows a bit more about setting this up.

ThomasdenH commented 5 years ago

Super, it looks like aoc_main! is what I wanted. I'll edit the issue for benchmarks, although I'm not sure there's a need for it.