Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Quickstart

VL edited this page Sep 9, 2019 · 4 revisions

Quickstart

Requirements

Building the project

  • Build using Maven mvn clean install

Expected output:

[INFO] Sandboni Intelligent Testing Parent ................ SUCCESS [  2.590 s]
[INFO] Sandboni SCM ....................................... SUCCESS [ 15.376 s]
[INFO] Sandboni Core Engine ............................... SUCCESS [ 24.612 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Running the project

  1. Make any change in codebase
  2. Add following VM options
-Dsandboni.scm.from=LATEST_PUSH
-Dsandboni.scm.to=LOCAL_CHANGES_NOT_COMMITTED
-Dsandboni.scm.repository=.
-Dsandboni.source.locations=./engine/target/classes,./scm/target/classes
-Dsandboni.test.locations=./engine/target/test-classes,./scm/target/test-classes
-Dsandboni.selectiveMode=true
  1. Navigate to 'com.sandboni.core.engine.Application' class and run main' method Expected output:
INFO: Tracked branch: refs/remotes/origin/master:master
INFO: Resolved revision scope: AnyObjectId[46bb247edba1d5edb8eb6fa5a5c46ff225d2cb06] : AnyObjectId[0000000000000000000000000000000000000000]
INFO: Found changes: com/sandboni/core/engine/Application.java:ADD:[10]
com/sandboni/core/engine/Application.java:MODIFY:[32, 33, 34, 29, 30, 31]

INFO: Related tests to execute: {com.sandboni.core.engine.ApplicationTest=[testNoScmRepositorySystemProperty(), testNoScmFromSystemProperty(), testNoSystemProperties(), testNoScmToSystemProperty(), testNoLocationsSystemProperty(), testAllPropertiesAreMatched()]}
INFO: Disconnected tests to execute: {com.sandboni.core.engine.ApplicationTest=[testDisconnectedTest()], com.sandboni.core.engine.scenario.EmptyTest=[testNotIgnoredMethod()], Bookmarks List Display Grid=[Verify Date Added Sort works in Bookmark Page, Displays bookmarks and default actions in Bookmark page], Receive and process Cash Forecast messages of type cash management=[Cash Forecast should receive and process Cash Forecasts of type cash management, Cash Forecast should receive and generate offsets for updates to a previously submitted Cash Forecast of type cash management], Onboarding of Input Value Definitions=[Happy Path - Onboard to monitoring, query monitoring and publish updates to clients.]}

Explanation of output:

  • refs/remotes/origin/master:master - repository branch is format <remote_branch>:<local_branch>
  • LATEST_PUSH - resolved commit to 46bb247edba1d5edb8eb6fa5a5c46ff225d2cb06 revision
  • LOCAL_CHANGES_NOT_COMMITTED - resolved commit to 0000000000000000000000000000000000000000 revision (empty tree for local changes)
  • Found changes - change scope between two revisions in format <file_package>:<change_type>:[<changed_lines>]
  • Related tests to execute - result map of related tests
  • Disconnected tests to execute - result map of disconnected tests. Disconnected tests are tests that sandboni cannot safely identify or tests that don't have relation to main codebase
Clone this wiki locally