sanderstad / pstsqlttestgenerator Goto Github PK
View Code? Open in Web Editor NEWPowerShell module to generate tSQLt tests
PowerShell module to generate tSQLt tests
Leave a comment what kind of test you're missing and how you would like this to be implemented.
Keep in mind about the following:
You're test generator assume an index being present. Although this is a recommended practice, it is not always the case.
Maybe the code can check the existence of the index before creating the file.
Opearting systems do not like it when you have more than 10,000 files in a single directory.
There needs to be a parameter (and preferably a check) that when the directory has a certain amount of files it splits it in directories.
Maybe even fore that to happen because the user may not know that so many objects are being created.
The ViewColumnTest.template file references a 't' alias that isn't used in the from clause.
Probably you need to use the 'v' alias in the SQL Query part.
The command should get all the data from a table and assert the table
First get all the existing data and generatevthebjnsert statements for the expected table.
In the assert select the actual values.
Create a command to create a unit test that tests a specific query.
Get the first run time, then execute the query X times to get an average.
DECLARE @t1 DATETIME;
DECLARE @t2 DATETIME;
SET @t1 = GETDATE();
SELECT /* query one */ 1 ;
SET @t2 = GETDATE();
SELECT DATEDIFF(millisecond,@t1,@t2) AS elapsed_ms;
SET @t1 = GETDATE();
SELECT /* query two */ 2 ;
SET @t2 = GETDATE();
SELECT DATEDIFF(millisecond,@t1,@t2) AS elapsed_ms
The test class now defaults to "TestBasic". That should be changeable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.