Commit graph

335 commits

Author SHA1 Message Date
Christine Spang e71fb04bd8 feat(specs): Add support for generating JUnit XML by passing --junit-xml=<path>
Summary:
A prerequesite to integrating with `arc unit` or CI for each patchset is
being able to generate JUnit XML output for spec runs. This commit adds
this feature using the JUnitXMLReporter from jasmine-reporters. Invoke it like
this:

    npm run test-junit

(We output to the terminal as well when this is run, so in the case that
you're doing `arc diff` you have some idea of what is going on.)

Test Plan: run it

Reviewers: halla, juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D3891
2017-02-13 12:05:52 -08:00
Evan Morikawa e92b668a1e bump(version): 1.0.26 2017-02-10 18:41:20 -05:00
Juan Tejada ad88dc3fe8 bump(react) 15.4.2 2017-02-10 12:17:34 -08:00
Juan Tejada 31dc6d67cf bump(version) 1.0.25 2017-02-09 23:54:20 -08:00
Juan Tejada c3d2d0563f fix(specs) lock enzyme version 2017-02-09 15:45:22 -08:00
Juan Tejada 36f18c273d bump(version) 1.0.24 2017-02-09 10:30:17 -08:00
Juan Tejada 767edd7b6e bump(version) 1.0.23 2017-02-08 18:43:53 -08:00
Juan Tejada cce2b8231b bump(version) 1.0.22 2017-02-07 09:01:06 -08:00
Juan Tejada 018d1e895c bump(version) 1.0.21 2017-02-02 17:33:45 -08:00
Evan Morikawa d2580b691b bump(package): upgrade Raven
fix(log): use new raven
2017-02-02 17:22:04 -08:00
Evan Morikawa e4ce1f8e1e bump(version): 1.0.20 2017-02-01 06:58:37 -08:00
Evan Morikawa 2a543ac8de bump(version): 1.0.19 2017-01-31 18:01:30 -08:00
Evan Morikawa 9bc87c1ba1 bump(electron): bump electron to 1.4.15 2017-01-30 15:55:13 -08:00
Evan Morikawa 96152f9449 bump(version): 1.0.18 2017-01-30 15:23:57 -08:00
Michael Grinich 8bd013e9e9 Update docs config
- Don't ignore built class docs
- pin requirement versions for docs
- update docs build instructions
- update repo URL
2017-01-30 13:05:36 -08:00
Evan Morikawa bf0aa51148 fix(rename): update nylas/N1 to nylas/nylas-mail Github references 2017-01-30 11:50:39 -08:00
Michael Grinich 05da3a6c0d Update documentation with GitBook 2017-01-30 02:38:37 -08:00
Juan Tejada f6b4cfdacb bump(version) 1.0.17 2017-01-27 12:51:49 -08:00
Evan Morikawa dfc09254e6 bump(version): 1.0.16 2017-01-27 10:11:27 -05:00
Juan Tejada 5a67198226 bump(version) 1.0.15 2017-01-25 16:47:04 -08:00
Evan Morikawa 14514a3413 fix(specs): change spec scheduler back to setTimeout
Summary:
Adds a new `npm run test-window` that will launch specs in a window so you
can use the debugger

The spec window wouldn't close because `onbeforeunload` was unnecessarily
preventing close. This circumvents this in spec mode.

Most significantly I discovered we can't use the synchronous timer for the
promise scheduler anymore. Suppose you do:

```
it('should error', async () => {
  try {
    await doSomething()
    throw new Error("doSomething should have thrown!")
  } catch (err) {
    expect(err.message).toMatch(/my message/)
  }
})
```

The way async/await is transpiled, when `doSomething` throws, the error
will propagate all the way back up to the uncaughtPromiseException handler
before the `catch` gets called and registered. The transpilation method
assumes that when the function gets executed it can synchrously advance
beyond the call before the `then` or `catch` resolve. When the promise
scheduler is synchronous this doesn't happen.

I chose to use `setTimeout` instead of `process.nextTick` or
`setImmediate` as the promise scheduler. `setTimeout` seems to work better
with Chrome's async function call stacks. `nextTick` and `setImmediate`,
being Node methods, skip Chrome's async watchers.

Test Plan:
I talked with Juan about these changes, in an upcoming diff he will be
testing these in the context of our broader test suite.

Reviewers: mark, khamidou, halla, spang, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3779
2017-01-25 17:43:11 -05:00
Juan Tejada be99845d41 bump(version) 1.0.14 2017-01-25 12:28:47 -08:00
Evan Morikawa 77bc501eb7 bump(spellcheck) upgrade to 1.0.0
Summary: This bumps the spellcheck and restores the specs

Test Plan:
Manually open a composer, type some text and ensure it underlines them as
misspelled. Also restore test coverage

Reviewers: mark, halla, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3776
2017-01-25 15:26:38 -05:00
Evan Morikawa 313bd18913 bump(version): 1.0.13 2017-01-25 10:20:52 -05:00
Juan Tejada 5ed1f4da9e 🎨 Fix to using imap-provider-settings package
Summary: see title

Test Plan: manual

Reviewers: spang, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3772
2017-01-24 16:25:03 -08:00
Evan Morikawa 2e7e8c2d01 fix(build): add output log interval to prevent travis from dying 2017-01-24 14:27:32 -05:00
Evan Morikawa 677b56f714 feat(build) add npm run local-ci 2017-01-24 14:09:17 -05:00
Evan Morikawa d96672ab57 bump(version): 1.0.12 2017-01-24 12:23:25 -05:00
Evan Morikawa 5fe0650058 bump(version): 1.0.11 2017-01-20 13:55:57 -08:00
Halla Moore 0bd7ecd740 bump(version) 2017-01-19 11:39:50 -08:00
Evan Morikawa fc3e891fe9 bump(version): 1.0.9 2017-01-17 16:33:16 -08:00
Evan Morikawa 0b700c424c bump(version): 1.0.8 2017-01-16 20:21:39 -08:00
Evan Morikawa 964cb3bd86 bump(version): 1.0.7 2017-01-16 18:36:16 -08:00
Evan Morikawa 238c986c46 bump(version): 1.0.6 2017-01-16 10:48:05 -08:00
Evan Morikawa d4e2f71f15 bump(version): 1.0.5 2017-01-15 17:53:47 -08:00
Evan Morikawa 0be3b91ff4 bump(version): 1.0.4 2017-01-15 15:23:27 -08:00
Evan Morikawa cd25918955 bump(version): 1.0.3 2017-01-14 17:51:39 -08:00
Evan Morikawa e5e01e2834 bump(version): 1.0.2 2017-01-13 19:31:43 -08:00
Evan Morikawa 3f15112b8d bump(version): 1.0.1 2017-01-13 19:03:22 -08:00
Karim Hamidou 4fd976167a Bump to version 1.0 2017-01-13 13:28:39 -08:00
Evan Morikawa 61f7a62c5a bump(version): 0.5.11 2017-01-13 12:20:07 -08:00
Evan Morikawa e7ac46d5b4 bump(version): 0.5.10 2017-01-12 12:09:53 -08:00
Jackie Luo 78a7388318 🎨(rename): Update Nylas N1 to Nylas Mail
Test Plan: Tested locally.

Reviewers: halla, juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D3645
2017-01-12 12:05:44 -08:00
Evan Morikawa 71c00776ff bump(version): 0.5.9 2017-01-10 18:25:30 -08:00
Juan Tejada d15272c3dc bump(version) 0.5.8 2017-01-10 15:31:05 -08:00
Juan Tejada ce9057cc8c bump(version) 0.5.7 2017-01-10 14:51:09 -08:00
Juan Tejada e6b4cd135a bump(electron) 2017-01-10 14:16:11 -08:00
Evan Morikawa 0c8c37d18d bump(version): 0.5.6 2017-01-10 12:15:22 -08:00
Evan Morikawa 0bcda05832 bump(version): 0.5.5 2017-01-09 15:20:40 -08:00
Juan Tejada aadb1182c0 [local-sync] Make the sync loop interruptible
Summary:
This commit introduces interruptible sync operations. Now, the `SyncWorker`, `FetchFolderList` operation and `FetchMessagesInFolder` operation can be interrupted at several p

To achieve this, this commit adds an Interruptible abstraction, which is an object that can run functions and interrupt them at points marked by the function. For more info o

This commit also splits up the SyncWorker a little bit to make it smaller, byadding a SyncbackTaskWorker.

Test Plan: manual

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3613
2017-01-09 14:42:57 -08:00