-
Notifications
You must be signed in to change notification settings - Fork 6
Repository parser tests (using old SimilarityChecker) #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AlpTorac
wants to merge
72
commits into
CIPM-tools:build-pipeline
Choose a base branch
from
AlpTorac:repoparser-pull-req
base: build-pipeline
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
af87e71
Create fitests plug-in
AlpTorac 486fe38
Exclude parser test resources
AlpTorac 1704802
Add interface for containing SimilarityChecker
AlpTorac 17fd4b8
Add interface for logging
AlpTorac 089a0a1
Implement abstract test class
AlpTorac 1df6432
Add Resource-related classes
AlpTorac 302659a
Implement abstract test class
AlpTorac a4a787d
Implement concrete Resource-related classes
AlpTorac 5f9048a
Implement abstract test class
AlpTorac 1d16afb
Implement expected similarity result providers
AlpTorac ecee15b
Implement utility class for file operations
AlpTorac 4edade7
Implement expected similarity result provider
AlpTorac f230905
Implement wrapper for parsed model resources
AlpTorac 1b7ac81
Implement class for time measurements
AlpTorac e46019c
Implement class for discovering model source file directories
AlpTorac b4f1c84
Implement class for generating dynamic parser tests
AlpTorac 3be5330
Implement class for generating index sequences
AlpTorac e29d77b
Implement class for storing parsed Resource instances
AlpTorac f8f20a4
Implement class for containing parser test options
AlpTorac e69c314
Implement class for storing layout information for parser tests
AlpTorac 5c38b39
Implement abstract test class for parser tests
AlpTorac 9395aa1
Add package-info files
AlpTorac 5a439a4
Create plug-in fitests.repositorytests for repository parser tests
AlpTorac 822e93d
Implement class for filtering diff patches
AlpTorac 2a47938
Implement class for removing commentaries
AlpTorac aeca8f4
Implement tests for diff processing realistic diff patches
AlpTorac 1f08df5
Implement class for storing computed expected similarity results
AlpTorac 6c76949
Implement expected similarity result provider
AlpTorac cc4bce3
Implement class for computing expected similarity results
AlpTorac e39e488
Add time measurement tags for repository parser tests
AlpTorac e597ab5
Add options for repository parser tests
AlpTorac a188c6f
Add layout class for repository parser tests
AlpTorac 34c3c6e
Add abstract test class for repository parser tests
AlpTorac c5528ac
Implement repository parser tests for Teammates
AlpTorac b2ea7ff
Add more Teammates commits
AlpTorac a29064f
Implement repository parser test for CWA-Server
AlpTorac 7ab16c9
Add options regarding proxy resolution and resource splitting
AlpTorac 2d097ed
Add test factory for model comparison
AlpTorac a0f914b
Swap test factory for Teammates and CWA
AlpTorac 1cdf8e6
Work on time measurement keys
AlpTorac 2b3f487
Fix exclusion patterns in model parsing strategies
AlpTorac f304cc2
Fix DiffFilter.splitLines
AlpTorac 7f02ba4
Disable deleting cloned repositories as default
AlpTorac e0df1d2
Rename method
AlpTorac 70dd145
Edit commentary
AlpTorac 9f4e9ec
Add missing condition
AlpTorac d0474e4
Move logging to utility class
AlpTorac 5747bdc
Implement and use utility class instead of AbstractResourceHelper
AlpTorac 41115bb
Split *.similarity.jamopp.parser package
AlpTorac f84c706
Refactor time measurement
AlpTorac 72cf3ed
Use getter instead
AlpTorac dcd7379
Edit exception message
AlpTorac 43f80e1
Edit commentary
AlpTorac c688bc1
Log error messages
AlpTorac 9bc3b90
Make FileUtil a utility class
AlpTorac fc3896e
Fix JaMoPPModelResourceWrapper
AlpTorac 9e8db48
Rename classes, methods, variables
AlpTorac 72dc291
Fix new line regex
AlpTorac b4c39e6
Refactor time measurements
AlpTorac 4340795
Fix ResourceContentSimilarityResultProvider, irrelevant for current s…
AlpTorac 1beb675
Rename time measurement key types and corresponding builder method names
AlpTorac ef5fdd1
Fix layout objects
AlpTorac 0e392e0
Add missing Override annotations
AlpTorac f5af9a0
Extract regex as final variable
AlpTorac 9e7b48f
Track being set up in logging class
AlpTorac 778312d
Rename parameters
AlpTorac 80ce2fd
Edit commentary
AlpTorac 3f92ec3
Add GSONTest
AlpTorac 51f8de0
Add README for fitests plug-in
AlpTorac 4af0553
Add README for repositorytests
AlpTorac 87a37fa
Refactor FileUtil
AlpTorac 1940138
Fix GSONTest
AlpTorac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
7 changes: 7 additions & 0 deletions
7
commit-based-cipm/fi-tests/cipm.consistency.fitests.repositorytests/.classpath
This file contains hidden or 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,7 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <classpath> | ||
| <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/> | ||
| <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
| <classpathentry kind="src" path="src"/> | ||
| <classpathentry kind="output" path="bin"/> | ||
| </classpath> |
28 changes: 28 additions & 0 deletions
28
commit-based-cipm/fi-tests/cipm.consistency.fitests.repositorytests/.project
This file contains hidden or 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,28 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <projectDescription> | ||
| <name>cipm.consistency.fitests.repositorytests</name> | ||
| <comment></comment> | ||
| <projects> | ||
| </projects> | ||
| <buildSpec> | ||
| <buildCommand> | ||
| <name>org.eclipse.jdt.core.javabuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| <buildCommand> | ||
| <name>org.eclipse.pde.ManifestBuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| <buildCommand> | ||
| <name>org.eclipse.pde.SchemaBuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| </buildSpec> | ||
| <natures> | ||
| <nature>org.eclipse.pde.PluginNature</nature> | ||
| <nature>org.eclipse.jdt.core.javanature</nature> | ||
| </natures> | ||
| </projectDescription> |
26 changes: 26 additions & 0 deletions
26
commit-based-cipm/fi-tests/cipm.consistency.fitests.repositorytests/META-INF/MANIFEST.MF
This file contains hidden or 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,26 @@ | ||
| Manifest-Version: 1.0 | ||
| Bundle-ManifestVersion: 2 | ||
| Bundle-Name: cipm.consistency.fitests.repositorytests | ||
| Bundle-SymbolicName: cipm.consistency.fitests.repositorytests | ||
| Bundle-Version: 1.0.0.qualifier | ||
| Automatic-Module-Name: cipm.consistency.fitests.repositorytests | ||
| Bundle-RequiredExecutionEnvironment: JavaSE-11 | ||
| Require-Bundle: junit-jupiter-api, | ||
| junit-jupiter-engine, | ||
| junit-jupiter-params, | ||
| org.eclipse.emf.common, | ||
| org.eclipse.emf.ecore, | ||
| org.eclipse.emf.compare, | ||
| org.eclipse.emf.ecore.xmi, | ||
| org.splevo.diffing, | ||
| org.splevo.jamopp.diffing, | ||
| org.apache.log4j, | ||
| org.emftext.language.java, | ||
| jamopp.parser.jdt.singlefile, | ||
| jamopp.parser, | ||
| cipm.consistency.commitintegration, | ||
| cipm.consistency.commitintegration.diff.util, | ||
| org.eclipse.jgit, | ||
| jamopp.resolution, | ||
| cipm.consistency.fitests, | ||
| com.google.gson | ||
3 changes: 3 additions & 0 deletions
3
commit-based-cipm/fi-tests/cipm.consistency.fitests.repositorytests/README.md
This file contains hidden or 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,3 @@ | ||
| Tests under cipm.consistency.fitests.repositorytests package and its sub-packages are referred to as repository parser tests. They are a variant of parser tests, which consider Java code repositories (only GIT repositories at the time of writing this file) and parse EMF-based Java model Resources from them using JaMoPP. To this end, certain commits are checked out and then Java model Resources are parsed for each considered commit. To estimate expected similarity results in tests during run time, GIT diff patches between commits are analyzed for code changes. | ||
|
|
||
| Refer to the README of [cipm.consistency.fitests](../cipm.consistency.fitests/README.md) for related tests and terminology. |
4 changes: 4 additions & 0 deletions
4
commit-based-cipm/fi-tests/cipm.consistency.fitests.repositorytests/build.properties
This file contains hidden or 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,4 @@ | ||
| source.. = src/ | ||
| output.. = bin/ | ||
| bin.includes = META-INF/,\ | ||
| . |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, please move both plugins to the
commit-based-cipm/testsdirectory, and add aREADMEfile for definingsource filesandmodel files.