Skip to content

Commit

Permalink
Added new ID tests and a readme file for running the verify type script
Browse files Browse the repository at this point in the history
  • Loading branch information
Yug Vajani committed Dec 4, 2024
1 parent b112691 commit ff4023e
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions format_checker/forked-projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@
"https://github.com/okta/okta-hooks-sdk-java": "unforked",
"https://github.com/opengoofy/crane4j": "unforked",
"https://github.com/opengoofy/hippo4j": "unforked",
"https://github.com/openhab/openhab-core": "unforked",
"https://github.com/openhab/org.openhab.binding.zwave": "unforked",
"https://github.com/openpojo/openpojo": "unforked",
"https://github.com/oracle/oci-hdfs-connector": "unforked",
Expand Down
26 changes: 26 additions & 0 deletions pr-data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5751,6 +5751,32 @@ https://github.com/opengoofy/hippo4j,5e285ba5b47266d7dcede64aefae00fbe0c9c4ae,hi
https://github.com/opengoofy/hippo4j,cf854b3cb3c47fd339421e5a46a3ae3229c53829,infra/common,cn.hippo4j.common.toolkit.logtracing.LogMessageTest.testKvShouldPutAllKeyAndValuePairs,ID,Accepted,https://github.com/opengoofy/hippo4j/pull/1500,https://github.com/TestingResearchIllinois/idoft/issues/797
https://github.com/opengoofy/hippo4j,cf854b3cb3c47fd339421e5a46a3ae3229c53829,infra/common,cn.hippo4j.common.toolkit.logtracing.LogMessageTest.testToStringShouldPrintMessageAndAllKeyAndValuePairs,NOD,Accepted,https://github.com/opengoofy/hippo4j/pull/1506,https://github.com/TestingResearchIllinois/idoft/issues/797
https://github.com/opengoofy/hippo4j,5e285ba5b47266d7dcede64aefae00fbe0c9c4ae,hippo4j-common,cn.hippo4j.common.toolkit.Md5UtilTest.assetGetTpContentMd5,ID,Accepted,https://github.com/opengoofy/hippo4j/pull/1494,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core,org.openhab.core.cache.ExpiringCacheMapTest.testValues,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.config.core,org.openhab.core.config.core.internal.validation.ConfigDescriptionValidatorTest.assertValidationThrowsExceptionContainingMessagesForAllMinMaxConfigParameters,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.config.core,org.openhab.core.config.core.internal.validation.ConfigDescriptionValidatorTest.assertValidationThrowsExceptionContainingMessagesForAllRequiredConfigParameters,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.config.core,org.openhab.core.config.core.internal.validation.ConfigDescriptionValidatorTest.assertValidationThrowsExceptionContainingMessagesForMultipleInvalidTypedConfigParameters,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.config.core,org.openhab.core.config.core.internal.validation.ConfigDescriptionValidatorTest.assertValidationThrowsExceptionContainingMultipleVariousViolations,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.config.discovery,org.openhab.core.config.discovery.inbox.events.InboxEventFactoryTest.inboxEventFactoryCreatesInboxAddedEventCorrectly,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.io.rest.core,org.openhab.core.io.rest.core.internal.config.ConfigDescriptionResourceTest.shouldReturnAConfigDescription,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.io.rest.core,org.openhab.core.io.rest.core.internal.config.ConfigDescriptionResourceTest.shouldReturnAllConfigDescriptions,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.io.rest,org.openhab.core.io.rest.Stream2JSONInputStreamTest.shouldStreamCollectionStreamToJSON,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.io.rest,org.openhab.core.io.rest.Stream2JSONInputStreamTest.shouldStreamSingleObjectToJSON,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core,org.openhab.core.items.events.ItemEventFactoryTest.testCreateCommandEventOnOffType,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core,org.openhab.core.items.events.ItemEventFactoryTest.testCreateStateEventOnOffType,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.model.yaml,org.openhab.core.model.yaml.internal.YamlModelRepositoryImplTest.testAddElementToModel,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.model.yaml,org.openhab.core.model.yaml.internal.YamlModelRepositoryImplTest.testUpdateElementInModel,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.storage.json,org.openhab.core.storage.json.internal.JsonStorageTest.testOrdering,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateAddedEvent,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateChannelDescriptionChangedEventNewAndOldValue,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateChannelDescriptionChangedEventOldAndNewOptions,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateChannelDescriptionChangedEventOldAndNewStateDescription,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateChannelDescriptionChangedEventOnlyNewOptions,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateChannelDescriptionChangedEventOnlyNewValue,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateStatusInfoEvent,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateTriggerEmptyEvent,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.events.ThingEventFactoryTest.testCreateTriggerPressedEvent,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.link.events.LinkEventFactoryTest.testCreateItemChannelLinkAddedEvent,ID,,,
https://github.com/openhab/openhab-core,660102e3f93f928473b66f56f2955090dfa3c30e,bundles/org.openhab.core.thing,org.openhab.core.thing.link.events.LinkEventFactoryTest.testCreateItemChannelLinkRemovedEvent,ID,,,
https://github.com/openhab/org.openhab.binding.zwave,495d04fcbe867ef1fb532ac546b41a243c56b2a6,.,org.openhab.binding.zwave.internal.converter.ZWaveAlarmConverterTest.Alarm_AlarmRaw,ID,Accepted,https://github.com/openhab/org.openhab.binding.zwave/pull/1681,
https://github.com/OpenHFT/Chronicle-Wire,a4dfcb6885ce468a64f6a3ceb5e4e16bb858ed2e,.,net.openhft.chronicle.wire.AbstractClassGeneratorTest.useInterceptor,ID,Rejected,https://github.com/OpenHFT/Chronicle-Wire/pull/308,
https://github.com/OpenHFT/Chronicle-Wire,a4dfcb6885ce468a64f6a3ceb5e4e16bb858ed2e,.,net.openhft.chronicle.wire.BinaryInTextTest.testReserialize,ID,Accepted,https://github.com/OpenHFT/Chronicle-Wire/pull/310,
Expand Down
43 changes: 43 additions & 0 deletions verify_test_type/README.md
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
```

0 comments on commit ff4023e

Please sign in to comment.