From b3a8fc470f95582e67a1ceaf4262093d09db7a20 Mon Sep 17 00:00:00 2001 From: ron Date: Mon, 27 Feb 2017 09:52:49 -0800 Subject: [PATCH 1/4] Fixing format error in mark down read me file --- doc/README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/doc/README.md b/doc/README.md index a391f8a..bce571a 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,20 +1,22 @@ +Setting up your development environment +======================================== 1. Install the dependencies via pip with the script below. ```Shell python scripts/dev_setup.py - + ``` 2. Add `\src` to your PYTHONPATH environment variable: - - #####Windows + + ##### Windows ```BatchFile set PYTHONPATH=\src;%PYTHONPATH% ``` - #####OSX/Ubuntu (bash) + + ##### OSX/Ubuntu (bash) ```Shell export PYTHONPATH=/src:${PYTHONPATH} - -##Running Tests: -####Command line -#####Windows: + ``` +## Running Tests: +#### Command line Provided your PYTHONPATH was set correctly, you can run the tests from your `` directory. To test the common modules of the CLI: @@ -27,4 +29,4 @@ python -m unittest discover -s src/mssqlscripter/mssql/scripter/tests ``` - Additionally, you can run tests for all CLI tools and common modules using the `Run_All_Tests.bat` script. + Additionally, you can run tests for all CLI tools and common modules using the `Run_All_Tests.bat` or `sh Run_All_Tests` script. From fe022def9f3af136f4223551bb42779c5487c2d3 Mon Sep 17 00:00:00 2001 From: ron Date: Mon, 27 Feb 2017 10:08:18 -0800 Subject: [PATCH 2/4] Made run_all_tests bat and sh file lower case --- doc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/README.md b/doc/README.md index bce571a..8ae69c6 100644 --- a/doc/README.md +++ b/doc/README.md @@ -29,4 +29,4 @@ Setting up your development environment python -m unittest discover -s src/mssqlscripter/mssql/scripter/tests ``` - Additionally, you can run tests for all CLI tools and common modules using the `Run_All_Tests.bat` or `sh Run_All_Tests` script. + Additionally, you can run tests for all CLI tools and common modules using the `run_all_tests.bat` or `sh run_all_tests` script. From 0d33a759c495edb1a30c5522be4d4ae89cbd8cfb Mon Sep 17 00:00:00 2001 From: ron Date: Mon, 27 Feb 2017 10:12:02 -0800 Subject: [PATCH 3/4] Added .sh extension to shell file --- scripts/{Run_All_Tests => run_all_tests.sh} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename scripts/{Run_All_Tests => run_all_tests.sh} (95%) diff --git a/scripts/Run_All_Tests b/scripts/run_all_tests.sh similarity index 95% rename from scripts/Run_All_Tests rename to scripts/run_all_tests.sh index e998322..a13dcd3 100644 --- a/scripts/Run_All_Tests +++ b/scripts/run_all_tests.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. From fbe832c551a1ab6e99f67669bc492c92c01751d4 Mon Sep 17 00:00:00 2001 From: ron Date: Mon, 27 Feb 2017 10:13:47 -0800 Subject: [PATCH 4/4] Undoing shebang line for sh file --- scripts/run_all_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_all_tests.sh b/scripts/run_all_tests.sh index a13dcd3..e998322 100644 --- a/scripts/run_all_tests.sh +++ b/scripts/run_all_tests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information.