Commit Graph

45 Commits

Author SHA1 Message Date
Ash Wilson
e88e06e572
Whitespace I guess 2019-03-13 15:19:07 -04:00
Ash Wilson
2ced6c8d63
Symlink or copy packages from the user's real ATOM_HOME 2019-03-13 15:18:58 -04:00
Rafael Oleza
7876e04e97 Override global jasmine spec functions
Currently, if a spec uses the global `it` function on an async test,
that test will always pass (since the jasmine version checked in Atom
does not natively support tests that return promises). This can be
confusing since the test behaviour is different between the
async-test-helpers methods and the global ones.

By overriding the global functions, we'll also be able to remove all the
imports from async-test-helpers since they won't be needed anymore.

More info: https://github.com/atom/atom/pull/18896#discussion_r260396102
2019-02-28 15:15:08 +01:00
Ash Wilson
13a6d43e61
Remove stdout noise 2019-02-15 16:10:21 -05:00
Ash Wilson
d99f2e6e79
Subclass the Jasmine JUnit reporter to touch up the spec descriptions 2019-02-06 21:11:34 -05:00
Ash Wilson
97df72a3c1
Configure JUnit reporter to treat TEST_JUNIT_XML_PATH as a single file 2019-02-06 15:56:28 -05:00
Ash Wilson
3b2f4bebcf
Write to stdout instead of stderr 2019-02-06 11:06:53 -05:00
Ash Wilson
702d5941bb
Merge branch 'master' of github.com:atom/atom into aw/jasmine-junit-xml 2019-02-06 10:14:32 -05:00
Ash Wilson
5945eca148
Configure JUnit noisily 2019-02-05 21:31:19 -05:00
Ash Wilson
8e6d8334cb
Use a temporary directory for ATOM_HOME in tests 2019-02-05 13:35:09 -05:00
Ash Wilson
f8fa5d61eb
Use ATOM_JASMINE_REPORTER to control terminal reporter 2019-02-05 10:13:49 -05:00
Ash Wilson
ed8658f54b
Use a custom Jasmine reporter to actually show spec names 2019-02-04 17:05:03 -05:00
Ash Wilson
e90441303d
🔥 console.logs 2017-08-02 19:34:44 -04:00
Ash Wilson
2574ca5736
More diagnostics 2017-08-01 11:27:15 -04:00
Ash Wilson
db2b196404
Diagnostics for AppVeyor 2017-08-01 11:27:15 -04:00
Ash Wilson
a7105980a3
If TEST_JUNIT_XML_PATH is set, output JUnit XML format test results 2017-08-01 11:27:14 -04:00
Indrek Ardel
55f3311c01 Remove unused variables 2016-09-26 20:52:13 +03:00
Antonio Scandurra
147fed3123
Revert "Remove this commit if it works on travis"
This reverts commit 303bb8c74e.
2016-04-14 15:46:50 +02:00
Antonio Scandurra
303bb8c74e
Remove this commit if it works on travis 2016-04-14 11:24:59 +02:00
Antonio Scandurra
4adf23a595
Unconditionally report deprecations on every test environment 2016-04-14 11:24:01 +02:00
Wliu
3f471cd94f Merge remote-tracking branch 'refs/remotes/origin/master' into wl-electron-35 2016-01-25 16:33:50 -05:00
case
8c5c795b35 Remove Duplicate Require Statements and Unify Syntax on ' 2016-01-15 14:35:28 -06:00
Cheng Zhao
c186d70bec Also use require('electron') in specs 2015-12-11 10:03:20 +08:00
Wliu
fec1507ff4 Require ipc-renderer where it belongs 2015-11-18 21:10:40 -05:00
Wliu
6cd480b37e Fix Electron deprecations 2015-11-17 21:16:09 -05:00
Antonio Scandurra
c38cd48555 Bring back failure reports when running grunt run-specs
Log output to stderr as we did before, so that grunt can, in turn, output it to
console when specs fail.

Welcome back build failures! 🎉

/cc: @nathansobo @maxbrunsfeld
2015-10-15 09:56:13 +02:00
Nathan Sobo
dc44d11a2c Don’t load/save config if enablePersistence option is false 2015-10-14 20:05:06 -06:00
Antonio Scandurra
b25d3e944b Parameterize configDirPath and move config.load in ctor 2015-10-14 12:41:36 +02:00
Antonio Scandurra
d9af8686ed 🔥 Avoid attaching CommandRegistry to window twice 2015-10-14 10:29:56 +02:00
Nathan Sobo
903ecca1f7 Parameterize document on AtomEnvironment 2015-10-13 19:48:56 -06:00
Nathan Sobo
65ae175e72 Pass explicit window global into AtomEnvironment on construction 2015-10-13 19:35:51 -06:00
Nathan Sobo
84aa8471b4 Pass AppDelegate to Workspace, Pane instead of bound functions
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 18:54:48 -06:00
Nathan Sobo
e92cb86335 Introduce ApplicationDelegate to AtomEnvironment
All external actions are performed via this delegate for test-isolation
purposes.
2015-10-13 15:42:57 -06:00
Antonio Scandurra
cf5d94f084 Return a promise in test runners 2015-10-13 09:02:37 +02:00
Nathan Sobo
69e8b0cfb1 Prevent title change during specs 2015-10-12 15:19:55 -06:00
Max Brunsfeld
778023c78b Make factory for StylesElements on atom.styles 2015-10-09 13:46:32 -07:00
Max Brunsfeld
5c545c0898 Don't register CommandRegistry's window listeners in AtomEnvironment constructor 2015-10-08 17:34:41 -07:00
Antonio Scandurra
2532a9cd59 Don't use atom globals in StylesElement 2015-10-07 15:25:02 -05:00
Nathan Sobo
dcb1d8296f Pass buildAtomEnvironment function to test runner
Don’t build an AtomEnvironment or assign it to the atom global until
this function is called by the runner.
2015-10-07 15:25:00 -05:00
Nathan Sobo
57bae5745f Check deprecations on travis 2015-10-07 15:24:54 -05:00
Nathan Sobo
ee270db7ac Move document mutation to startEditorWindow 2015-10-07 15:24:53 -05:00
Nathan Sobo
b32d49fab1 Allow running of individual test paths in legacy jasmine runner 2015-10-07 15:24:51 -05:00
Nathan Sobo
7a77ffde43 Log to stdout from terminal runner via ipc
For some reason, logging to stderr/stdout from the render process only
works when Atom is run via child_process.spawn, which is how `apm test`
invokes it.

I’m trying to make a convenient interface for running tests directly via
the `atom` command, and this is the only way I could find to long to
stdout from the render process.

I’m also choosing stdout rather than stderr because in this case, you’re
intentionally running the tests and want to see feedback.
2015-10-07 15:24:50 -05:00
Nathan Sobo
8e988e874e Rename exitWhenDone to headless 2015-10-07 15:24:50 -05:00
Nathan Sobo
2600115ebe Start moving toward a customizable test runner 2015-10-07 15:24:50 -05:00