Giter VIP home page Giter VIP logo

salesforce-test-benchmarker's Introduction

Commands

Execute tests

# execute single run
sfdx force:apex:test:run -w 10 -s AllProductTests,AllNonProductTests

# execute in a loop
zsh scripts/batch/loop-test-results.sh -n test-run-name -s TestSuiteName1,TestSuiteName2

Retrieve test results

# retrieve specific ids
sfdx force:data:soql:query -q "SELECT Id, AsyncApexJobId ,StartTime, EndTime, Status, ClassesEnqueued, ClassesCompleted, IsAllTests, TestTime, MethodsEnqueued, MethodsCompleted, MethodsFailed FROM ApexTestRunResult WHERE Status IN ('Completed','Processing') AND AsyncApexJobId IN ('7077a00002uGPWSAA4','7077a00002uGQU8AAO','7077a00002uOqRjAAK','7077a00002uPK8PAAW','7077a00002uPKoOAAW','7077a00002uPLYUAA4','7077a00002uPM3fAAG','7077a00002uPMx3AAG','7077a00002uPNgyAAG','7077a00002uPORFAA4') ORDER BY StartTime DESC LIMIT 10" -u TestBenchmarker2 --json > test-run-results.json

# retrieve the last 10 runs
sfdx force:data:soql:query -q "SELECT Id, AsyncApexJobId ,StartTime, EndTime, Status, ClassesEnqueued, ClassesCompleted, IsAllTests, TestTime, MethodsEnqueued, MethodsCompleted, MethodsFailed FROM ApexTestRunResult WHERE Status IN ('Completed','Processing') ORDER BY StartTime DESC LIMIT 10" -u TestBenchmarker --json > summary.json

Does order of tests matter? -> AllNonProductTests,AllProductTests vs. AllProductTests,AllNonProductTests

salesforce-test-benchmarker's People

Contributors

j-schreiber avatar

Watchers

 avatar

Forkers

jdgirald

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.