Archived
1
0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/static/js/test/run_tests.py
Dan Helfman 61c6ab3fb0 Beginning stubs for client-side javascript "unit" tests. (Probably more like
functional tests, unless a whole lot of mock objects are introduced, which
isn't entirely out of the question). Uses JsUnit, which is included in this
commit.
2007-09-06 10:25:06 +00:00

22 lines
440 B
Python
Executable File

#!/usr/bin/python
import subprocess
import os.path
browsers = [
"firefox",
"ie6",
]
def main():
test_page = "http://localhost:8081/static/js/test/Test_Luminotes.html"
test_runner = "http://localhost:8081/static/jsunit/testRunner.html?testpage=%s&autorun=true" % test_page
# launch tests in each supported browser
for browser in browsers:
subprocess.call( [ browser, test_runner ] )
if __name__ == "__main__":
main()