-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
2daa651
to
7adefb3
Compare
shouldn't the "meta" field simply be a part of message.context ? |
It could definitely be moved there, I did consider it but felt like the context should be more "standardized" and not depend to much on the message type. Like the skill shouldn't interfere with the context and let the "surrounding machinery" handle that field. Not sure if that makes sense? I don't really have a strong opinion one way or another, but that was my thoughts at the time. |
7adefb3
to
1fcb961
Compare
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.
Mostly minor tidying and refactoring stuff.
test/integrationtests/voight_kampff/features/steps/utterance_responses.py
Outdated
Show resolved
Hide resolved
test/integrationtests/voight_kampff/features/steps/utterance_responses.py
Outdated
Show resolved
Hide resolved
test/integrationtests/voight_kampff/features/steps/utterance_responses.py
Outdated
Show resolved
Hide resolved
test/integrationtests/voight_kampff/features/steps/utterance_responses.py
Outdated
Show resolved
Hide resolved
a3ae425
to
75b5a6b
Compare
The Voight kampff test is an integration test collecting and running behave test of skills.
Some branches have a "/" in their name (e.g. feature/new-and-cool) Some commands, such as those tha deal with directories, don't play nice with this naming convention. Define an alias for the branch name that can be used in these scenarios.
Behave will generate test results in the allure format, this will be picked up by Jenkins and sent of to a standalone webserver.
Docker build will now perform most actions of the dev-setup making it possible to use caches in a greater extent speeding up the build
This reduces the verbosity during the operation. This is not of much interest, mainly success or failure is what matters.
Allure commandline and chown command are now run through the Jenkinsfile instead of through the run_test_suite.sh
Provides meta data such as dialog used and data that was inserted.
Override the bus clients on_message method and collect all messages in a list. This will make it harder to miss a message during a test
Will now print all responses received from Mycroft
- Sharing only the identity file removes the need for clearing the skill sandbox dir and padatious cache - Make things a bit cleaner with separate Allure volume
75b5a6b
to
fe6d2f5
Compare
I think I've addressed all concerns here, either with a comment or changed code. |
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.
I like the changes you made. Just one other minor fix (see comment)
|
||
|
||
if __name__ == '__main__': | ||
main(sys.argv[1:]) |
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.
you don't need to pass the command line arguments to the arg parser. it looks at sys.argv by default.
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.
I personally like the traceability. main get's an argument to operate on so all actions can be traced back to it without any questions of where the settings originate.
- Pulseaudio is launched if on CI - remove hard-coding of start-mycroft.sh
This will make sure that the isSpeaking flag is cleared correctly
Set USER and CI
The backend doesn't generate any audio playback, only consumes the messages
This switches behave to the current dev release including the autoretry system.
--url can be added to specify the repo url --branch can be added to specify a specific branch
fe6d2f5
to
9fe158d
Compare
Takes in arguments for both test_setup.py and behave test runner. Parses any args for test_setup and passes any remaining arguments to behave. This moves argparsing out of the test_setup main() allowing the helper commands to pass in pre-parsed arguments rather than adding logic inside main to differentiate between a list and a preparsed arument object
Add the voight_kampff test suite.
This allows creating behavioral tests for skills using the behave framework. It specifies a couple of pre-defined Given, When and Then covering the most common test cases but can be expanded with custom "step files".
In addition of being a test suite for skill creators, it will be used as an integration test validating pull requests to mycroft-core, making sure the essential skills work.
There are very little changes to core, but a couple of modifications are included in all these commits:
Contributor license agreement signed?
CLA [ Yes ]