Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b1729bb
pytest files and test runner added
TheRozon Feb 14, 2022
790ff04
change folder names, collect pytest to one folder, and improved teste…
TheRozon Feb 20, 2022
2974bd5
input filename is required to run the tester
TheRozon Feb 20, 2022
2092c9b
added folder selection to arguments
TheRozon Feb 20, 2022
e1264b5
you can run more pytest from same folder with one command
TheRozon Feb 21, 2022
a574a59
Modified the javapath.bat file and mapping pytests files
TheRozon Feb 23, 2022
e0d7421
pytest run outsource into a function and folder management
TheRozon Feb 23, 2022
31abe1c
Remove folder switch and simplify pytest path
TheRozon Mar 3, 2022
f91fac2
The function of all switch is changed
TheRozon Mar 3, 2022
5580a39
few changes in the folder names and paths
TheRozon Mar 24, 2022
dc407b9
add error handling, change variable names, and organize into functions
TheRozon Mar 30, 2022
87f624d
organized jar conversions into functions and add a new switch (--over…
TheRozon Mar 31, 2022
8d1a0a4
Translated warning lines to English, and remove comments
TheRozon Mar 31, 2022
b8b3c35
modified pytests
TheRozon Mar 31, 2022
ef6c3b0
organize files and change their paths
TheRozon Apr 21, 2022
3cec0ae
tester files improvements
TheRozon Jul 5, 2022
c059d1d
''
TheRozon Jul 5, 2022
e58e5cb
more specific test files added to converter phase
TheRozon Sep 20, 2022
7b33370
added more test file to converter phase
TheRozon Sep 20, 2022
483be49
Bugfixes on tests,
TheRozon Sep 27, 2022
8de5084
Added mapping test files and converter test bugfixes
TheRozon Sep 27, 2022
22f6fef
Added new pytest files and rename old ones
TheRozon Jan 10, 2023
6b8a25d
Removed old test files
TheRozon Feb 1, 2023
de5195d
Added new test types and change old one's. Now use parent path to det…
TheRozon May 12, 2023
0bd04a0
removed unused code segments and some bug fixed about rendering tests
TheRozon May 12, 2023
a117c4d
removed unused files and add more examples
TheRozon May 12, 2023
50baddc
Added logo, icon and background color
TheRozon May 12, 2023
9905934
removed unused files and comments, simplify code segments in Interfac…
TheRozon May 13, 2023
eff4887
Added new functions to Interface. Theme and Language select.
TheRozon Dec 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
**/bin/**
**/target/**
**/tmp/**
**/.idea/**
**/.metadata/**
**/.settings/**
**/.recommenders/**
Expand All @@ -15,7 +16,7 @@
*.bak
*.swp
*~.nib

/bin/

# Created by https://www.toptal.com/developers/gitignore/api/eclipse,java
# Edit at https://www.toptal.com/developers/gitignore?templates=eclipse,java
Expand Down
38 changes: 38 additions & 0 deletions README_TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# CodeMetropolis Test Phase

## Getting started

### Setup for SourceMeter analysis

1. Download SourceMeter from its [webpage](https://sourcemeter.com/download).
2. Extract SourceMeter.
3. Download Minecraft Java version from its [webpage](https://www.minecraft.net/en-us/download).
4. Install Minecraft.
5. Optionally you could use the Minecraft starter to change the version of Minecraft to 1.8 (the officialy supported one), but newer versions could also open CodeMetropolis generated worlds.
6. Download the current [stable releas](https://github.com/codemetropolis/CodeMetropolis/releases/tag/latest) of CodeMetropolis.
7. Extract CodeMetropolis

### Visualize source code meterics

1. CodeMetropolis is able to visualize the static analysis results from SourceMeter. Currently Java is the most widely supported language. So to start, you have to locate a Java system, we will call this as target system.
2. Analyze the target system with SourceMeter. You could use any settings as long as it will produce a `graph` file. This graph file contains all the necessary data for the CodeMetropolis.
3. We will use the command line tools to create the visualization.
1. Convert the data represented in the graph file into a more generic representations. Use the `converter` tool, with the sourcemeter conversion type option. It will produce an XML file which we call `CDF` file (Common Data Format)
2. Create a `mapping XML` file to define the mapping between the properties of the source code items and the graphical attributes of CodeMetropolis. There is several sample files in this repository.
3. Execute the `mapping` tool with the CDF file and the mapping XML to produce the first (yet incomplete) representation of the city. It will stored as an XML file we called `IXML` (Intermediate XML).
4. The output of the `mapping` tool does not contain the placement and the size of the buildings. These data hava to be computed with the `placing` tool.
5. In the final step we need to use the `rendering` tool to convert the final IXML file into a Minecraft world.
4. Installing the new visualization
1. Start and close your Minecraft client (play the game) at least once to generate the necessary folder structure.
2. Copy the generated world into the location of your saved worlds. On Windwos it is usually located under `C:\Users\<windows username>\AppData\Roaming\.minecraft\saves`. You have to copy the whole folder not just its content.
3. Start the game and select the world from the list.

## Complie from source

1. clone repository
1. checkout `develop` branch
1. install Java 1.8
1. install Maven 3.8.3 or newer
1. navigate to `sources` folder
1. `mvn clean package`
1. The current distribution will be aviable under `source/distro`.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions examples/gitstats_input_example/Test/a.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
elso 34
masodik 56
2 changes: 2 additions & 0 deletions examples/gitstats_input_example/Test/b.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
harmadik 65
negyedik 18
Loading