test: added project setup test description and resources for Java Sonargraph setup
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get absolute path to parent directory of script
|
||||
MY_PATH=`dirname "$0"`
|
||||
if [[ "${MY_PATH}" != *\\* ]]
|
||||
then
|
||||
cd $MY_PATH
|
||||
MY_PATH=`pwd`
|
||||
fi
|
||||
MY_PATH="${MY_PATH//\\//}"
|
||||
|
||||
SRC_PATH=$MY_PATH/data
|
||||
WORKING_COPY_PATH=$MY_PATH/working_copy
|
||||
|
||||
mkdir -p $WORKING_COPY_PATH
|
||||
|
||||
cp -a $SRC_PATH/. $WORKING_COPY_PATH
|
||||
|
||||
echo "Setup Complete"
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get absolute path to parent directory of script
|
||||
MY_PATH=`dirname "$0"`
|
||||
if [[ "${MY_PATH}" != *\\* ]]
|
||||
then
|
||||
cd $MY_PATH
|
||||
MY_PATH=`pwd`
|
||||
fi
|
||||
MY_PATH="${MY_PATH//\\//}"
|
||||
|
||||
WORKING_COPY_PATH=$MY_PATH/working_copy
|
||||
|
||||
echo "" >> $WORKING_COPY_PATH/src/foo/Bar.java
|
||||
|
||||
echo "Update Complete"
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get absolute path to parent directory of script
|
||||
MY_PATH=`dirname "$0"`
|
||||
if [[ "${MY_PATH}" != *\\* ]]
|
||||
then
|
||||
cd $MY_PATH
|
||||
MY_PATH=`pwd`
|
||||
fi
|
||||
MY_PATH="${MY_PATH//\\//}"
|
||||
|
||||
WORKING_COPY_PATH=$MY_PATH/working_copy
|
||||
|
||||
rm -rf $WORKING_COPY_PATH
|
||||
|
||||
echo "Teardown Complete"
|
||||
@@ -0,0 +1,33 @@
|
||||
* Run "1_setup.sh"
|
||||
* Start up Sourcetrail
|
||||
* Click "New Project"
|
||||
* Enter a project name
|
||||
* Set "./working_copy" as project location
|
||||
* Click "Add Source Group"
|
||||
* Select "Java" -> Java from Sonargraph"
|
||||
* Click "Next"
|
||||
* Pick "Test.sonargraph/system.sonargraph" at "Sonargraph Project"
|
||||
* Click "show source files" button
|
||||
* Validate list contains 4 source files
|
||||
* Click "OK"
|
||||
* Click "Next"
|
||||
* Click "Next"
|
||||
* Click "Create"
|
||||
* Validate "All files" is the only option selectable
|
||||
* Click "Start"
|
||||
* Validate Project indexed without error
|
||||
* Click "OK"
|
||||
* Press "Refresh" button
|
||||
* Validate "Updated files" is selected
|
||||
* Validate "source files to index" shows "0"
|
||||
* Click "Cancel"
|
||||
* Run "2_update.sh"
|
||||
* Press "Refresh" button
|
||||
* Validate "Files to clear" shows "1"
|
||||
* Validate "source files to index" shows "1"
|
||||
* Click "Start"
|
||||
* Validate Project indexed without error
|
||||
* Click "OK"
|
||||
* Close Sourcetrail
|
||||
* Run "3_teardown.sh"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" ?>
|
||||
<ns2:softwareSystem xmlns:ns2="http://www.hello2morrow.com/sonargraph/core" id="141dcc4bc45fc37bdd45091f01737428" version="9.8.1.519">
|
||||
<description></description>
|
||||
<module xmlns:ns4="http://www.hello2morrow.com/sonargraph/languageprovider/java" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:xsdJavaModule" name="Test" id="64dda8e3e242dfafad66119061d4dd47" language="Java">
|
||||
<description></description>
|
||||
<rootPath name="./src"></rootPath>
|
||||
<rootPath name="./target"></rootPath>
|
||||
<rootPath xsi:type="ns4:xsdSourceRootPath" name="./src"></rootPath>
|
||||
</module>
|
||||
</ns2:softwareSystem>
|
||||
@@ -0,0 +1,5 @@
|
||||
package foo;
|
||||
|
||||
class Bar implements FooBar
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package foo;
|
||||
|
||||
class Foo implements FooBar
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package foo;
|
||||
|
||||
public interface FooBar
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package foo;
|
||||
|
||||
public class Main
|
||||
{
|
||||
public Foo m_foo;
|
||||
public Bar m_bar;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user