{"repo":"ZackFra/Salesforce-Moxygen","free":true,"listed":false,"github":"https://github.com/ZackFra/Salesforce-Moxygen","clone":"git clone https://github.com/ZackFra/Salesforce-Moxygen.git","description":"Salesforce SOQL and DML mocking library with full-feature Apex-backed in-memory SOQL database.","language":"Apex","stars":36,"topics":["apex","dml","library","mocking","salesforce","soql","soql-parser","stubbing","testing","unit-testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"🚀 Jump Start Your Deployments! Salesforce Moxygen is an intuitive Salesforce mocking library for Apex unit testing that can reduce deployment times from two hours to two minutes! Moxygen is unique from other Apex mocking libraries in that it includes a functional in-memory mock database that can handle most SOQL queries, parse them, and return the correct results. This means, in most cases, it is not required to specify what's returned from queries or to stub a data access object. Example Lets say you have an AccountService class like so: To test this, you can create an account with an @TestSetup class... orr.... 🧰 Documentation Reference Guide UML Diagram Still a rough-sketch for now, but this is the general organization of the codebase. ❤️ Contribute Contributing 🥇 Mock SOQL Database Under the hood, a mock SOQL parser is used to handle queries in the context of a unit test. Levels of Support There are four categories of support for a SOQL query done via the mock SOQL database. Fully Supported Partially Supported Ignored It won't throw an exception when parsed, but won't be applied by the mock database Not Supported Throws a QueryException when read by the parser Supported Clauses Clause Level of Support Notes ------------- --------------------- ------- SELECT Partially Supported FORMAT(), convertCurrency(), convertTimezone(), GROUPING(), date functions, and toLabel() are not supported. TYPEOF Fully Supported FROM Fully Supported USING SCOPE Ignored WHERE Partially Suppor","default_branch":null,"files":null,"tree":[],"storefront":"/r/ZackFra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ZackFra/Salesforce-Moxygen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}