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

Add test suite #22

Open
fingolfin opened this issue Jan 20, 2016 · 1 comment
Open

Add test suite #22

fingolfin opened this issue Jan 20, 2016 · 1 comment

Comments

@fingolfin
Copy link
Member

A test suite (which also tests the various error handling bits) would be nice. One way to do that: Add a separate repository ReleaseToolsTest. In there, have a branch containing a "fixed" initial state, with a fake package. The test scripts reset the master branch and tags to that (or other) git revisions (and also delete / create releases via the GitHub APIs etc.). They can then simulate various situations, and test how the script reacts to them

@fingolfin
Copy link
Member Author

Just realized that testing for uncommitted changes had been broken for 1.5 years. ARGH! A test suite is really needed. Perhaps also a rewrite to make it easier? I.e. so that individual "functions" can be tested on their own?

The test suite should ideally test ever single error in the script.

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

1 participant