Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run all tests in CI server(s) #15

Closed
guillermooo opened this issue Nov 18, 2015 · 6 comments
Closed

run all tests in CI server(s) #15

guillermooo opened this issue Nov 18, 2015 · 6 comments
Labels

Comments

@guillermooo
Copy link
Member

The idea is to do this in the CI server(s):

  • install code
  • install vim ext
  • start vs code
  • run tests in vs code
  • redirect test output to file
  • read output from file and determine success/failure
@jpoon
Copy link
Member

jpoon commented Nov 18, 2015

Re: microsoft/vscode#118

@guillermooo
Copy link
Member Author

I think that being able to redirect the tests output to a file would be enough; no need to mock out the whole VS Code API from the cli. If I got you right.

@jpoon
Copy link
Member

jpoon commented Nov 19, 2015

@guillermooo Tests execute in the VSCode context so it requires at least a window.

@guillermooo
Copy link
Member Author

@jpoon

GUIs run fine in Appveyor and you can get Travis to run GUIs too.

See: https://github.com/randy3k/UnitTesting/blob/master/sbin/travis.sh#L78

We test Sublime Text just fine in both CI services.

@jpoon
Copy link
Member

jpoon commented Nov 19, 2015

Sweet! Didn't know you can have windowed processes on Travis or Appveyor. Definitely would be a better solution to just running a subset of the tests as we are now. I think we are blocked on this until microsoft/vscode#118.

@jpoon
Copy link
Member

jpoon commented Dec 24, 2015

With Dec. update, possible to run tests with Travis CI (https://code.visualstudio.com/Docs/extensions/testing-extensions)

Caveats:

  • Does not work on Windows (e.g. AppVeyor)
  • activeTextEditor is null => any UI tests which insert/delete will fail :(

Investigative work in this branch: https://github.com/VSCodeVim/Vim/tree/run-all-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants