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

Adds SITL test infrastructure. #197

Merged
merged 3 commits into from Jul 14, 2015
Merged

Adds SITL test infrastructure. #197

merged 3 commits into from Jul 14, 2015

Conversation

tcr3dr
Copy link
Contributor

@tcr3dr tcr3dr commented Jul 11, 2015

Right now, this only tests a very trivial property check and code around timing #12. This PR would serve as the basis for forthcoming tests.

The test rig itself is wonky, but it's designed to emulate a single-script test as much as possible. In a first-class DKPY module, we'd be using nosetests and these would be straightforward to port over.

You can run it by running cd tests; python -m sitl.

@tcr3dr tcr3dr force-pushed the tcr-sitltest branch 7 times, most recently from 830ec43 to 4839424 Compare July 11, 2015 01:02
@tcr3dr tcr3dr changed the title [WIP] Adds SITL tests. [WIP] Adds SITL test infrastructure. Jul 11, 2015
@tcr3dr tcr3dr force-pushed the tcr-sitltest branch 20 times, most recently from 2b5e469 to 92df258 Compare July 11, 2015 21:01
@tcr3dr tcr3dr force-pushed the tcr-sitltest branch 14 times, most recently from 92291cc to e12a558 Compare July 14, 2015 00:02
@tcr3dr tcr3dr changed the title [WIP] Adds SITL test infrastructure. Adds SITL test infrastructure. Jul 14, 2015
@tcr3dr
Copy link
Contributor Author

tcr3dr commented Jul 14, 2015

(Rerunning one last time to remove some echo statements.)

print "Read new value of param 'THR_MIN': %s" % v.parameters['THR_MIN']

# TODO
# assert end - start < 1000, 'time to set parameter was %s, over 1s' % (end - start,)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the relevant Asserts here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #12 (my last comment)

@mrpollo
Copy link
Member

mrpollo commented Jul 14, 2015

great place to start, added comments but they are not limiting to merge, great work @tcr3dr, now we need to get better coverage and to start requiring tests on code contributions

@mrpollo
Copy link
Member

mrpollo commented Jul 14, 2015

👍

mrpollo added a commit that referenced this pull request Jul 14, 2015
Adds SITL test infrastructure.
@mrpollo mrpollo merged commit d3ed940 into master Jul 14, 2015
@hamishwillee
Copy link
Contributor

@mrpollo @tcr3dr

Awesome!

now we need to get better coverage and to start requiring tests on code contributions

For that you will need a brief guide of how the test infastructure works, how/if it can be set up locally, and information on how you set up your own tests. Is there an issue for that outstanding (I can't see one) and can you write it?

@mrpollo
Copy link
Member

mrpollo commented Jul 15, 2015

@hamishwillee see #203

@tcr3dr tcr3dr deleted the tcr-sitltest branch August 12, 2015 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants