Commit Graph

286 Commits

Author SHA1 Message Date
Leila Lali
80a847ff4f some bug fixes in pref tests 2016-11-11 10:07:55 -08:00
Leila Lali
18bf76caed If the test name file cannot be found just use the settings.json 2016-11-09 16:12:11 -08:00
Leila Lali
92420e734f copy the sql script file to the output folder 2016-11-09 12:19:14 -08:00
Mitchell Sternke
2319de41e0 Added basic stress tests for the service (#140) 2016-11-09 12:02:19 -08:00
Leila Lali
95a9c86dd3 added perf tests using test driver (#136)
* added perf tests using test driver
2016-11-08 14:37:43 -08:00
Benjamin Russell
3808dcdafd Adding TestDriver project and CodeCoverage folder to the main solution (#133)
This will make it much easier for Visual Studio users to validate the TestDriver project.

* Adding TestDriver project and CodeCoverage folder to the main solution

* Adding fallback value for service layer exe path to allow tests to run in Visual Studio
2016-11-07 15:08:53 -08:00
llali
3d8eefa685 Fixed a failed test 2016-11-07 13:19:28 -08:00
Karl Burtram
93dbe05a66 Add a few more autocomplete delimeter characters (#138)
Trival change to add a couple new delimeters..auto-merging.
2016-11-05 21:11:40 -07:00
Karl Burtram
54b5488ce2 Bump SMO to 140.1.11 (#137)
Version bump only
2016-11-05 16:56:37 -07:00
Karl Burtram
0e5abb4631 Add missing SrGen nuget package to repo (#135)
Merging since this is to fix a build break.
2016-11-05 16:36:00 -07:00
Mitchell Sternke
4a8810ca71 Re-add scrubbed file 2016-11-03 13:54:23 -07:00
Mitchell Sternke
6d3a18004d Removed file for scrubbing 2016-11-03 13:23:49 -07:00
Benjamin Russell
d5fbebc287 Progressive Results Part 1: Batch Completion Notification (#95)
The main feature of this pull request is a new callback that's added to the query class that is called when a batch has completed execution and retrieval of results. This callback will send an event to the extension with the batch summary information. After that, the extension can submit subset requests for the resultsets of the batch.
Other smaller changes in this pull request:
Refactor to assign a batch a id when its created instead of when returning the list of batch summaries
Passing the SelectionData around instead of extracting the values for it
Moving creation of BatchSummary into the Batch class
Retrieval of results is now permitted even if the entire query has not completed, as long as the batch requested has completed.
Also note, this does not break the protocol. It adds a new event that a queryRunner can listen to, but it doesn't require it to be listened to.

* Refactor to remove SectionData class in favor of BufferRange

* Adding callback for batch completion that will let the extension know that a batch has completed execution

* Refactoring to make progressive results work as per async query execution

* Allowing retrieval of batch results while query is in progress

* reverting global.json, whoops

* Adding a few missing comments, and fixing a couple code style bugs

* Using SelectionData everywhere again

* One more missing comment
2016-11-02 17:43:38 -07:00
Mitchell Sternke
d79842f24b Added first batch of query execution tests using the test driver (#131)
* Added first batch of query execution tests using the test driver

* Fix issues from merge with dev
2016-11-01 13:21:05 -07:00
Karl Burtram
eafe2973be Update nuget.config to pull private nuget packages from within the repro. (#132) 2016-11-01 11:09:55 -07:00
Sharon Ravindran
29b7854ec1 Handle connection exceptions and add error callback (#126) 2016-10-31 11:25:51 -07:00
Karl Burtram
69bbb652da Add more code coverage tests. (#129) 2016-10-29 19:59:58 -07:00
Karl Burtram
ab1316b1fb Next batch of code coverage tests. (#128)
Auto-merging test-only changes.  Please review the commit and I'll make changes in next iteration.

* Add more tests to boast code coverage

* Add more reliable connection tests.
2016-10-29 15:34:51 -07:00
Karl Burtram
6cdaa6e808 Add more test cases for code coverage (#127)
Next round of code coverage test cases.  Please review the commit for next iteration.

* Add connection retry tests

* More test coverage

* Update diagnostics end-to-end test
2016-10-29 12:10:02 -07:00
Karl Burtram
f46fc0c787 Add additional test cases (#125)
Test-only changes for code coverage.  Please review the comment and I'll include the changes in the next iteration.

* Add more tests

* Add some more additional test cases
2016-10-28 20:33:32 -07:00
Sharon Ravindran
931235c604 Refactor error messages (#122) 2016-10-28 12:26:31 -07:00
Anthony Dresser
96c3e746ad change time when the batch time is set (#118) 2016-10-28 11:52:39 -07:00
Karl Burtram
9bd5839812 Add end-to-end language service tests. (#123)
Test-only code coverage changes.  Please review the commit and I'll follow-up on next iteration.
2016-10-28 01:04:48 -07:00
Karl Burtram
6b589f45bb Fix some typos in code coverage merge. 2016-10-27 19:00:06 -07:00
Karl Burtram
da84ae9f3b Code coverage improvements (#121)
These are test-only changes to improve code coverage so I'll merge directly.  Please review the commit and I'll pickup those changes in the next iteration.

* Add integration test batch file

* Exclude Linux and MacOS from Windows code coverage builds

* Enable code coverage for test driver e2e tests

* Use the windows only build for code coverage runs
2016-10-27 18:18:31 -07:00
Karl Burtram
d42a92dd94 Test fixes to enable integration suites 2016-10-26 22:44:21 -07:00
Karl Burtram
b0f7ba4084 Turn on disabled tests in integration suite (#120)
No real code changes, just reenabling disabled tests in integration test runs.
2016-10-27 05:00:14 +00:00
Karl Burtram
4bc490db7c Add switch for setting test build configuration (#119)
This is build config-only so I'm merging to get updated build tonight.
2016-10-27 04:32:57 +00:00
Mitchell Sternke
67d1d800a3 Test driver improvements (#117)
* Refactored the test driver to work with xunit in addition to the command line

* Fix behavior of property
2016-10-25 17:16:33 -07:00
Leila Lali
cac3ae5eeb changing the setting namespace (#116) 2016-10-25 17:09:42 -07:00
Karl Burtram
649ea7d05c Suggestion list cleanups (#115)
* Add additional autocomplete words

* Add another word to default completion list

* Add colorization keywords and fix minor bugs.
2016-10-25 17:21:37 +00:00
Karl Burtram
1d7e6e353f Feature/cleanups1 (#114)
* Intellisense cleanups.

* Additional intellisense cleanups for default list

* Add missing Monitor.Exit in completion resolve

* A couple more cleanups.

* Bug fixes for auto-complete.

* Add comment regarding conditional logic
2016-10-24 18:11:49 +00:00
Sharon Ravindran
2a688cb87f Make save result async (#107)
* Make save results asynchronous

* Prevent write share of file

* Lock objects in stages

* Create Save result objects

* refactor and write rows in batches

* CHange batchSize from test value

* Remove await in handler

* Removing the file reader as a member of the resultset

* Change Dispose to wait for save

* Change concurrentBag

* PascalCase variables

* Modify function signature and tests

* Safe file methods

* refactor ResultSets to Ilist and remove ToList

* Change dictionary key and prevent add to saveTasks during dispose

* Simplify row concatenation

* Fix prevent add

* Fix prevent add

* Add methods to expose saveTasks and isBeingDisposed
2016-10-21 20:07:21 -07:00
Mitchell Sternke
b389d275a2 Added test driver program for service host (#113)
* Added test driver program for service host

* Fix typo
2016-10-21 17:49:37 -07:00
Leila Lali
5a7b412c38 changed the icons for the completion list based on the sql type (#112)
* changed the icons for the completion list based on the sql type
2016-10-21 15:50:12 -07:00
Karl Burtram
854a6a0eca Switch back to event from locks to fix blocking issues. (#111) 2016-10-21 15:46:33 -07:00
Leila Lali
b3d793dc85 Fixed autocomplete bugs (#110)
Autocomplete for items with special characters doesn't add [ ]
Autocomplete default list shows when it shouldn't..like in comments or literals
2016-10-21 15:03:48 -07:00
Mitchell Sternke
f35b9fda27 Added option --enable-logging to enable diagnostic logging (#106)
* Added option --enable-logging to enable diagnostic logging

* Addressing feedback

* Addressing feedback, round 2
2016-10-20 17:56:33 -07:00
Benjamin Russell
989ad065dd Bug/srgen in lab builds (#109)
This isn't much of a change from the change that was backed out. The only change was a version bump of the SRGen nuget package.

* Reenabling running SRGen when running lab builds, improving failure logic, updating SRGen package

* Vbump for srgen package testing

* Final vbump of srgen package
2016-10-20 16:54:41 -07:00
Karl Burtram
fd7a2a5748 Bump SMO to 140.1.9 (#108)
version bump only
2016-10-20 14:57:40 -07:00
Benjamin Russell
34e9da6dbf Revert "Reenabling running SRGen when running lab builds, improving failure logic, updating SRGen package (#91)"
This reverts commit c14c7d187f.
2016-10-20 11:33:26 -07:00
sgreenmsft
aa5432d0be Sgreen/update messages (#97)
Update messages to fix typo and remove (s).
2016-10-19 14:55:09 -07:00
Benjamin Russell
2721de1de7 Fixing a broken unit test (#98) 2016-10-19 14:52:05 -07:00
Benjamin Russell
c14c7d187f Reenabling running SRGen when running lab builds, improving failure logic, updating SRGen package (#91) 2016-10-19 14:27:56 -07:00
Leila Lali
09c6c52292 disabling the language capabilities which we're not supporting this release (#100)
* disabling the language capabilities which we're not supporting this release
2016-10-19 14:27:03 -07:00
Karl Burtram
4ee6de63f5 Rollback build break from previous check-in (#105) 2016-10-19 13:04:02 -07:00
Benjamin Russell
11ca99f419 Handling NOCOUNT being set (#96)
After much thinking, this change brings the message behavior into line with SSMS, including if the NOCOUNT is set. This is a somewhat non-obvious solution, but the StatementCompleted event handler will only be fired if there is a record count to return. We'll add the message for number of records if the StatementCompleted event is fired, otherwise we won't add any messages while processing the resultsets of the batch. If any messages are returned from the server, we'll capture those. Then, if at the end of the batch, we haven't collected any messages from StatementCompleted events or server messages, then we'll add the "completed successfully" message.
This matches behavior of SSMS that will only emit a "completed successfully" message if there were no other messages for the batch.

* Solution to issue, some unit tests needed to be tweaked

* Comments for the event handler
2016-10-19 11:10:13 -07:00
Mitchell Sternke
b62f67607f Redefined ordering for list databases to be by name (#103) 2016-10-19 10:57:20 -07:00
Karl Burtram
b001f428bf Fix a binding causing autosuggestions to fail (#104) 2016-10-19 10:35:53 -07:00
Mitchell Sternke
a3335708c6 Feature/reliable connection tests (#102)
* Ported ReliableConnectionTests from DacFx and added a few more tests

* Fix style

* Created integration tests configuration and fixed minor test issue
2016-10-18 12:19:16 -07:00