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

Create a set of script to test the clients automatically #18

Closed
elg opened this issue Jun 4, 2015 · 3 comments
Closed

Create a set of script to test the clients automatically #18

elg opened this issue Jun 4, 2015 · 3 comments
Assignees
Milestone

Comments

@elg
Copy link
Contributor

elg commented Jun 4, 2015

The script is written in bash (or sh) and launch the passhport client wiht all options possible.

  1. Create a new database test (on a temporary directory... we don't want erase the actual database)
  2. Every test is run one by one.
  3. All the returns are tested and the result is done at the end of the script (ie: "12/22 tests passsed") and the failed tests are raising an error during the process.
  4. The database is moved/erased. We restore the normal behavior.
@elg elg added this to the Init milestone Jun 4, 2015
@elg
Copy link
Contributor Author

elg commented Jun 4, 2015

If needed, I can do that. not the most important for you except to understand docopt.

@elg elg assigned elg and unassigned VeryTastyTomato Jun 15, 2015
@elg
Copy link
Contributor Author

elg commented Jun 15, 2015

Late on this one. I takeover.

elg added a commit to elg/passhport that referenced this issue Jun 18, 2015
@elg
Copy link
Contributor Author

elg commented Jun 18, 2015

I change my mind. The goal is to test rapidly and have a nice and easy to read output.
-> One shellscript by module (user/target/usergroup/targetgroup)
-> output with "OK" or "ERROR" on each test
I'll create more issues for other modules since user module is done.

@elg elg closed this as completed Jun 18, 2015
elg added a commit that referenced this issue Jun 18, 2015
Adding CLI test file + passhport-admin #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants