Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unit testing frameworks #706

Unanswered
tfasz asked this question in General
Discussion options

Has anyone experimented with building automated unit tests for pyscripts using a traditional Python unit testing framework like unittest or pytest? I find pyscript a much cleaner and easier way to manage automations than editing YAML files but it would be even better if there was an easy way to build simple unit tests for them.

When making changes I often have to walk around the house and manually trigger things to test my changes and then spend the next few days looking at logs and to make sure they are working as expected. Common mistakes I see are syntax errors, mis-spelling of entities/scenes, etc. are only obvious after cycling through day/night, home/away modes, etc.

Love to hear if there are any good examples out there before I embark on creating my own.

Thanks for the great project.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /