In T334642: Investigate switching Javascript unit tests from QUnit to Jest [12hrs], we decided to keep our one existing QUnit test. This means that PageTriage developers will probably want to get QUnit working on their localhost machines.
- Get QUnit working for @Novem_Linguae's localhost.
- No Docker
- Using run command export MW_SERVER=http://localhost/Code/MediaWiki; export MW_SCRIPT_PATH=/core; npm run qunit --qunit-component=PageTriage.
- Error message is ERROR [launcher]: Cannot start ChromeHeadless. [headless_shell.cc(255)] Multiple targets are not supported.
- Using run command export MW_SERVER=http://localhost/Code/MediaWiki; export MW_SCRIPT_PATH=/core; export DISPLAY=1; export ZUUL_PROJECT=1; npm run qunit
- No error message, but it says 0 tests completed
- Get QUnit working for @jsn.sherman's localhost (fresh-node worked without the -env arg).
- Docker
- Using run command MW_SCRIPT_PATH=/w MW_SERVER=http://localhost:8080 npm run qunit -- --qunit-component=PageTriage.
- Error message is 60 second timeout.
- Update documentation at https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing#Run to be more helpful for these errors.
Adding test engineer @zeljkofilipin in case they have any ideas.