Giter VIP home page Giter VIP logo

pstsqlttestgenerator's People

Contributors

mverbaas avatar sanderstad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pstsqlttestgenerator's Issues

Test Ideas

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:

  1. The test should be able to be parameterized
  2. The test should be a basic test. It should not be an integration test with other components

Assumption of indexes

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.

Split tests in folders when it reaches thresshold

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.

Create command to test data set

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 test to test query speed

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

Add features

  • - database credentials
  • - database options
  • - generic database scoped configuration option
  • - users
  • - roles
  • - application roles
  • - role memberships
  • - filegroups
  • - full-text catalogs
  • - assemblies
  • - certificates
  • - asymmetric keys
  • - symmetric keys
  • - encrypted symmetric keys
  • - schemas
  • - XML schema collections
  • - user-defined data types
  • - user-defined types
  • - table types
  • - unique keys for table types
  • - primary keys for table types
  • - indexes for table types
  • - check constraints for table types
  • - default constraints for table types
  • - partition functions
  • - partition schemes
  • - functions
  • - encrypted functions
  • - aggregates
  • - procedures
  • - encrypted procedures
  • - tables
  • - primary keys
  • - unique constraints
  • - foreign keys
  • - default constraints
  • - check constraints
  • - views
  • - encrypted views
  • - indexes
  • - statistics
  • - full-text index stoplists
  • - search property lists
  • - search properties
  • - full-text indexes
  • - column store indexes
  • - spatial indexes
  • - XML indexes
  • - Selective XML indexes
  • - encrypted triggers
  • - triggers
  • - encrypted and clr ddl triggers
  • - ddl triggers
  • - synonyms
  • - defaults
  • - data constraint uddt bindings
  • - rules
  • - data constraint uddt bindings
  • - message types
  • - queues
  • - contracts
  • - services
  • - event notifications
  • - remote service bindings
  • - broker priorities
  • - signatures
  • - data compression options
  • - sequence types
  • - security policies
  • - Gather column encryption keys
  • - column master keys
  • - external data sources
  • - external file formats
  • - external tables
  • - extended properties
  • - credentials
  • - logins
  • - server audits

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.