-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new ID tests and a readme file for running the verify type script
- Loading branch information
Yug Vajani
committed
Dec 4, 2024
1 parent
b112691
commit ff4023e
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<h1 align="center">Verify Test Type</h1> | ||
|
||
<p align="center">Script Purpose: Ensure the identification of the test type (e.g., ID, OD, NOD, etc.) for new tests discovered in a repository. </p> | ||
|
||
## Steps to Run the Script locally | ||
|
||
#### 1. Go to the root directory | ||
|
||
Go to the root directory of the repository which has the newly found flaky test. | ||
|
||
#### 2. Download the script in your repository | ||
|
||
Ensure you have wget installed on your system. You can install it using the package manager of your operating system: | ||
- For Ubuntu/Debian: sudo apt-get install wget | ||
- For macOS (using Homebrew): brew install wget | ||
- For Windows: Download it from GNU Wget. | ||
|
||
Now download the script using this command: | ||
|
||
``` | ||
wget https://raw.githubusercontent.com/TestingResearchIllinois/idoft/main/verify_test_type/verify_test_type.sh | ||
``` | ||
|
||
#### 3. Make the script executable | ||
|
||
Use this command to make the script executable: | ||
|
||
``` | ||
chmod +x verify_test_type.sh | ||
``` | ||
|
||
#### 4. Run the script | ||
|
||
Run the script for a particular test using this command: | ||
|
||
``` | ||
./verify_test_type.sh <module-name> <commit-hashcode> <test-name> <class-name> | ||
``` | ||
|
||
Example of an invocation: | ||
``` | ||
./verify_test_type.sh bundles/org.openhab.core.thing 660102e3f93f928473b66f56f2955090dfa3c30e testCreateChannelDescriptionChangedEventOnlyNewValue ThingEventFactoryTest | ||
``` |