2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 18:48:55 +00:00
Commit Graph

28 Commits

Author SHA1 Message Date
Jia Hao Goh
20fc09799b Remove Windows tests
We don't want to install wine on travis, as it slows down the whole CI
process.

We also shouldn't be testing if we can build the electron app,
and instead our unit tests should test that we pass the correct
parameters to electron packager.

TODO ^
2017-04-30 00:41:15 +08:00
Jia Hao Goh
8f78dd03af Update eslint and use Airbnb style
- Add `npm run lint:fix` command
- Cleanup inferIcon.js logic slightly
2017-04-29 22:52:12 +08:00
Darren Haken
461c7a38f0 Change Mocha to not need a babel build to run (#349)
* Change Mocha to not need a babel build to run

- Also add tests around normalizeUrl

* PR 359 Apply changes due to comments

- Remove babelrc as its in the package.json
- Change tdd npm task to use gulp
- Remove source map support file from import list for normalizeUrlSpec
- Change gulp tdd task to run mocha on first run
 359 Apply changes due to comments

 - Remove babelrc as its in the package.json
 - Change tdd npm task to use gulp
 - Remove source map support file from import list for normalizeUrlSpec
 - Change gulp tdd task to run mocha on first run
 359 Apply changes due to comments

 - Remove babelrc as its in the package.json
 - Change tdd npm task to use gulp
 - Remove source map support file from import list for normalizeUrlSpec
 - Change gulp tdd task to run mocha on first run
2017-04-25 16:04:57 +01:00
Ronan Jouchet
be4b9a7436 Fix #327 - Update dependencies (except eslint), default to Electron 1.6.6 (#341) 2017-04-18 17:30:54 -04:00
Goh Jia Hao
f9bf66caa5 Increase timeout for test
It takes some time for electron-packager to download electron
2016-05-26 17:12:23 +08:00
Jia Hao
26cfb1a86f Add test for connection error 2016-03-25 20:10:56 +08:00
Jia Hao
d2ed86e62c Add test for infer user agent 2016-03-25 19:29:33 +08:00
Jia Hao
34a5a52a28 Rename 'pngToIcns to convertToIcns' 2016-03-10 15:50:45 +08:00
Jia Hao
c8e650d061 Increase timeout for test case 2016-01-29 14:46:31 +08:00
Jia Hao
ce8e762ac9 Put files in separate directories 2016-01-29 14:09:36 +08:00
Jia Hao
bf2d5a2929 Cleanup 2016-01-29 13:39:31 +08:00
Jia Hao
a9c294b4b6 Fix wrong parameter for test options 2016-01-29 13:34:53 +08:00
Jia Hao
51acbaaa9c Cleanup options.js, rename --app-name to --name 2016-01-29 11:37:54 +08:00
Jia Hao
c852dc088f Use longer timeout for tests 2016-01-28 23:58:25 +08:00
Jia Hao
30fd51fc85 Fix test for non darwin platforms 2016-01-28 23:10:15 +08:00
Jia Hao
d6f6bfdfbf Cleanup and skip png conversion test if not OSX 2016-01-28 22:43:43 +08:00
Jia Hao
e0bee65cfc Fix problem with async each and creation of temporary directories 2016-01-28 22:39:13 +08:00
Jia Hao
1174cbc28c Cleanup 2016-01-28 11:47:40 +08:00
Jia Hao
5475c6e968 Add build step to infer and convert pngs to icns 2016-01-28 10:00:28 +08:00
Jia Hao
d38912ab36 Disable test for app name check after sanitizing app name on linux 2016-01-27 10:24:24 +08:00
Jia Hao
dbd660b78f Add script to convert png to icns on osx 2016-01-27 10:22:22 +08:00
Jia Hao
68a5f46798 Make main test try multiple platforms 2016-01-25 01:31:11 +08:00
Jia Hao
0fece8dfb7 Add globals for mocha linting and fix code style errors 2016-01-25 01:14:25 +08:00
Jia Hao
cb07b13cad Add mocha basic test to check if nativefier.json is set properly 2016-01-25 01:10:28 +08:00
Jia Hao
5379740dda Initial commit for working module only with api change 2016-01-18 21:45:18 +08:00
Kenneth G. Franqueiro
a360f6c2ee Add more comprehensive tests
This implements the following cases:

* Basic runs for a specific version/platform/arch with default options
  (testing for existence of expected output files/folders)
* Runs for each target platform with `out` set
* Runs for each target platform with `asar` set
* Runs for each target platform with `prune` set
* Runs for each target platform with `ignore` set
  * This includes testing `ignore` including a path separator
  * This also includes testing that `ignore` entries are applied
    with the app folder trimmed
* Runs for each target platform with `overwrite` set / not set
* Runs with `all` set, with `arch` or `platform` each set to `all`,
  and with `platform` set to multiple platforms (comma-delimited or
  array)
* Tests specifically for the darwin target platform, to test
  `icon` and `sign`

The test logic is organized such that the version of Electron being
tested can be configured once centrally (in config.json), and the tests
will not run until after downloading any necessary electron versions
(to avoid timing out due to long downloads).

Resolves #77.
2015-06-28 16:57:59 -04:00
Max Ogden
2d128d8e99 fix testapp 2015-06-27 20:07:33 -05:00
Max Ogden
86edff69d8 add basic tests, remove unused folder, make linux out dir behave like other OSes 2015-06-27 19:48:35 -05:00