Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Make core and render tests pass on Windows - #13305

Merged
damieng merged 21 commits into
masterfrom
dg-windows-tests-pass
Nov 30, 2016
Merged

damieng merged 21 commits into
masterfrom
dg-windows-tests-pass

Conversation

@damieng

@damieng damieng commented Nov 22, 2016

Copy link
Copy Markdown
Contributor

Fixes #11543 and makes Windows a safer place to do dev work happy in the knowledge you can actually run the tests and (probably) didn't break anything.

  • Many tests were fixed (normally paths)
  • A few tests were bypassed (screen co-ordinates, portable, smoke)
  • Some functionality was fixed (internal theme id mangling)
  • Chromedriver is now downloaded and used on Windows & Linux
  • Windows now runs main and ui tests

Life after this

c:\atom> script\test
Executing core render process tests

...................................................------......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished in 108.754 seconds
2009 tests, 7657 assertions, 0 failures, 6 skipped


Executing core main process tests

  AtomApplication
    launch
      √ can open to a specific line number of a file (1548ms)
      √ can open to a specific line and column of a file (1533ms)
      √ removes all trailing whitespace and colons from the specified path (1545ms)
      √ positions new windows at an offset distance from the previous window (2337ms)
      √ reuses existing windows when opening paths, but not directories (2752ms)
      √ adds folders to existing windows when the --add option is used (1752ms)
      √ persists window state based on the project directories (2492ms)
      √ shows all directories in the tree view when multiple directory paths are passed to Atom (2180ms)
      √ reuses windows with no project paths to open directories (1646ms)
      √ opens a new window with a single untitled buffer when launched with no path, even if windows already exist (3022ms)
      √ does not open an empty editor when opened with no path if the core.openEmptyEditorOnStart config setting is false (2137ms)
      √ opens an empty text editor and loads its parent directory in the tree-view when launched with a new file path (1587ms)
      √ adds a remote directory to the project when launched with a remote directory (2942ms)
      √ reopens any previously opened windows when launched with no path (3612ms)
      √ does not reopen any previously opened windows when launched with no path and `core.restorePreviousWindowsOnStart` is false (3997ms)
      when closing the last window
        √ quits the application (1607ms)
    before quitting
      √ waits until all the windows have saved their state and then quits (2757ms)

  FileRecoveryService
    √ doesn't create a recovery file when the file that's being saved doesn't exist yet
    when no crash happens during a save
      √ creates a recovery file and deletes it after saving (1023ms)
      √ creates only one recovery file when many windows attempt to save the same file, deleting it when the last one finishes saving it
    when a crash happens during a save
      √ restores the created recovery file and deletes it
      √ restores the created recovery file when many windows attempt to save the same file and one of them crashes
      √ emits a warning when a file can't be recovered


  23 passing (43s)

image

@damieng damieng added the windows Issues that occur on Windows but not on other platforms. label Nov 22, 2016
@damieng
damieng force-pushed the dg-windows-tests-pass branch 2 times, most recently from 39a9c53 to 9595911 Compare November 30, 2016 19:11
…n TextEditor specs - possible resource limitation.
@damieng
damieng merged commit b4c67cb into master Nov 30, 2016
@damieng
damieng deleted the dg-windows-tests-pass branch November 30, 2016 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

windows Issues that occur on Windows but not on other platforms.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apm tests fail on latest commit 9ff5fb2

1 participant