Commit Graph

69 Commits

Author SHA1 Message Date
Antonio Scandurra
df0b3dedd7 browser -> main-process 2016-05-25 11:02:29 +02:00
Antonio Scandurra
a1a609a357 Output renderer/main processes failure message 2016-05-24 11:08:12 +02:00
Antonio Scandurra
01e8601f7f 🎨 runCoreSpecs -> runRendererProcessSpecs 2016-05-24 10:01:51 +02:00
Antonio Scandurra
75d4919489 Restore concurrency on renderer specs 2016-05-24 10:01:12 +02:00
Antonio Scandurra
62d48c64ea Add --main-process flag to run specs in the main process
…so that we can write unit tests for code in the main process. Below a
list of conventions we'll be adopting:

1. Use mocha as the test framework.
2. Use chai as the assertion library.
3. Name specs `foo-bar.spec.js`, to prevent the renderer process from
running specs written fro the main process e.g. when calling
`atom --test spec`.
4. Write specs in ES6.

Although somewhat inconsistent with the conventions we use for renderer
process specs, this will hopefully be a first step towards migrating our
entire Jasmine 1.3 test suite to a more modern environment.
2016-05-24 08:23:27 +02:00
Antonio Scandurra
740e371e75 Put back multi-platform specs 2016-04-14 16:05:38 +02:00
Antonio Scandurra
61d8c6852c Remove non-Mac run-specs code and use ELECTRON_ENABLE_LOGGING=true
* Remove Windows/Linux run-specs code. There is little value in keeping those
  code paths, given that we don't run specs on those platforms; if we ever need
  it again, we can restore it from the git history.
* Use ELECTRON_ENABLE_LOGGING=true. This allows us to capture the output of
  calls to `console.warn` and `console.log`, which are useful to log out Grim
  deprecations.
* Remove `logDeprecations` in build/spec-task.coffee. This method used to format the output captured on stderr to strip out "[Console]" noise from deprecations.
  This code path was not running anymore because we started using stdio:
  'inherit' in #10838, which prevents stderr output to be captured. This doesn't
  seem a huge deal, so long as those deprecations get logged to screen.
