Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Akshita Agarwal 64e0e22185 Unit test for the OmniSharp Manager 2018-06-05 10:42:15 +05:30
Akshita Agarwal 8146ece796 Unit test for the downloader 2018-06-01 14:18:08 +05:30
akshita31 6ed222b57b
Merge branch 'master' into clean_up_tests 2018-05-10 14:58:07 -07:00
Akshita Agarwal 958f32846d Clean up test 2018-05-09 17:42:52 -07:00
Dustin Campbell c69f7e8147 Fix test expectations 2018-05-03 13:22:13 -07:00
Akshita Agarwal 051b10c090 Nits 2018-04-30 17:37:21 -07:00
Akshita Agarwal 97fc317675 using version for default omnisharp 2018-04-30 17:17:38 -07:00
Dustin Campbell 3a0fc139f2 Fix test 2018-04-25 18:16:35 -07:00
Dustin Campbell 22fa49f070 Improve coverage a bit 2018-04-25 18:09:22 -07:00
Dustin Campbell b078c4a0bb Return both 'LaunchPath' and 'MonoLaunchPath' from OmniSharpManager 2018-04-25 15:18:49 -07:00
Dustin Campbell cd7f5d2903 Introduce OmniSharpLaunchInfo type 2018-04-25 11:58:07 -07:00
akshita31 c218dfaa8a
Divide the package manager into separate components (#2188)
* Feature tests running with refactored package manager

* Refactoring packages-1

* Test for the downloader running using the mock server

* Using network settings

* Changing the package path

* Dividing packages.ts into separate components

* use filter async

* Use tmpfile interface

* Check for the event stream

* Using FilePathResolver

* Remove using

* Testing for normal and fallback case working

* Resolve the paths

* Remove failing case

* package installer test-1

* Add package installer test

* Create tmp asset

* Package Downloader test refactored

* Rename files

* resolve compile issues

* Clean up installer

* Clean up the tests

* Rename packages

* Package installer test

* PR feedback

* Package Filter test

* Remove yauzl.d.ts

* Filter test

* Added test for invalid zip file

* method for getting the request options

* remove imports

* please resolve the path

* remove  latest in settings

* Package Manager test executing

* Use free port in package manager test

* Package Manager (using a https server running)

* using http mock server

* Downloader test running using free port
2018-04-24 14:29:51 -07:00
akshita31 b709e47288
Make the server and the downloader rely on the vscode adapter (#2167)
* Moving fakes to testAssets

* Change the import for fakes.ts

* Test Assets in feature tests

* Remove vscode dependency from server.ts

* Make the downloading stuff use vscode adapter

* Remove vscode as a property

* make test package json a field
2018-04-10 15:09:45 -07:00
akshita31 c65c4c59b8
Remove the status handling from the package manager (#2160)
* Changes to remove status from packages.ts

* Tests failing

* Added tests

* Used tooltip and changed flame color

* fix merge problems

* PR feedback

* Removed implicit any

* Changes
2018-04-09 14:50:12 -07:00
Piotr Puszkiewicz 1f3e77a04b
Enable `noImplicitAny` and `alwaysStrict` in `tsconfig.json (#2159)
Along the way, fixed a few bugs that were in place due to implicit anys. Also removed dependency on deprecated vscode API.
2018-04-07 01:33:28 -07:00
Piotr Puszkiewicz f5ab7b2852
CodeCov flags (#2125)
Lights up integration test coverage and splits reporting data between unit & integration tests
2018-03-21 13:06:46 -07:00
Ravi Chande 27aab37cf2 Refactor logger, reporter and channel into a unified EventStream using Rx Observable (#2084)
* Changes to refactor logging in server

* Adding packages

* Changes

* Remove reporter from CSharpExtDownloader

* remove telemtery reporter from server.ts

* remove reporter from definitionProvider

* Remove reporter from dotnetTest.ts

* Debugger Activation + Commands

* reduce message types

* remove reporter from commands.ts

* remove channel from  status.ts

* Remove reporter & logger from extension.ts

* Build issues

* Add missing rx dependency

* Changed to download progress

* Removed using and pass platformInfo

* Moved files in observer folder

* Renamed the files and added omnisharp channel observer

* Remove unnecessary format

* Changes in main.ts

* Remove channel from global declaration

* Preserving the context in onNext invocations

* Pulled platformInfo out of server

* Remove unnecessary variable

* Formatting

* Renamed observers

* Add mocha+wallaby tests

eventually the feature tests should be removed and most of our tests should become unit tests that are runnable from the command line or via wallaby.

npm run tdd will enable using mocha's command line tdd capability

* Code clean up

* Fix `tdd` command

* Fix test paths

* Add initial DotnetChannelObserver test

* Testing the download messages

* Remove logger from requestQueue.ts

* Fix builds

* Use package manager factory

* Remove Lines

* Remove extra appendLine

* Added test for csharp logger and channel

* Extracted base class for observers

* Test having dependency on vscode

* vscode adapter changes

* Changes for adapter

* Refactored Omnisharp Manager

* Moved from interfaces to classes

* Renamed onNext to post

* Created class EventStream

* Removed comment

* Added missing break

* Added test for Omnisharp Logger

* Test for OmnisharpLoggerObserver

* Test for telemetry reporter observer

* Added test for all the observers

* minor nits

* Changes

* Remove unnecessary imports

* remove import

* Modified failing test

* Make tests pass

* Renamed platformInfo

* CR feedback
2018-03-14 14:19:01 -07:00
Piotr Puszkiewicz 007bc0e985
Add product-wide code coverage + codecov.io integration (#2101)
Add product-wide code coverage + codecov.io integration

Several new scripts were added:

npm run cov:instrument: rebuilds your sources, then instruments them for coverage. Subsequent 

npm run test will generate coverage data into the .nyc_output directory

npm run cov:merge-html: merges all reports from .nyc_output and puts a locally viewable coverage report into coverage directory
2018-03-12 14:14:00 -07:00
Piotr Puszkiewicz 0879307352
Add mocha+wallaby tests (#2091)
* Add mocha+wallaby tests

eventually the feature tests should be removed and most of our tests should become unit tests that are runnable from the command line or via wallaby.

npm run tdd will enable using mocha's command line tdd capability

* Fix `tdd` command

* Fix test paths
2018-03-05 16:08:00 -08:00