Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: README.md

Issue 29342955: Issue 3985 - Unified test runner for sitescripts (Closed)
Patch Set: Measure test coverage of everything in sitescripts Created May 25, 2016, 3:37 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .hgignore ('k') | tox.ini » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Sitescripts 1 # Sitescripts
2 2
3 ## Introduction 3 ## Introduction
4 4
5 The sitescripts repository contains many of the server side Python scripts that 5 The sitescripts repository contains many of the server side Python scripts that
6 we use. There are both web handlers, which can be used via the multiplexer, and 6 we use. There are both web handlers, which can be used via the multiplexer, and
7 scripts that perform other tasks. 7 scripts that perform other tasks.
8 8
9 The scripts are often unrelated and as such will not all be documented here. For 9 The scripts are often unrelated and as such will not all be documented here. For
10 more information about the individual scripts you will need to look at their 10 more information about the individual scripts you will need to look at their
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 So, to test any of the URL handlers in development do the following: 74 So, to test any of the URL handlers in development do the following:
75 75
76 1. Create a sitescripts configuration file that lists the web modules that you 76 1. Create a sitescripts configuration file that lists the web modules that you
77 are testing under the `multiplexer` section. (Depending on the modules you are 77 are testing under the `multiplexer` section. (Depending on the modules you are
78 testing you may need to add additional configuration as well.) 78 testing you may need to add additional configuration as well.)
79 2. Save the configuration file somewhere where it will be found, for example 79 2. Save the configuration file somewhere where it will be found, for example
80 `~/.sitescripts`. 80 `~/.sitescripts`.
81 3. Type `python multiplexer.py`, it will start a web server at 81 3. Type `python multiplexer.py`, it will start a web server at
82 http://localhost:5000/ . This web server will use any URL handlers that have 82 http://localhost:5000/ . This web server will use any URL handlers that have
83 been defined in the modules you are testing to respond to requests. 83 been defined in the modules you are testing to respond to requests.
84
85
86 ## Testing
87
88 There are tests for some parts of the functionality of sitescripts. They are
89 located in `test` directories and can be run via
90 [Tox](https://tox.readthedocs.org/):
91
92 $ tox
OLDNEW
« no previous file with comments | « .hgignore ('k') | tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld