-
Notifications
You must be signed in to change notification settings - Fork 1
Solara Development
Clone Solara by executing this command in you terminal, then change the directory to the Solara folder:
git clone https://github.com/Solara-Kit/Solara.gitAfter checking out the repository, run the following command to install the necessary dependencies:
bundle exec installTo run Solara on your local machine, clone the example project from Infinite.
git clone https://github.com/Solara-Kit/Infinite.gitEnsure that both Solara and Infinite reside in the same root folder.
parent-folder/
├── solara/
└── infinite/
Then, execute:
bundle installThis will set up everything you need to get started.
For complete details, please refer to the Infinite repository.
RSpec is utilized for testing Solara, encompassing two main types of testing outlined below:
-
Unit Testing
Unit testing focuses on verifying the behavior of individual functions within a single class. For example, solara/lib/solara_cli_spec.rb tests the functionality of each method in the
CLIclass. -
Integration Testing
Integration testing evaluates the runtime behavior of the entire gem. The
TestLabrepository (GitHub - TestLab) contains the projects necessary for running these tests. The tests are executed within a cloned environment. For specific implementation details, refer to solara_manager_integration_spec.rb.
-
Running Tests in Terminal
To execute the tests, run the following command in your terminal. Ensure that your terminal is opened in the root directory of Solara:
rspec solara/lib/spec/-
Continuous Integration with GitHub Actions
The tests are automatically executed by a GitHub Actions workflow whenever there is a push to the
mainordevelopbranches, as well as on pull requests. For implementation details, please refer to the rspec.yml file.
Achieve excellence! Don't just avoid errors!