wiki.techinc.nl/.gitignore
Timo Tijhof e52b056322 selenium: Create local ./log directory if needed
Without this, the tests sometimes fail like this:

> Error: ENOENT: no such file or directory, open './log/should-be-creatable.png'
>   at screenshot() - saveScreenshot.js:52:17
>   at saveScreenshot("./log/should-be-creatable.png")

This seems to race with the junit plugin, which uses mkdirp to
create it if missing, but the screenshot handling is separate
from that. WebdriverIO's own screenshot handling also does this
so it makes sense for ours to do that, too.

I considered trying to re-use WebdriverIO's save mechanism,
directly but it's not publicly exposed and only used for the
crash scenario, so for now we'll have to keep our own.

Also:
* Add to gitignore.

* Update default to use __dirname instead of './' because the
  latter will somtimes be mediawiki/ and sometimes be selenium/
  depending on whether you run all tests or some tests.

* Remove trailing slash from default logPath, and instead add the
  slash in filePath.
  Reason:
  - The LOG_DIR used by Jenkins doesn't end in a slash either
    (currently not failing because we no longer use that job,
    and let quibble run the tests instead, which doesn't set
    the LOG_DIR).
  - The WDIO docs and example also use screenshotPath without
    trailing slash.
  - Without this, setting LOG_DIR=/tmp/something results in
    filenames like /tmp/somethingexample.png.

Bug: T193088
Change-Id: I6550f9315bae89f96a791f7ae8cc2fbec5ee8dd5
2018-05-09 14:30:55 +00:00

81 lines
1 KiB
Text

# Repository management
.svn
# git-deploy status file:
/.deploy
# Editors
*.kate-swp
*~
\#*#
.#*
.*.swp
.project
cscope.files
cscope.out
*.orig
## NetBeans
nbproject*
project.index
## Sublime
sublime-*
sftp-config.json
# MediaWiki install & usage
/cache
/docs/js
/images/[0-9a-f]
/images/archive
/images/cache
/images/deleted
/images/lockdir
/images/temp
/images/thumb
## Extension:EasyTimeline
/images/timeline
## Extension:Score
/images/lilypond
## Extension:TimedMediaHandler
/images/transcoded
/images/tmp
/maintenance/.mweval_history
/maintenance/.mwsql_history
/maintenance/dev/data
/AdminSettings.php
/LocalSettings.php
/StartProfiler.php
# Building & testing
npm-debug.log
node_modules/
/tests/phpunit/phpunit.phar
/tests/selenium/log
# Composer
/vendor
/composer.lock
/composer.local.json
/composer.phar
# MediaWiki UI documentation
/docs/kss/static
# Operating systems
## Mac OS X
.DS_Store
## Windows
Thumbs.db
# Misc
.buildpath
.classpath
.idea
.metadata*
.settings
/favicon.ico
/static*
/tags
/.htaccess
/.htpasswd
/tests/phan/issues
*.rej