every configuration on every model. I think of this as more of a functional
or regression test than a unit test, though. And we know ahead
unit tests for the models. Tests that exercise all of the functions
On 5/23/13 2:23 PM, Peter Li wrote:
> I've been thinking some more about the testing framework. The way I set up the new framework, all of the model tests are
> run for all samplers, but I'm not sure that's what we want. Will there be models that we do not want to test against
> certain samplers just because it would take so long?
>
> If so, a different set-up for the framework would be to have separate test files for each sampler. (i.e. for
> bugs_examples/vol/blocker, we could have blocker_nuts_test.cpp, blocer_unit_metro_test.cpp, etc.). Then, if we do not
> want to test a certain sampler we just don't include that file. But if we do it this way, I think it would end up
> compiling the model as many times as we want to test it, which would significantly increase the amount of time it takes
> to run test-models. That's one of the main reasons why I opted to setup the tests the other way. However, another plus
> for this is that we can create make commands (if that's what they're called) that will test all the models against
> certain samplers in case we don't want to run all of the models against all the samplers (NUTS, unit/diag/dense metro
> and later RM-HMC, Ensemble (with a few variations)).
>
> We could also opt to keep the current setup and just have an if/else statement inside the model_test_fixture that
> doesn't run the tests if the number of iterations is greater than 500k or whatever upper bound we choose. As for being
> able to just test certain samplers, that would not be difficult, but I don't see a way to just give a command that does
> that--we'd have to go into model_test_fixture and comment out the tests that call the other samplers. This still
> wouldn't be difficult, but it just wouldn't be systematic.
>
>
>
> Peter
>
>
> On Wed, May 22, 2013 at 2:09 PM, Daniel Lee <
bea...@alum.mit.edu <mailto:
bea...@alum.mit.edu>> wrote:
>
> [moving discussion to stan-dev]
>