Skip to content

Add special commands and tests #155

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

Merged
merged 8 commits into from
Feb 2, 2018
Merged

Conversation

abhisheksinha89
Copy link
Contributor

Adds the first batch of special commands, and the corresponding tests.
Code coverage bumped from 63% to 64%

More special commands will be added in separate PR's.
This PR gives a foundation for implementing future special commands.

try:
# create the database objects to test upon
client = create_mssql_cli_client()
list(client.execute_single_batch_query('CREATE DATABASE testdb1;'))
Copy link
Member

@pensivebrian pensivebrian Feb 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testdb1 [](start = 68, length = 7)

can this by dynamic, eg. mssql-cli-test-xxxx-xxxxx

This way, concurrently running tests can't step on each other. #Resolved

@@ -0,0 +1,86 @@
import unittest

Copy link
Member

@pensivebrian pensivebrian Feb 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please run these test on supported server version to make sure the queries work: 2005, 2008, 2012, 2016, 2017, and Azure SQLDB, Azure SQL DW #Resolved

Copy link
Contributor Author

@abhisheksinha89 abhisheksinha89 Feb 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested (tested on 2005 manually, tests were timing out due to the issue we saw offline)


In reply to: 165537064 [](ancestors = 165537064)

Copy link
Member

@pensivebrian pensivebrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just two high level comments:

  1. Lets test against all server versions
  2. Make sure tests can run concurrently without conflicts

@abhisheksinha89 abhisheksinha89 merged commit 65e545f into master Feb 2, 2018
@abhisheksinha89 abhisheksinha89 deleted the abhi/special_commands branch February 2, 2018 22:16
hejack0207 pushed a commit to hejack0207/osql-cli that referenced this pull request Apr 27, 2018
* Special commands create source files

* Special commands add help special command

* Add list databases command

* Add list schemas special command

* Add list tables

* Add list views and list indexes

* Add special command tests

* Update tests to use dynamically generated resource names
hejack0207 pushed a commit to hejack0207/osql-cli that referenced this pull request Apr 27, 2018
* Special commands create source files

* Special commands add help special command

* Add list databases command

* Add list schemas special command

* Add list tables

* Add list views and list indexes

* Add special command tests

* Update tests to use dynamically generated resource names
hejack0207 pushed a commit to hejack0207/osql-cli that referenced this pull request Apr 27, 2018
* Special commands create source files

* Special commands add help special command

* Add list databases command

* Add list schemas special command

* Add list tables

* Add list views and list indexes

* Add special command tests

* Update tests to use dynamically generated resource names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants