Mocking Oracle database in unit-tests

In need to write unit tests that uses old node-oracle library and I am looking for options to run tests w/o real database.
Is there in-memory fake database implementations (such as mockcouch for CouchDB or TingoDB for MongoDB)?
Is there real world success stories to use Sinon.Js to mock database?
Should I now rewrite modules to use with current supported library to make this 2 options available or better/simpler implemented?
Should I not write unit-tests now and wait until options 1) and 2) available are?

In need to write unit tests that uses old node-oracle library and I am looking for options to run tests w/o real database.
Is there in-memory fake database implementations (such as mockcouch for CouchDB or TingoDB for MongoDB)?
Is there real world success stories to use Sinon.Js to mock database?
Should I now rewrite modules to use with current supported library to make this 2 options available or better/simpler implemented?
Should I not write unit-tests now and wait until options 1) and 2) available are?

Similar Messages

  • Mocking framework for ABAP unit tests

    Hi, Is there a mocking framework for ABAP ? Something like easymock or mockito for Java ?
    I searched but cannot find anything...
    thanks !

    Hello,
    Now there is one framework available ;-)
    https://github.com/uweku/mockA
    Regards,
    Uwe

  • Flash Builder 4.6 - How can I keep unit test classes out of the finished swc?

         I have a library of code I'm building and I'm working on unit testing but I have a major issue. When my finished swc compiles no matter what I do it includes the unit test classes as part of the intellisense if you load the swc via flash. The classes aren't really in the swc since if you just try and import them they'll come up undefined. They only appear to go into the intellisense for the swc. Does anyone know how can I keep this from happening in the finished source? Currently my folder setup is like this in flash builder.
    src\main - source documents for the library to get compiled
    src\mock - mock class area for unit testing
    src\test - unit test classes
         In the project Properties panel > the first tab of my Flex Library Build path I have selected only the src\main folder for the classes to inlude in the library. No other folder paths are selected.
    The "Flex Library Build Path" doesn't change my results with any setting.
    Thanks,

    Mel Riffe,
    Here's a Help topic about compiler options in Flash Builder: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb524b8220812e5611f28f-7fe7. html
    For information on using mxmlc, the application compiler, to compile SWF files from your ActionScript and MXML source files, you can see: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fcc.html
    Hope this helps,
    Mallika Yelandur
    Flash Builder Community Help & Learning
    Adobe Systems Incorporated

  • Unit Test component missing after upgrade to 3.2

    I recently upgraded (just installed it over the previous version) the sqldeveloper from 3.1 to 3.2.20.09.
    Since the new installation the unit test component is missing. After some searches I found that entry in the help/info/enhancements panel:
    Oracle SQL Developer - Unit Test    oracle.sqldeveloper.unit_test    11.2.0.09.87    Deaktiviert durch Benutzer (=>deactivated by user !?)
    It seems as if it was deactivated somehow. I certainly can't remember deactivating any components/enhancements, escpecially not the unit testing framework.
    How can I enable it again?

    JimSmith wrote:
    You should never install a new version over an old version. It always causes problems. The upgrade path as documented in the release notes is ALWAYS to install in a new directory.
    Hm... I just double checked the installation guide (http://docs.oracle.com/cd/E35137_01/doc.32/e35119/install.htm#CIHFGGJB) and I can't see a comment that you HAVE TO use a new directory. And even more that reusing the same directory would result in a corrupt installation.
    The only thing that it tells me is that IF I want to migrate user settings from a previous release, I need to install it in an empty folder.
    To migrate user settings from a previous SQL Developer release:
      Unzip the kit for the current release into an empty directory (folder). Do not delete or overwrite the directory into which you unzipped the kit for the previous SQL Developer release.
    If I don't want to migrate user settings, then I could install it into the same directory.
    Did I overlook something in the installation guide? Maybe there is a documentation gap?
    The comment in the release notes is easily overlooked, especially as soon as you start looking though the installation guide. And there the wording could be misleading.
    Message was edited by: SvenW.

  • PL/SQL Unit Testing

    Does anyone know about PL/SQL unit testing software? I'm currently reviewing Quest's Code Tester for Oracle, which seems very good. Are there any others?

    Check here my post
    http://rodenthood.blogspot.com/2010/07/oracle-sql-developer-unit-testing.html
    or here oracle's guide
    http://www.oracle.com/technology/obe/11gr2_db_prod/appdev/sqldev/sqldev_unit_test/sqldev_unit_test_otn.htm

  • What's the best free tool to populate an Oracle database?

    I'm looking for a free tool to populate an Oracle Database 10g for testing purposes.
    Does anybody know the best one?
    Thanks,
    Carlos Felipe

    Hi Carlos,
    I'm looking for a free tool to populate an Oracle Database 10g for testing purposes.If you want to load test data, you may want to spend a bit and get something goog.
    There are several tools and methods for generating test data for Oracle:
    STATSPACK - You can easily write your own SQL capture, directly from the STATSPACK stats$sqlstat table.
    AWR - AWR captures historical SQL in the dba_hist_sqlstat table.
    SQL Tuning Sets – This 10g tool grabs SQL from the library cache or Oracle.
    SQL Performance Analyzer (SPA)  – This new 11g tool captures representative SQL workloads.
    Mercury LoadRunner  - A popular tools for simulating the real-world effect of an Oracle system change.
    Quest Benchmark Factory - A complete environment for showing the effects of an Oracle change.
    DBGEN - The TPC-H tools, dbgen and qgen allow for the development of anywhere from a gig to a terabyte databases.
    Hammerora - The Hammerora product provides a means to create a pseudo-TPC-C database and generate loads against it.
    Hope this answers your question . . .
    Donald K. Burleson
    Oracle Press author

  • Unit Test Generator - VS 2008 (Cannot add oracle data source)

    Hi All,
    Okay this might just be me (new to ODT for VS) - but If I start VS, go Test -> Add Test.
    Create a Database Unit Test.
    [Give it some name]
    write a query such as select * from <>
    add a test checksum condition , and try to configure the checksum condition.. (Hit configure on the properties - under misc).
    I go to new connection ...
    I only have SQL Server (sqlClient) available. Is the unit test generator/validator something that oracle does not currently yet support?
    (Yes the ODT 11i for VS 2008 is installed, can add a data connection to Oracle systems/query oracle in VS - just cannot add a Oracle database connection for unit database tests).
    Or has anybody found a way to make this very useful piece of functionality work ?
    Best Regards,
    D

    The same thing happens, If I go File -> Open -> Oracle Database Project Items -> SQL Script.
    This comes up as disconnected.
    When right click on the new script choose connect, only SQL Server provider is available with no ability to choose a oracle provider (greyed out to choose a diff connection provider).
    Prehaps someone has seen this before?

  • Unit Testing and Oracle Sessions

    We have an issue regarding Oracle session and SQL Developer Unit Testing.
    Every time we run a Unit Test in SQLDeveloper a new Oracle session is created. When closing that Unit Test, the session, however, is not disconnected.
    And the only way to close that "Unit Test" session is to close SQLDeveloper.
    This is causing problems with the no. of sessions available to developers.
    Any help would be much appreciated.
    Subboss

    The focus of this forum is report design. The actual testing of reports would be subject to your own internal policies and procedures.
    Jason

  • SSDT Unit Test - How to mock GETDATE()?

    Some of our procedures/triggers returns values basing on current date, i.e.: GETDATE(), GETUTCDATE()
    In such case a unit test will produce different result every time it is executed.
    I found an article that one embeds GETDATE() into user defined function, and then at test runtime alters the function to return hardcoded date instead of current date.
    http://pmichaels.net/2014/06/22/mock-current-date-and-time-in-sql-server/
    What I don't like in such approach is that I will be forced to use custom user functions to get current date, change a lot of existing stored procedures and finally it can have negative impact on performance.
    Is there a good method to handle such cases?

    Hi, are you trying to just capture the day, month and year; something like '24-Apr-2015'?  If so try this code: -
    Declare
    @DateStr nvarchar(11)
    Declare
    @MonthNum int
    Declare
    @TempStr nvarchar(2)
    Set
    @Tempstr =(Select
    Cast
    (DatePart(dd,GetDate())
    As
    VarChar(2)))
    IF
    len(@Tempstr)=1
    BEGIN
    Set @Tempstr
    =(Select
    '0'+@Tempstr)
    END
    Set
    @DateStr=(Select
    (@TempStr+'-'))
    Set
    @MonthNum=(Select
    DatePart(mm,GetDate()))
    If
    @MonthNum=1
    Begin
    Set @DateStr=(Select
    (@DateStr+'Jan-'))
    End
    If
    @MonthNum=2
    Begin
    Set @DateStr=(Select
    (@DateStr+'Feb-'))
    End
    If
    @MonthNum=3
    Begin
    Set @DateStr=(Select
    (@DateStr+'Mar-'))
    End
    If
    @MonthNum=4
    Begin
    Set @DateStr=(Select
    (@DateStr+'Apr-'))
    End
    --Repeat above for all months
    Set
    @DateStr=(Select
    (@DateStr+Cast
    (DatePart(yyyy,GetDate())
    As
    VarChar(4))))
    Print
    @DateStr
    Please click "Mark As Answer" if my post helped. Tony C.

  • Installa Oracle Database 10g in a Tests Server

    Good Morning
    I need help about as to Install Oracle10g Database, in a test server.I need Create a Database and later to Restore the last day Backup, in this Database. Please somebody help me
    Regards
    Kevin Koch

    Step 1: Go to http://docs.oracle.com
    Step 2: Download the installation document for your version.
    10g is not a version it is a marketing label. 10.1.0.3 is not 10.2.0.4.
    and you didn't think your operating system important enough to mention.
    Step 3: Follow the installation steps in the document without deviation.
    If you run into a problem ask a specific question and provide sufficient information so someone can help you rather than just giving you a generic answer (such as this).

  • Oracle client has a test database for creating SP's?

    I have 10g Oracle client in my machine. Does it have a test database I can connect to and create stored procedures?
    If not, is it possible to create a local database?
    And What about Oracle Express client? Does it come with a test Database? Or do I need to install database in my system for creating SP's ?

    901007 wrote:
    I have 10g Oracle client in my machine. Does it have a test database I can connect to and create stored procedures?
    If not, is it possible to create a local database?
    And What about Oracle Express client? Does it come with a test Database? Or do I need to install database in my system for creating SP's ?No. You have to install oracle database server version for this.

  • Oracle database Performance testing

    What are the procedure to dp Oracle performance Testing???
    Is there any tools to do Oracle database Performance or load testing??

    insa wrote:
    OS- windows
    DB-Oracle11gr2
    Just i want check if 100 of users using my Application at a time what will be the performance of my database??Database performance is dependent on a number of factors - where application design, application code and data model, are critical components.
    And these components need to be designed, written, and implemented with performance and scalability as primary requirements. From design issues like using 3NF correctly, to coding issues like using bind variables correctly.
    You cannot simply slap design and code together, run that against the database, and then tune database performance. That is not the correct approach. Oracle database technology performs very well. It is the application that does not perform. It is the design that does not perform. It is the architecture that does not perform.
    When I see the comment that someone wants to test database performance, I see someone not understanding what determines performance - and incorrectly thinking that the database is a black box, and that this black box's performance can be tuned and set, irrespective of the data model, application code and architecture used.

  • Test oracle database that I can use

    Hi,
    Does Oracle have some kind of test database that I can connect to remotely for testing purposes that I can access remotely? Alternatively, does Oracle have something similar to Microsoft's Northwind database that I can access remotely? I am playing around with different connection methods for a remote oracle connection but I am currently on my personal laptop and do not wish to access my company's remote oracle database on a non-workplace computer.
    Thanks

    859420 wrote:
    Hi,
    Does Oracle have some kind of test database that I can connect to remotely for testing purposes that I can access remotely? Alternatively, does Oracle have something similar to Microsoft's Northwind database that I can access remotely? I am playing around with different connection methods for a remote oracle connection but I am currently on my personal laptop and do not wish to access my company's remote oracle database on a non-workplace computer.
    Thanks============================================================================
    Every oracle professional (or student) should have their own private computer lab. I'm assuming in this day and age anyone in this catagory already has their own computer. Starting from there, you should do the following:
    1 - Go to vmware.com and download VMplayer. VMware freely distributes this so your cost so far is zero. If you are willing to invest about US$185 in your career, buy VMworkstation instead. It will give you some additional management features above what VMplayer has. Either product will allow you to create virtual machines on your personal computer.
    1a - Install the VM product
    2 - Go to oracle.com and download Oracle Enterprise Linux. Oracle freely distributes this, only charging if you want a support contract. As they also provide a free public yum server for distribution of most packages, even a support contract is not needed for your personal use.
    2a - using your vmproduct and your downloaded linux, create a virtual linux machine.
    3 - Go to oracle.com and download whatever db or related product you want. The terms of the oracle license agreement allow you the full use of any product for personal study.
    By doing the above I have a full computer lab running on my Windows 7 laptop, for a total cost of US$185 - and even that cost was because I chose to upgrade my VM from VMplayer to VMworkstation.
    ============================================================================

  • Beta Testing Continues for "Oracle Database 11g: Performance Tuning" Exam

    !http://blogs.oracle.com/certification/2009-0204-1123.gif!
    The beta period continues for the <strong>Oracle Database 11g: Performance Tuning certification exam (1Z1-054)</strong>, which is a single exam requirement for Oracle 11g DBA OCPs to earn the Oracle Database 11g Performance Tuning Certified Expert (OCE) certification. Read more on the <a href="http://bit.ly/UGJh4">Oracle Certification Blog</a>.</p>

    Hello Hussein
    Yes true, I remember it for the OCE and Linux exams they rescheduled the end date several times. As far as I know it is related to the number of participants and the given feedback.
    I've also participated to several other exams, and I must admit that it is a long and hard process to get through. When I got the feedback 10 weeks after the beta period closure, I had to review nearly all the topics to get the exams passed the second time. But this it is a cheap and good exam preparation.
    What about you Hussein? Do you think that's trivial?
    Cheers,
    Hub

  • Beta Testing Ends For "Oracle Database 11g: Performance Tuning" Exam

    !http://blogs.oracle.com/certification/2009-0204-1122.gif!
    <p>The beta period ended on Aug 31, 2009 for the <strong>Oracle Database 11g: Performance Tuning</strong> certification exam (1Z1-054), which is a single exam requirement for Oracle 11g DBA OCPs to earn the Oracle Database 11g Performance Tuning Certified Expert (OCE) certification.</p>
    <p align="justify">Full details are posted on the Oracle Certification Blog.</p>

    Hello Hussein
    Yes true, I remember it for the OCE and Linux exams they rescheduled the end date several times. As far as I know it is related to the number of participants and the given feedback.
    I've also participated to several other exams, and I must admit that it is a long and hard process to get through. When I got the feedback 10 weeks after the beta period closure, I had to review nearly all the topics to get the exams passed the second time. But this it is a cheap and good exam preparation.
    What about you Hussein? Do you think that's trivial?
    Cheers,
    Hub

Maybe you are looking for

  • Delivery gets created in VL01N - Return scenario even after error message

    Hi, I am having following issue explained in details in steps - We have a service return scenario and following steps have been followed in ECC. Material code used in this case is batch managed material. Step 1 u2013 We have created a sales order(VA0

  • Webcam NX Ultra cannot load windows 7 drivers

    Hi please help - I was so excited to see the windows 7 drivers for my webcam NX ultra - but I cannot load them . Installation wizard gets to a certain point and then it says driver installation failed. I have tried unistalling the camera, unistalling

  • Book numbering properties window – Section and Sub-section grayed out

    In FM 12, I have a book composed of one front-matter file and 9 chapter files. The chapters (1-9) auto-numbered without any problems and pagination is correct. I want to add section and subsection numbers. Within each file I added autonumber format t

  • Cannot print or ping HP 8000

    I cannot ping our HP 8000 from my new dv8t running windows 7. I can ping the router, the officejet 6500, other computers no problem. Other computers (running win 2K) can ping and print to the 8000. I would like to be able to print directly to the 800

  • Can't open iunes!

    Windows said :"Tunes has encountered a problem and needs to close. We are sorry for the inconvenience." I have tried to uninstall , reinstall, use msconfig... for times but it still doesn't work. Help me please!