Changeset 6c8631 in indico
- Timestamp:
- 06/18/10 18:55:08 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- b05fd7
- Parents:
- 49cad7
- git-author:
- Jeremy Nguyen Xuan <jeremy.nguyen.xuan@…> (01/06/10 12:08:49)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (06/18/10 18:55:08)
- File:
-
- 1 edited
-
indicop/__init__.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indicop/__init__.py
r49cad7 r6c8631 53 53 54 54 if result: 55 return " AllUnit tests succeeded\n"55 return "PY Unit tests succeeded\n" 56 56 else: 57 57 return "[FAIL] Unit tests - report in indicop/report/unitTest.txt\n" … … 97 97 report = "" 98 98 if result: 99 report = " AllFunctional tests succeeded\n"99 report = "PY Functional tests succeeded\n" 100 100 else: 101 101 report = "[FAIL] Functional tests - report in indicop/report/functionalTest.txt\n" … … 114 114 else: 115 115 self.writeReport("pylint", statusOutput[1]) 116 return "P ylint - report in indicop/report/pylint.txt\n"116 return "PY Lint - report in indicop/report/pylint.txt\n" 117 117 118 118 … … 129 129 #check if server is ready 130 130 for i in range(5): 131 jsDryRun = commands.getstatusoutput("java -jar JsTestDriver-1.2.jar --config jsTestDriverNoCoverage.conf --tests Fake.dryRun") 131 if coverage: 132 jsDryRun = commands.getstatusoutput("java -jar JsTestDriver-1.2.jar --tests Fake.dryRun --testOutput coverage") 133 else: 134 jsDryRun = commands.getstatusoutput("java -jar JsTestDriver-1.2.jar --config jsTestDriverNoCoverage.conf --tests Fake.dryRun") 132 135 if jsDryRun[1].startswith("No browsers were captured, nothing to run..."): 133 136 print "Js-test-driver server has not started yet. Attempt #%s" % (i+1) … … 136 139 #server is ready 137 140 break 138 141 else: 142 print '[ERR] Could not start js unit tests because js-test-driver server cannot be started.' 143 sys.exit(1) 144 139 145 #setting tests to run 140 146 toTest = "" … … 152 158 153 159 #generate html for coverage 154 commands.getstatusoutput("genhtml jsTestDriver.conf-coverage.dat") 155 156 coverageReport = "JS Unit Tests - coverage generated in indicop/javascript_tests/coverage/index.html\n" 160 genOutput = commands.getstatusoutput("genhtml jsTestDriver.conf-coverage.dat") 161 162 if genOutput[1].find("genhtml") > -1: 163 coverageReport = "[ERR] JS Unit Tests - html coverage generation failed, genhtml needs to be in your PATH.\n" 164 else: 165 coverageReport = "JS Unit Tests - coverage generated in indicop/javascript_tests/coverage/index.html\n" 166 157 167 else: 158 168 jsTest = commands.getstatusoutput("java -jar JsTestDriver-1.2.jar --config jsTestDriverNoCoverage.conf --tests %s --testOutput coverage" % toTest) … … 210 220 211 221 def main(self, specify, coverage, unitTest, functionalTest, pylint, jsunit, jslint, jsCoverage, jsSpecify): 212 returnString=" =============== ~INDICOP SAYS~ ===============\n\n"222 returnString="\n\n=============== ~INDICOP SAYS~ ===============\n\n" 213 223 214 224 if coverage: … … 247 257 os.mkdir('indicop/coverage/html_report') 248 258 figleaf.annotate_html.report_as_html(coverageOutput, 'indicop/coverage/html_report', [], {}) 249 returnString += " Unit Test - Report generated in indicop/coverage/html_report/index.html\n"259 returnString += "PY Unit Test - Report generated in indicop/coverage/html_report/index.html\n" 250 260 251 261
Note: See TracChangeset
for help on using the changeset viewer.
