Closed Bug 1200260 Opened 9 years ago Closed 9 years ago

Add testing environment startup script for MozReview

Categories

(MozReview Graveyard :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dminor, Assigned: dminor)

Details

Attachments

(1 file)

mdoglio and I have a little script we use to start up the test environment for local testing, based on the helper script for starting up the .t tests. It would be nice if we could clean this up and add it to the repo. If everyone uses it, we're less likely to break it with changes to the environment, and it would be helpful for new contributors.
mozreview: Add testing environment startup script for MozReview (bug 1200260) r?mdoglio,smacleod,mcote,gps This adds a test environment startup script for local MozReview testing. It starts the mozreview servers, creates a default user, some bugs and a local repository that can be used to push reviews.
Attachment #8656636 - Flags: review?(smacleod)
Attachment #8656636 - Flags: review?(mdoglio)
Attachment #8656636 - Flags: review?(mcote)
Attachment #8656636 - Flags: review?(gps)
Comment on attachment 8656636 [details] MozReview Request: mozreview: Add testing environment startup script for MozReview (bug 1200260) r?mdoglio,smacleod,mcote,gps https://reviewboard.mozilla.org/r/18223/#review16407 Looks like a good default environment. You may want to also update the hacking on mozreview docs. ::: start-local-mozreview.sh:1 (Diff revision 1) > +#!/bin/bash Please drop .sh from the filename. History tells us we'll rewrite this in Python some day :) ::: start-local-mozreview.sh:4 (Diff revision 1) > + You probably want a `set -e` here so the script aborts if a command fails.
Attachment #8656636 - Flags: review?(gps) → review+
Comment on attachment 8656636 [details] MozReview Request: mozreview: Add testing environment startup script for MozReview (bug 1200260) r?mdoglio,smacleod,mcote,gps https://reviewboard.mozilla.org/r/18223/#review16465
Attachment #8656636 - Flags: review?(mdoglio) → review+
Comment on attachment 8656636 [details] MozReview Request: mozreview: Add testing environment startup script for MozReview (bug 1200260) r?mdoglio,smacleod,mcote,gps mozreview: Add testing environment startup script for MozReview (bug 1200260) r?mdoglio,smacleod,mcote,gps This adds a test environment startup script for local MozReview testing. It starts the mozreview servers, creates a default user, some bugs and a local repository that can be used to push reviews.
Comment on attachment 8656636 [details] MozReview Request: mozreview: Add testing environment startup script for MozReview (bug 1200260) r?mdoglio,smacleod,mcote,gps https://reviewboard.mozilla.org/r/18223/#review16713
Attachment #8656636 - Flags: review?(mcote) → review+
Comment on attachment 8656636 [details] MozReview Request: mozreview: Add testing environment startup script for MozReview (bug 1200260) r?mdoglio,smacleod,mcote,gps https://reviewboard.mozilla.org/r/18223/#review17039 ::: start-local-mozreview:27 (Diff revision 2) > +./mozreview create-user default@example.com password 'Default User' \ > + --uid 2000 --scm-level 1 --bugzilla-group editbugs It would be great to toss in a user of each level (maybe with names / usernames based on their level?) that way we can start with users that can meaningfully tests some of our level based features.
Attachment #8656636 - Flags: review?(smacleod) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: