Den 08-10-2012 21:05Gregory Szorc skrev:
We now have a tool in mozilla-central that has a much better UX for
running tests (mach). It's not perfect yet, but it's getting there
(please write patches!).
The build peers (or at least a few of us) really don't like the make
targets to run tests because they are awkward, both to maintain and for
people to use. mach and having Python drive everything offer compelling
advantages over simple make targets.
The make targets for running tests aren't used by buildbot (well, at
least a lot of them - there might be a straggler or two).
Putting this all together, the stage is set to remove the make targets
for running tests.
I'm writing this post to see what obstacles/resistance there are to
removing the make targets for running tests. Obviously a prerequisite is
having mach reach feature parity with the make targets. What other
concerns are there?
Before you deprecate the make targets, it would be nice if mach actually
works and there is documentation for it. I have so far not been able to
figure out how to run a test with mach. This is what I tried:
$ ./mach xpcshell-test
toolkit/mozapps/extensions/test/xpcshell/test_dictionary
.js
Traceback (most recent call last):
File "./mach", line 47, in <module>
sys.exit(mach.run(sys.argv[1:]))
File
"c:\Users\Jesper\Desktop\web\mozilla\build\mozilla-central\src\python/mac
h\mach\main.py", line 147, in run
return self._run(argv)
File
"c:\Users\Jesper\Desktop\web\mozilla\build\mozilla-central\src\python/mac
h\mach\main.py", line 206, in _run
result = fn(**stripped)
File
"c:\Users\Jesper\Desktop\web\mozilla\build\mozilla-central\src\python/moz
build\mach\commands\testing.py", line 89, in run_xpcshell_test
xpcshell.run_test(**params)
File
"c:\Users\Jesper\Desktop\web\mozilla\build\mozilla-central\src\python/moz
build\mozbuild\testing\xpcshell.py", line 49, in run_test
self._run_xpcshell_harness(**args)
File
"c:\Users\Jesper\Desktop\web\mozilla\build\mozilla-central\src\python/moz
build\mozbuild\testing\xpcshell.py", line 89, in _run_xpcshell_harness
xpcshell.runTests(**args)
File
"c:\Users\Jesper\Desktop\web\mozilla\build\mozilla-central\src\testing/xp
cshell\runxpcshelltests.py", line 736, in runTests
test["here"])
Exception: testsRootDir is not a parent path of
c:\Users\Jesper\Desktop\web\mozi
lla\build\mozilla-central\src\obj-i686-pc-mingw32\_tests\xpcshell\toolkit\mozapp
s\extensions\test\xpcshell
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform