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
tests: init RobotFramework and add basic xtimer test #10843
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
*** Settings *** | ||
Documentation Basic tests to verify functionality of the Xtimer API. | ||
|
||
# reset application and check DUT has correct firmware, skip all tests on error | ||
Suite Setup Run Keywords Reset Application | ||
... DUT Must Have API Firmware | ||
# reset application and check DUT is up again befor every test case | ||
Test Setup Run Keywords Reset Application | ||
... DUT Must Have API Firmware | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As this is somehow a POC/showcase for using robot framework a little more comments here would be nice to make clear what There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. first: why should I repeat the RF documentation? There is plenty documentation on Suite/Test Setup at the original sources, I can add some links in the dist/robotframework/README.md but copy-pasting docu doesn't make sense (to me). second: no that's no hack in that sense, it's just there to ensure that before each test the devices are reset and responding correctly before running the tests. The Suite Setup could be avoided but on the other it helps to skip all tests if there is a problem with the board. |
||
|
||
# import libs and keywords | ||
Library Xtimer port=%{PORT} baudrate=%{BAUD} timeout=${10} | ||
Resource api_shell.keywords.txt | ||
Resource riot_base.keywords.txt | ||
|
||
# add default tags to all tests | ||
Force Tags xtimer | ||
|
||
*** Test Cases *** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a reference to dist/robotframework/README.md for installing the requirements here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep makes sense