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

RFE: test actions in a way that doesn't suck #123

Closed
yac opened this Issue Jun 19, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@yac
Collaborator

yac commented Jun 19, 2017

Describing and unit testing various operations rdopkg performs on .spec files is currently tedious, painful and not fun at all. I need to rethink the unit tests to actually be a useful and fun part of development process, not a burden that slows down progres and saps out life of contributors.

I need to research http://lettuce.it/ and other testing tools and approaches. If you have some tips on howto test non-trivial text file transformations, please share.

@yac

This comment has been minimized.

Show comment
Hide comment
@yac

yac Jun 21, 2017

Collaborator

After initial research, I think using Behavior Driven Development framework would solve both hard unit tests and poor documentation of specific actions behavior.

There is a wide range of python BDD libraries available. Currently, I'm in favor of behave which looks like solid stable implementation with users, proper documentation and RPM packages available in Fedora.

I like Morelia's approach and integration with existing testing tools more, but it is a risky hipster dependency.

Collaborator

yac commented Jun 21, 2017

After initial research, I think using Behavior Driven Development framework would solve both hard unit tests and poor documentation of specific actions behavior.

There is a wide range of python BDD libraries available. Currently, I'm in favor of behave which looks like solid stable implementation with users, proper documentation and RPM packages available in Fedora.

I like Morelia's approach and integration with existing testing tools more, but it is a risky hipster dependency.

@yac

This comment has been minimized.

Show comment
Hide comment
@yac

yac Jul 13, 2017

Collaborator

Nice prototype under review: https://softwarefactory-project.io/r/#/c/8679/

Collaborator

yac commented Jul 13, 2017

Nice prototype under review: https://softwarefactory-project.io/r/#/c/8679/

@yac yac added the next label Jul 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment