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

Ability to call one or more smashbox tests from within a smashbox test #8

Open
jnfrmarks opened this issue Mar 27, 2015 · 7 comments
Open

Comments

@jnfrmarks
Copy link
Contributor

I'd like to be able to call one or more smashbox tests from within a smashbox test to allow for concurrent runs. Is this possible?

@PVince81

@PVince81
Copy link
Contributor

Basically it's about having super-testsets or multi-level testsets. A testset that lets you specify a test file with other parameters like "apps to enable" and other config settings.

@moscicki
Copy link
Contributor

I am not really sure if I understand what you would like to achieve. Do you want to make dependencies between the tests? Is smash -a option to run over all test tests not enough? Do you need a driver around smash so that you can call it multiple times?

Could you please illustrate an example of what you want?

@jnfrmarks
Copy link
Contributor Author

I think what I want is "collections". I want to be able to run multiple tests at the same time, for instance test_shareGroup and test_shareDir.

@moscicki
Copy link
Contributor

moscicki commented Apr 2, 2015

A quick workaround: try to specify

smash test_share*.py

@PVince81
Copy link
Contributor

PVince81 commented Apr 8, 2015

This is more about providing a super-testset that looks like this:

[
    {
        testsToRun: ['test_upload.py', 'test_whatever.py'],
         appsToEnable: ['files_encryption'],
         someExpectedResult: ...
    },
    {
         testsToRun: ['test_upload.py', 'test_whatever.py'],
         appsToEnable: ['files_encryption', 'files_versions'],
         someExpectedResult: ...
     },
]

and that could for example be in a supertest called "test_dosensiblestuffwithencryption".

Basically having one test be able to run other tests. Maybe add a utility function "run_subtest('test_upload')" that makes it possible to run a test within a worker.

@nickvergessen
Copy link
Contributor

It is possible to run bin/smash lib/oc-tests/ (so specifying a directory) which should be enough logic.
Just group the tests in suitable test-folders ;)

@PVince81
Copy link
Contributor

And then write shell scripts to run the command on the same folder multiple times with different configs/cases ?  (With encryption, without encryption, etc).

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

4 participants