2016-04-14 15:07:50 +02:00
Antonio Scandurra
4adf23a595 Unconditionally report deprecations on every test environment 2016-04-14 11:24:01 +02:00
Katrina Uychaco
cfab689de1 Merge pull request #10605 from atom/ku-crash-recovery
(WIP) Periodically save state and store in indexedDB
2016-02-16 11:58:04 -08:00
joshaber
a89257d474 Just inherit stdio if we're logging. 2016-02-16 10:16:21 -05:00
joshaber
5d9c5c51d3 We might wanna log the output. 2016-02-16 10:16:10 -05:00
Katrina Uychaco
c2ff75f94b Use user-data-dir with temp directory when running core tests
This is to ensure successful database connection. Since core specs and 
package specs are run at the same time and both open an indexedDB 
connection, there were occasional core spec failures due to failed
database connection.
2016-02-11 13:57:20 -08:00
Joe Fitzgerald
19334be188 Add Appveyor CI
- Add Appveyor badge
- Add Appveyor.yml definition, with encrypted ATOM_ACCESS_TOKEN
- Add cibuild.cmd script to launch cibuild on Windows
- Prepare to release Atom on Windows from Appveyor (but don't do it yet)
- Reduce dependence on JANKY in ci scripts + tasks
- Suppress release activities on PRs for Travis and Appveyor
- Cache ~/.atom/.apm, ~/.atom/.node-gyp/.atom, and ~/.atom/.npm on Appveyor
2015-11-10 15:37:01 -07:00
Antonio Scandurra
9ac4034135 🔥 Drop --spec-directory 2015-10-08 14:04:23 +02:00
Machiste Quintana
2cab325c44 🔥 Remove errant console.log 2015-06-30 12:20:22 -04:00
Machiste Quintana
a955ca0757 🐛 coreSpecFailed is not an array 2015-06-30 11:34:57 -04:00
Machiste Quintana
3d57c25608 Guard against null results 2015-06-30 11:09:26 -04:00
Machiste Quintana
348b2419b4 Check for failed packages first 2015-06-29 23:13:17 -04:00
Machiste Quintana
145f45afc2 Only try to print failures for the current specs task 2015-06-29 22:30:08 -04:00
Machiste Quintana
90fce1286a runSpecs -> specs 2015-06-29 21:28:51 -04:00
Machiste Quintana
2dbfe68e2d 🎨 Clearer var name and trigger CI build 2015-06-29 21:28:51 -04:00
Machiste Quintana
30cee5b61d WIP: Parallelize specs tasks 2015-06-29 21:28:51 -04:00
Kevin Sawicki
0c4e052247 Remove --include-deprecated-apis from apm test commands 2015-06-24 16:51:48 -04:00
Kevin Sawicki
40adc9fef6 Include deprecated APIs when running core specs 2015-06-02 16:36:20 -07:00
Kevin Sawicki
bf109b0e61 Remove --one flag 2015-06-02 16:36:20 -07:00
Kevin Sawicki
9fccb0dc42 Run core package specs in 1.0 API preview mode 2015-05-12 08:47:42 -07:00
Kevin Sawicki
ab3be66834 Remove --one flag from package spec command 2015-05-11 08:58:04 -07:00
Kevin Sawicki
80c24f240a Run package specs in API preview mode 2015-05-11 08:44:04 -07:00
Antonio Scandurra
b2ac9be211 Use concurrency variable only to configure async/parallel stuff 2015-04-21 16:15:04 +02:00
Antonio Scandurra
b2d7a203e7 Run specs in series when concurrency is 1
We need to run specs in series on the Travis Build, because workers have less
than 2 cores: trying to parallelize jobs on such machines increases
context-switching, thus making specs slower and, as a result, flakier.
2015-04-21 15:23:49 +02:00
Antonio Scandurra
50010a55b9 Use a guard clause to disable integration specs 2015-04-16 09:52:41 +02:00
Antonio Scandurra
b984a48456 Don't run integration tests on Travis 2015-04-16 09:13:14 +02:00
Antonio Scandurra
458cd0bf2f Revert "Avoid specs to trip up on each other"
This reverts commit 756ce8cea6.
2015-04-11 15:05:49 +02:00
Antonio Scandurra
756ce8cea6 Avoid specs to trip up on each other
...because of possible race conditions.
2015-04-11 12:13:37 +02:00
Antonio Scandurra
9a269178cd Merge branch 'master' into as-public-ci 2015-04-10 17:56:22 +02:00
Antonio Scandurra
f790cda5ca Run CI tests verbosely 2015-04-10 12:01:44 +02:00
Antonio Scandurra
01504cfde5 Use Math.max instead of Math.min 2015-04-10 10:20:02 +02:00
Antonio Scandurra
43a807c630 Fix cibuild returning 0 as status code 2015-04-10 10:17:17 +02:00
Antonio Scandurra
859a6dcf68 Use script/cibuild 2015-04-07 10:48:18 +02:00
Machiste Quintana
2bb2022b5b 👕 2015-04-07 00:05:19 -04:00
Kevin Sawicki
a372c892f0 Set chromedriver path in integration spec helper 2015-02-12 15:04:33 -08:00
Max Brunsfeld
79d0f296e0 Use path.delimiter 2015-02-09 13:40:07 -08:00
Max Brunsfeld
61ca2e14dc Run integration tests on CI 2015-02-05 13:02:25 -08:00
Kevin Sawicki
29f95b88db deprecatedStart is an index 2015-01-09 18:40:57 -08:00
Kevin Sawicki
bd92acba7e Simply deprecation output 2014-12-23 16:58:59 -08:00
Kevin Sawicki
f439d0d996 Tweak log prefix text 2014-12-23 16:38:11 -08:00
Kevin Sawicki
c345532864 stdout -> stderr 2014-12-12 14:57:31 -08:00
Kevin Sawicki
c0c4e65b5d Warnings to do stderr 2014-12-12 14:54:48 -08:00
Kevin Sawicki
b441b3cd6f Remove prefix and suffix from deprecation lines 2014-12-12 14:01:33 -08:00
Kevin Sawicki
3a51228899 Label output 2014-12-12 13:53:52 -08:00